Hi!
There is any solution in order to find which automation triggered my switch? Like history or something…
Thank you in advanced!
Hi!
There is any solution in order to find which automation triggered my switch? Like history or something…
Thank you in advanced!
if you click switch and the RELATED
you see what automation scripts it in
logbook can tell you
or
if you click on the switch then RELATED
“Related” it is only showing me in what automation I have the switch used…
And the logbook it is showing me only if the switch has been turned off or on, but not by who…
I think is because the switch is made by me, as custom template switch…
There is any way to see this for such a swtich?
Could it be, that this is caused by the „trigger“ (turn_on
/ turn_off
) of your template switch configuration?
This is the switch configuration
bedroom_heater_custom:
value_template: "{{ states('variable.bedroom_heater') }}"
turn_on:
- service: mqtt.publish
data:
topic: cmnd/ZigBee_BridgeS/zbsend
payload: '{"Device":"Bedroom_Heater","Write":{"TuyaTempTarget":70}}'
qos: "2"
- service: variable.set_variable
data:
variable: bedroom_heater
value: "on"
turn_off:
- service: mqtt.publish
data:
topic: cmnd/ZigBee_BridgeS/zbsend
payload: '{"Device":"Bedroom_Heater","Write":{"TuyaTempTarget":1}}'
qos: "2"
- service: variable.set_variable
data:
variable: bedroom_heater
value: "off"