22.02.2021, 07:36
Have you considered using MQTT (https://tasmota.github.io/docs/MQTT/) for this? It looks like you can configure status updates to be published to MQTT automatically so polling is not needed.
You can also check event.sender value in event scripts. It will tell you who triggered the event.
See this post for a list of possible senders: https://forum.logicmachine.net/showthrea...3#pid19193
You can also check event.sender value in event scripts. It will tell you who triggered the event.
Code:
-- do nothing if triggered by a resident script
if event.sender == 'sr' then
return
end