Homeassistant.action not working

Anyone know why this isn’t toggling the light? Light entity is correct. (it reads the correct state when the shelly first boots)

binary_sensor:
  #Shelly Switch Input 1
  - platform: gpio
    name: "${device_name_1} Input"
    pin: GPIO5
    #small delay to prevent debouncing
    filters:
      - delayed_on_off: 50ms
    # config for state change of input button
    on_state:
      then:
        - homeassistant.action:
            action: light.toggle
            data:
               entity_id: "light.bedroom_light_1"

You need to give the device permission to perform actions in home assistant:

1 Like

$@&/$#!!! I should have asked earlier and saved myself a few hours of troubleshooting. thank you.

1 Like