You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I followed exactly the steps to set up. The state request returns correct information, but the control doesn't work.
Each time I set the color, I could see that the lamp sets the color to my requested one, however it reverts it back to the original color right away. The same happened to setting temperature and setting brightness. It made the change and immediately reverted back.
I also tried turning on and off, but neither worked. Nothing happens with turning on/off.
The following is the debug output.
$ yeelightbt -d color 0 0 255 DEBUG:yeelightbt.connection:Trying to connect to F8:24:41:E3:32:E6
DEBUG:yeelightbt.connection:Connected to F8:24:41:E3:32:E6
DEBUG:yeelightbt.connection:Writing b'0100' to 22 with with_response=False
DEBUG:yeelightbt.lamp:>> {'type': 'Pair'} (wait: 0.5)
DEBUG:yeelightbt.connection:Writing b'436702000000000000000000000000000000' to 18 with with_response=False
DEBUG:yeelightbt.connection:Got notification from 21: b'436301000000000000000000000000000000'
DEBUG:yeelightbt.lamp:<< b'436301000000000000000000000000000000'
DEBUG:yeelightbt.lamp:pairing res: Container:
type = PairingResult (total 13)
response = None
payload = Container:
pairing_status = NotPaired (total 9)
DEBUG:yeelightbt.lamp:>> {'type': 'GetState'} (wait: 0.5)
DEBUG:yeelightbt.connection:Writing b'434400000000000000000000000000000000' to 18 with with_response=False
DEBUG:yeelightbt.connection:Got notification from 21: b'43450101f200ff000100001a000000000000'
DEBUG:yeelightbt.lamp:<< b'43450101f200ff000100001a000000000000'
Setting color: 0 0 255
DEBUG:yeelightbt.lamp:>> {'green': 0, 'red': 0, 'blue': 255, 'type': 'SetColor'} (wait: 0.5)
DEBUG:yeelightbt.connection:Writing b'43410000ff00000000000000000000000000' to 18 with with_response=False
$ yeelightbt -d off DEBUG:yeelightbt.connection:Trying to connect to F8:24:41:E3:32:E6
DEBUG:yeelightbt.connection:Connected to F8:24:41:E3:32:E6
DEBUG:yeelightbt.connection:Writing b'0100' to 22 with with_response=False
DEBUG:yeelightbt.lamp:>> {'type': 'Pair'} (wait: 0.5)
DEBUG:yeelightbt.connection:Writing b'436702000000000000000000000000000000' to 18 with with_response=False
DEBUG:yeelightbt.connection:Got notification from 21: b'436301000000000000000000000000000000'
DEBUG:yeelightbt.lamp:<< b'436301000000000000000000000000000000'
DEBUG:yeelightbt.lamp:pairing res: Container:
type = PairingResult (total 13)
response = None
payload = Container:
pairing_status = NotPaired (total 9)
DEBUG:yeelightbt.lamp:>> {'type': 'GetState'} (wait: 0.5)
DEBUG:yeelightbt.connection:Writing b'434400000000000000000000000000000000' to 18 with with_response=False
DEBUG:yeelightbt.connection:Got notification from 21: b'43450101f200ff0001000019000000000000'
DEBUG:yeelightbt.lamp:<< b'43450101f200ff0001000019000000000000'
DEBUG:yeelightbt.lamp:>> {'type': 'SetOnOff', 'state': False} (wait: 0.5)
DEBUG:yeelightbt.connection:Writing b'434002000000000000000000000000000000' to 18 with with_response=False
The text was updated successfully, but these errors were encountered:
You need to run setcap as root (e.g. with sudo) for it to work, as said by the error message (Operation not permitted).
From the sound of it, I think your lamp is in a mode where it itself adjusts the settings and will directly override the setting. If so there's not much the library can do (without trying to deactivate such modes).
I followed exactly the steps to set up. The state request returns correct information, but the control doesn't work.
Each time I set the color, I could see that the lamp sets the color to my requested one, however it reverts it back to the original color right away. The same happened to setting temperature and setting brightness. It made the change and immediately reverted back.
I also tried turning on and off, but neither worked. Nothing happens with turning on/off.
The following is the debug output.
$ yeelightbt -d color 0 0 255
DEBUG:yeelightbt.connection:Trying to connect to F8:24:41:E3:32:E6
DEBUG:yeelightbt.connection:Connected to F8:24:41:E3:32:E6
DEBUG:yeelightbt.connection:Writing b'0100' to 22 with with_response=False
DEBUG:yeelightbt.lamp:>> {'type': 'Pair'} (wait: 0.5)
DEBUG:yeelightbt.connection:Writing b'436702000000000000000000000000000000' to 18 with with_response=False
DEBUG:yeelightbt.connection:Got notification from 21: b'436301000000000000000000000000000000'
DEBUG:yeelightbt.lamp:<< b'436301000000000000000000000000000000'
DEBUG:yeelightbt.lamp:pairing res: Container:
type = PairingResult (total 13)
response = None
payload = Container:
pairing_status = NotPaired (total 9)
DEBUG:yeelightbt.lamp:>> {'type': 'GetState'} (wait: 0.5)
DEBUG:yeelightbt.connection:Writing b'434400000000000000000000000000000000' to 18 with with_response=False
DEBUG:yeelightbt.connection:Got notification from 21: b'43450101f200ff000100001a000000000000'
DEBUG:yeelightbt.lamp:<< b'43450101f200ff000100001a000000000000'
Setting color: 0 0 255
DEBUG:yeelightbt.lamp:>> {'green': 0, 'red': 0, 'blue': 255, 'type': 'SetColor'} (wait: 0.5)
DEBUG:yeelightbt.connection:Writing b'43410000ff00000000000000000000000000' to 18 with with_response=False
$ yeelightbt -d off
DEBUG:yeelightbt.connection:Trying to connect to F8:24:41:E3:32:E6
DEBUG:yeelightbt.connection:Connected to F8:24:41:E3:32:E6
DEBUG:yeelightbt.connection:Writing b'0100' to 22 with with_response=False
DEBUG:yeelightbt.lamp:>> {'type': 'Pair'} (wait: 0.5)
DEBUG:yeelightbt.connection:Writing b'436702000000000000000000000000000000' to 18 with with_response=False
DEBUG:yeelightbt.connection:Got notification from 21: b'436301000000000000000000000000000000'
DEBUG:yeelightbt.lamp:<< b'436301000000000000000000000000000000'
DEBUG:yeelightbt.lamp:pairing res: Container:
type = PairingResult (total 13)
response = None
payload = Container:
pairing_status = NotPaired (total 9)
DEBUG:yeelightbt.lamp:>> {'type': 'GetState'} (wait: 0.5)
DEBUG:yeelightbt.connection:Writing b'434400000000000000000000000000000000' to 18 with with_response=False
DEBUG:yeelightbt.connection:Got notification from 21: b'43450101f200ff0001000019000000000000'
DEBUG:yeelightbt.lamp:<< b'43450101f200ff0001000019000000000000'
DEBUG:yeelightbt.lamp:>> {'type': 'SetOnOff', 'state': False} (wait: 0.5)
DEBUG:yeelightbt.connection:Writing b'434002000000000000000000000000000000' to 18 with with_response=False
The text was updated successfully, but these errors were encountered: