KraigM / homebridge-wink

Wink hub plugin for HomeBridge
54 stars 37 forks source link

Dimming supported? #61

Open Framnk opened 7 years ago

Framnk commented 7 years ago

I managed to get this working with my lights and the v1 credentials, however all my lights get added to HomeKit as simply toggle on/off lights. I don't see any way in HomeKit or in the Homebridge Wink plugin to indicate my lights are dimmable. How can I do this?

thechrisreese commented 7 years ago

This is an issue with Wink. How does Wink see them?

Framnk commented 7 years ago

My Wink app shows them as dimmable lights and I can dim them successfully via wink. In HomeKit I just get a toggle switch.

Framnk commented 7 years ago

I do notice that when I turn a light on or off HomeBridge outputs:

Changing target property 'powered' of the undefined called Lamp to 1

So it sees the device as undefined, is this something I need to setup in HomeBridge?

West1967 commented 7 years ago

Same here. I have a couple GE Smart Fan Controllers (model 12730). Wink sees them fine and I can vary the speeds. But Homebridge only sees them as a light either on or off. Also, even though Homebridge see's them it is unable to turn them on or off. Always shows as no response.

scoobyshi commented 7 years ago

As a temporary workaround, you can try changing this line "if (that.device.desired_state.brightness !== undefined)" in accessories/light_bulbs.js to "if (that.device.last_reading.brightness !== undefined)", and test it out. It worked for me because I believe the Wink API has changes and is not returning the desired_state, only allowing you to set it... see my pull request https://github.com/KraigM/homebridge-wink/pull/75 for additional info.

microb0x commented 7 years ago

I was able to get a Leviton dimmer switch working by adding it as a fan in .homebridge/config.json.

teja235 commented 7 years ago

I'm trying to get my Leviton dimmer switch on homebridge. Can you help me out?