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"