hobbyquaker / homekit2mqtt

HomeKit to MQTT bridge 🏡📱
MIT License
349 stars 70 forks source link

Problem setting color with Lightbulb #144

Open farcouet opened 5 years ago

farcouet commented 5 years ago

Hello,

First thanks for the great work I just discovered this and I have been able to integrate with two Air conditioner remote using ESP8266 and the thermostat device and it works really great!

I just tried to configure a ESP8266 LED strip (using Espurna with MQTT configuration) and so far I am able to configure the brightness, turn on and turn off. But I am not able to change the color. The ESP8266 sends the RGB information. But when I open the open application and try to change the color from the color picker there is nothing in the debug logs (there is something if I change the brightness) and nothing also in mqtt for sure. So it looks like the Home App is not sending anything to let change the color.

Any idea? Thanks a lot! Fred

Info from ESP8266: ledsdb/color #00BAAA ledsdb/rgb #00BAAA ledsdb/hsv 175,100,73 ledsdb/brightness 227 ledsdb/channel/0 0 ledsdb/channel/1 186 ledsdb/channel/2 170 ledsdb/channel/3 0

Debug:

2018-11-21 00:19:18.707 <debug> > mqtt ledsdb/rgb/set #00AEBA
2018-11-21 00:19:18.707 <debug> > mqtt hue/set/lights/led 254
2018-11-21 00:19:18.747 <debug> < mqtt ledsdb/rgb #00AEBA #00AEBA
2018-11-21 00:19:18.748 <debug> < mqtt ledsdb/brightness 200 200
2018-11-21 00:19:18.748 <debug> > hap update Led strip Brightness 79
2018-11-21 00:19:18.822 <debug> < mqtt ledsdb/rgb #00AEBA #00AEBA
2018-11-21 00:19:18.823 <debug> < mqtt ledsdb/brightness 185 185
2018-11-21 00:19:18.823 <debug> > hap update Led strip Brightness 73
2018-11-21 00:19:18.823 <debug> < mqtt ledsdb/rgb #00AEBA #00AEBA
2018-11-21 00:19:18.823 <debug> < mqtt ledsdb/brightness 185 185
2018-11-21 00:19:18.823 <debug> > hap update Led strip Brightness 73
2018-11-21 00:19:21.997 <debug> < mqtt bureau/temperature 21.7  21.7
2018-11-21 00:19:21.997 <debug> > hap update Bureau CurrentTemperature 21.7
2018-11-21 00:19:21.999 <debug> < mqtt bureau/humidity 39  39
2018-11-21 00:19:21.999 <debug> > hap update Bureau CurrentRelativeHumidity 39
2018-11-21 00:19:22.373 <debug> < hap get Led strip On
2018-11-21 00:19:22.373 <debug> > hap re_get Led strip On true
2018-11-21 00:19:22.373 <debug> < hap get Led strip Brightness
2018-11-21 00:19:22.373 <debug> > hap re_get Led strip Brightness 73

"salledebain": { "id": "salledebain", "name": "salle de bain", "category": 1, "payloadIdentify": "", "services": [ { "name": "Led strip", "service": "Lightbulb", "topic": { "setOn": "hue/set/lights/led", "statusOn": "hue/status/lights/led", "setBrightness": "ledsdb/brightness/set", "statusBrightness": "ledsdb/brightness", "setHue": "", "statusHue": "", "setSaturation": "", "statusSaturation": "", "setColorTemperature": "", "statusColorTemperature": "", "statusRGB": "ledsdb/rgb", "setRGB": "ledsdb/rgb/set" }, "json": { "statusOn": "", "statusBrightness": "", "statusHue": "", "statusSaturation": "", "statusColorTemperature": "", "statusRGB": "" }, "payload": { "onTrue": 254, "onFalse": 0, "brightnessFactor": 2.54, "hueFactor": 181.32, "saturationFactor": 2.54 }, "config": {}, "props": {} } ], "payload": {}, "config": {} }

farcouet commented 5 years ago

Hello, Is this still alive? Thanks! Fred

kimdaihai commented 5 years ago

good. thanks all