angeloxx / homebridge-myhome

Homebridge plugin for BTicino/Legrand MyHome
MIT License
33 stars 18 forks source link

Dimmer 10, Scenes #10

Open dendeps opened 7 years ago

dendeps commented 7 years ago
  1. Created MHDimmer10 object to support 10-level dimmers like F418, 002622.
  2. Updated OnDimmer function to update brightness level in app when receive feedback(if someone press switch button).
  3. Created MHScene object to activate scenarios stored in scenario modules F420 (haven't fully tested yet).

Sorry if I'm doing something not correctly, using Github for a first time :)

dendeps commented 7 years ago

Hi, I'll review what you requested.

As for dimmer level, it's linear, as you can see here: file

screen shot 2017-10-22 at 10 39 38 pm

angeloxx commented 7 years ago

I'm sorry, is not linear; the documentation is not true, the correct levels is reported in "dimmerLevels" array and this info comes from Legrand (I worked for Legrand group in a Openwebnet related project) and you can double check this information using a 100-level dimmer as a 10-level.