Hi,
I have a Shelly1 installed behind a switch, which previously worked as an (attached) edge switch. Now that I installed some Zigbee bulbs there, I would not want to switch off power, but use the Shelly1 in detached mode. This means that I want to be notified in Home Assistant as soon as the switch changes the state. Now I have the problem, that I only get a shelly.click event (Shelly - Home Assistant) when the switch changes to “on”, not to “off”. This means I could only react on a switch when I either used a push button or flicked the switch twice always, which is nothing I want to do.
Is there a way to also get this shelly.click event in case that I switch “off”? Or is there any other trigger I could use to detect if the switch changed its state?
I could configure the webhooks inside the Shelly, but they issue a GET not a POST request as required for the Home Assistant integration (see Automation Trigger - Home Assistant).
I hope that you are well,
I have been trying to automate a light switch in my office for a few days now with still no luck.
I have a Shelly 1 installed within the light switch, this is set to Power Mode - On, Button Type Detached.
I have the following code from HA:
alias: New Automation - Test Office
description: ""
trigger:
- platform: state
entity_id:
- binary_sensor.shelly1_office_input
condition: []
action:
- service: light.toggle
data:
brightness_pct: 60
target:
entity_id: light.office
enabled: true
Nothing happens when you press the toggle switch on the light switch.
The Binary sensor is sensing as the log shows:
Shelly1 Office input became unavailable
14:03:55 - 26 minutes ago
Shelly1 Office input detected power
14:03:28 - 26 minutes ago
Do you know what I am doing wrong? or could try?
thanks in advance,
kind regards
Shane