Supereg / homebridge-http-lightbulb

Powerful http lightbulb for Homebridge: https://github.com/homebridge/homebridge
ISC License
23 stars 7 forks source link

Tasmota brigtness-color #15

Open steini72 opened 3 years ago

steini72 commented 3 years ago

my config for tasmota { "accessory": "HTTP-LIGHTBULB", }, "name": "light", "debug": true, "onUrl": "http://192.168.50.166/cm?cmnd=Power%20on", "offUrl": "http://192.168.50.166/cm?cmnd=Power%20off", "statusUrl": "http://192.168.50.166/cm?cmnd=state", "statusPattern": "\"POWER\":\"ON", "brightness": { "setUrl": "http://192.168.50.166/cm?cmnd=Dimmer%20%s", "statusUrl": "http://192.168.50.166/cm?cmnd=Dimmer" }, "colorTemperature": { "setUrl": "http://192.168.50.166/cm?cmnd=CT%20%s", "statusUrl": "http://192.168.50.166/cm?cmnd=state", "statusPattern": "\"CT\":d{3}", }, "unit": "mired", "minValue": 153, "maxValue": 499 } }, works, except for power off, if power on then [1/25/2021, 11:17:28 PM] [Light] getColorTemperature() error occurred while extracting colorTemperature from body: Pattern didn't match (value: '{"Time":"2021-01-25T23:17:27","Uptime":"0T00:24:59","UptimeSec":1499,"Heap":24,"SleepMode":"Dynamic","Sleep":10,"LoadAvg":33,"MqttCount":0,"POWER":"ON","Dimmer":57,"Color":"3B56","White": 57,"CT":358,"Channel":[23,34],"Fade":"OFF","Speed":1,"LedTable":"ON","Wifi":{"AP":1,"SSId":"UBNT","BSSId":"74:83: C2:27:4D:A1","Channel":6,"RSSI":80,"Signal":-60,"LinkCount":1,"Downtime":"0T00:00:04"}}', pattern: '/"CT":d{3}/')

Translated with www.DeepL.com/Translator (free version)

steini72 commented 3 years ago

only dimmer works { "accessory": "HTTP-LIGHTBULB", "name": "Light", "debug": true, "onUrl": "http://192.168.50.166/cm?cmnd=Power%20on", "offUrl": "http://192.168.50.166/cm?cmnd=Power%20off", "statusUrl": "http://192.168.50.166/cm?cmnd=state", "statusPattern": "\"POWER\":\"ON", "brightness": { "setUrl": "http://192.168.50.166/cm?cmnd=Dimmer%20%s", "statusUrl": "http://192.168.50.166/cm?cmnd=Dimmer" } }

steini72 commented 3 years ago

[1/25/2021, 11:29:15 PM] [Light] setColorTemperature() Successfully set colorTemperature to 222 Mired. Body: '{"POWER":"ON","Dimmer":86,"Color":"AF2C","White":86,"CT":222,"Channel":[69,17]}' [1/25/2021, 11:30:02 PM] [Light] getColorTemperature() request returned successfully (200). Body '{"Time":"2021-01-25T23:30:00","Uptime":"0T00:37:32","UptimeSec":2252,"Heap":24,"SleepMode":"Dynamic","Sleep":10,"LoadAvg":73,"MqttCount":0,"POWER":"ON","Dimmer":86,"Color":"AF2C","White":86,"CT":222,