Hi,
I have successful created a switch with IFTTT maker channel.
URL: https://mydns:8123/api/states/switch.alarm_ausgeloest?api_password=xxxx
Body: {"state":"on", "attributes": {"friendly_name": "alarm_ausgeloest", "icon":"mdi:security"} }
If I trigger IFTTT, HA automatically generats a switch called switch.alarm_ausgeloest.
The status is “on”.
The problem is:
The state of this switch is ALWAYS ON. If I deactivate the switch in the UI manually, the switch automatically switched back on. This remains so until I restarted HA. Then the switch is gone and I can trigger IFTTT again.
The question is. How can I generated a switch or sensor that is not always on? I want to trigger an automation to flash lights when alarm is triggered.
Thx for helping