I am using on_click:
, as below, but it just operates as on_press:
.
- platform: gpio # Physical manual feed switch
pin:
number: 17
mode: INPUT_PULLUP
name: "Manual Fish Feed"
id: manual_fish_feed
on_click:
min_length: 1000ms
max_length: 2000ms
then:
- script.execute: manual_dispense_food
- delay: 1s
- homeassistant.service:
service: input_boolean.turn_off
data:
entity_id: input_boolean.manually_feed_fish
Am I using it incorrectly?