shelly-tools / shelly-script-examples

Shelly mJS Scripting examples
GNU Affero General Public License v3.0
72 stars 21 forks source link

dim=cycle command not working #15

Closed Hansontech190 closed 1 year ago

Hansontech190 commented 1 year ago

emulate_multiple_dimmers.js

Using the above code with a Dimmer 2 works well except for hold to dim and cycle. This is not working to cycle through dim to bright. If I alter the code to dim=up or down then this works but cycle is not working.

Hansontech190 commented 1 year ago

Shelly technical have confirmed that dim=cycle won’t work with the new Shelly GEN2 units due to changes in chipset. If you can modify the script to work with the newer Shelly devices that would be great.

eurich commented 1 year ago

The script was updated 4 days ago (2 days before your bug report) and dim=cycle replaced with a somewhat emulated version.

https://github.com/shelly-tools/shelly-script-examples/blob/main/emulate_multiple_dimmers.js