-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
T1013 connects to device but does not turn power on #4
Comments
Hey @ah100101, I think I may have found the problem. I pushed an update to this repo - could you try again? |
Just confirmed that it is working on the latest. |
Glad - I'll package it up soon! Did you also test changing the light temperature, brightness & color? If not, could you do me a favour and try that? I want to make sure it all works properly! |
Turning on, changing color, and changing brightness works. But changing the temperature does not: ? Enter color temperature (between 0 and 100) 100
(LightBulb.setBrightness) Change to: 100
(LightBulb.setState) Change to: {"brightness":100}
(LightBulb.parseValueAsNumber) Input: "100" (Max Value: 100)
(LightBulb.parseValueAsNumber) Result: 100
(LightBulb.setState) Brightness: 100
(LightBulb.setState) Treat as color bulb (T1013Packet)
(LightBulb.setState) No colors
(LightBulb.setState) Change brightness to 100
(LightBulb.setState) Keep temperature at 50
(AbstractDevice.getSequence) Loading current sequence number
(AbstractDevice.sendPacketWithResponse) 2994039,62F5EF8E50C24B4E,0
(AbstractDevice.encryptPacket) 2994039,62F5EF8E50C24B4E,0
(AbstractDevice.sendPacketWithResponse) Sending encrypted packet
(AbstractDevice.sendPacketWithResponse) Response received: {"type":"Buffer","data":[223,123,158,34,74,116,151,86,139,197,217,173,135,155,31,80]}
(AbstractDevice.sendPacketWithResponse) Response decrypted: {"type":"Buffer","data":[11,0,8,135,177,183,81,18,0,26,2,8,1,0,0,0]}
(AbstractDevice.sendPacketWithResponse) Deserializing response as T1013Packet
(AbstractDevice.getSequence) Current sequence number: 170776711
(LightBulb.setState) Sending packet
(AbstractDevice.sendPacket) 170776712,62F5EF8E50C24B4E,,,0,10,,7,0,100,50
(AbstractDevice.encryptPacket) 170776712,62F5EF8E50C24B4E,,,0,10,,7,0,100,50
(AbstractDevice.sendPacket) Sending encrypted packet
(LightBulb.setState) Reloading state
(LightBulb.loadCurrentState) Loading current device state
(LightBulb.getState) Loading current device state
(AbstractDevice.getSequence) Loading current sequence number
(AbstractDevice.sendPacketWithResponse) 2588311,62F5EF8E50C24B4E,0
(AbstractDevice.encryptPacket) 2588311,62F5EF8E50C24B4E,0
(AbstractDevice.sendPacketWithResponse) Sending encrypted packet
(AbstractDevice.sendPacketWithResponse) Response received: {"type":"Buffer","data":[218,113,190,60,253,97,163,137,171,121,0,230,63,50,222,201]}
(AbstractDevice.sendPacketWithResponse) Response decrypted: {"type":"Buffer","data":[11,0,8,182,208,158,81,18,0,26,2,8,1,0,0,0]}
(AbstractDevice.sendPacketWithResponse) Deserializing response as T1013Packet
(AbstractDevice.getSequence) Current sequence number: 170371126
(LightBulb.getState) Sending request to device
(AbstractDevice.sendPacketWithResponse) 170371127,62F5EF8E50C24B4E,,,1
(AbstractDevice.encryptPacket) 170371127,62F5EF8E50C24B4E,,,1
(AbstractDevice.sendPacketWithResponse) Sending encrypted packet
(AbstractDevice.sendPacketWithResponse) Response received: {"type":"Buffer","data":[155,169,232,8,60,234,231,193,202,117,204,4,199,244,21,190,219,183,172,128,161,124,94,124,96,164,142,225,192,4,131,189,139,100,21,98,65,190,29,242,148,222,215,142,207,47,11,60,107,160,4,18,188,193,147,236,205,9,109,229,63,156,245,15]}
(AbstractDevice.sendPacketWithResponse) Response decrypted: {"type":"Buffer","data":[51,0,8,184,208,158,81,18,0,42,42,8,2,18,38,8,255,255,255,255,255,255,255,255,255,1,18,25,8,6,16,0,24,1,34,4,8,100,16,50,56,0,64,219,255,255,255,255,255,255,255,255,1,0,0,0,0,0,0,0,0,0,0,0]}
(AbstractDevice.sendPacketWithResponse) Deserializing response as T1013Packet
(LightBulb.loadCurrentState) Parsing current state as color light bulb
(LightBulb.loadCurrentState) Current power state: true
(LightBulb.loadCurrentState) No color information returned
(LightBulb.loadCurrentState) Current state: {"brightness":100,"temperature":50}
(LightBulb.setBrightness) New brightness: 100
Color temperature is now 100
(AbstractDevice.isPowerOn) Checking power state
(AbstractDevice.isPowerOn) Checking power state
(AbstractDevice.isPowerOn) Checking power state
(AbstractDevice.isPowerOn) Checking power state On the 8th line above: |
Hey @ah100101, Thanks for that update. I noticed that the CLI, when changing the color temperature, actually changes the brightness setting. I pushed a fix for that. Could you try again? As for that log - this is actually correct - the protocol defines slightly different behaviour for changing colours and changing temperature, brightness & power state. This just helps identify the code path triggered. |
Hey @sebmos
Thanks for putting this api together!
I have used it for automating the T1011 lightbulb with success and recently tried it on a T1013 but have ran into an issue getting the bulb to successfully power on.
Below is the output when I connect via cli (verbose logging on) there are no obvious issues that I see:
and below is the output when I try to power on which is unsuccessful but again, nothing jumps out as an obvious issue. Perhaps you might find some useful information from the output.
Wanted to pass along this info in case it helps with any troubleshooting.
Thanks again for putting this project together!
The text was updated successfully, but these errors were encountered: