danielolson13 / wink-mqtt

Enable local-control of a rooted Wink Hub with MQTT
MIT License
31 stars 9 forks source link

Not updating states #7

Open TaylorTWBrown opened 8 years ago

TaylorTWBrown commented 8 years ago

I have this working on firmware 2.66 of my Wink Hub, connected to Home Assistant. I can control things fine from Home Assistant, but Wink-MQTT doesn't seem to be pushing state changes (e.g.: turning off a light with a remote, etc.)

psvitz commented 8 years ago

This could be because you might not have updated wink-mqtt.js with the correct attribute numbers. @danielolson13, it wasn't very obvious at first that wink-mqtt.js needs to be updated with the relevant attribute numbers and broker.

danielolson13 commented 8 years ago

There is a bug if you for example are controlling Zigbee bulbs with a Lutron remote, the value isn't updated or published with MQTT. The issue is the database stores separate, GET and SET values for a state. I'm testing a fix now and will update soon.