Quantcast
Viewing all articles
Browse latest Browse all 106070

Hold to Dim

I have a sonoff nspanel with tasmota and I want to dim smart bulbs by holding (long press) the physical buttons. The buttons have been decoupled from the relays so they just send commands; but when using the following automation l, the lights end up in a continuous loop. Any ideas on how to fix the automation please?

alias: Living Room Brightness
description: ""
trigger:
  - platform: device
    domain: tasmota
    device_id: b2d655b71745cd9b93a92f4450abfba5
    type: button_long_press
    subtype: button_1
    discovery_id: 4417937B6CA4_button_1_HOLD
    id: LivingRoom-increase
  - platform: device
    domain: tasmota
    device_id: b2d655b71745cd9b93a92f4450abfba5
    type: button_long_press
    subtype: button_2
    discovery_id: 4417937B6CA4_button_2_HOLD
    id: LivingRoom-Decrease
condition: []
action:
  - choose:
      - conditions:
          - condition: trigger
            id:
              - LivingRoom-increase
        sequence:
          - repeat:
              sequence:
                - device_id: 97531ff873c0809634bacc693c604c8d
                  domain: light
                  entity_id: 91c71d49298c0e0e7bff430b777e43f3
                  type: brightness_increase
                - delay:
                    hours: 0
                    minutes: 0
                    seconds: 0
                    milliseconds: 500
              while:
                - condition: trigger
                  id:
                    - LivingRoom-increase
mode: restart

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 106070

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>