BASIC DIMMING SCRIPT for SHELLY DIMMER2

  • Hi,

    i need some help .

    how to write a basic script for Shelly dimmer2

    event would be something like this:

    turn on light on pushswitch/through app

    check dimmer brightness %

    if "brightness is in range 70% - 95% " 1st long hold-push action to dimm should lower brightness

    if "brigtness is in range 69%-10% " 1st long hold-push action to dimm should increase brightness <-- this is already by default as it always increases brightness no matter the %

    if possible i would also like to to add max brightness 95%

    if possible i would also like to add min brightness to 10%

    Or is there any other way i can create a function like this?

    Looking foward to your reply.

  • Yes, only remote control via a Gen 2 script is possible, so plus or pro, as I said, there are at least 2 scripts for remote control of gen 1 out there. No special Button Events possible only gen1 Events/Aktions that can trigger a gen2 http endpoint, are useable.

  • Yes, only remote control via a Gen 2 script is possible, so plus or pro, as I said, there are at least 2 scripts for remote control of gen 1 out there. No special Button Events possible only gen1 Events/Aktions that can trigger a gen2 http endpoint, are useable.

    Hi,

    first thank you for your answer.

    This got me a little bit confused. Just to clarifty:

    only gen1 Events/Aktions that can trigger a gen2 http endpoint, are useable <-- this means there are some GEN1 action, that can trigger gen2 endpoint but i need some extra equipment of software for this?

    If i cannot write scripts for GEN1 dimmers, is there a way atleast i could limit max brightness ( this is my main issue, everything esle is just bonus). As in WEBUI i only see limit minimum brightness.

    Could this be solved in Home Assistant software?

    Looking foward to your reply.

  • Dieses Thema enthält 2 weitere Beiträge, die nur für registrierte Benutzer sichtbar sind, bitte registrieren Sie sich oder melden Sie sich an um diese lesen zu können.