ebaauw / homebridge-rpi

Homebridge plugin for Raspberry Pi.
Apache License 2.0
308 stars 18 forks source link

Dimming bulb with triac - inverted logic #64

Closed ondratan closed 3 years ago

ondratan commented 3 years ago

Hi Eric, i am trying to dim standard 230VAC light bulb with NextEVO dimmer ( https://www.tindie.com/products/next_evo1/universal-ac-mains-dimmer-mpdmv41/ ) but this dimmer has inverted logic - light is full ON at 0V and full OFF at about 2.85V. Do you think there is a chance to change the logic in the code in raspberry? Thank you

ebaauw commented 3 years ago

Hm, I didn’t implement reversed for a light device, but I could give it a go.

ebaauw commented 3 years ago

@ondratan, could you try v1.1.17-0 (install through sudo npm -g i homebridge-rpi@beta). I think I nailed it, but I have no setup to test this myself.

ondratan commented 3 years ago

Hello Eric, yes, it works great. Thank you so much!

ebaauw commented 3 years ago

In v1.2.0.