Because the action is 'single' each time the message is sent the myServer server variable called 'zigbee2mqtt_kitchen buttonaction' always has the value 'single' so it doesn't change, so I can't use 'changes value' as a trigger in a macro.Topic: zigbee2mqtt/Kitchen button
Payload: {"action":"single","battery":100,"linkquality":68,"voltage":3100}
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Thanks, but if I could save the current time on receipt of an MQTT message I could probably do the action I want to do instead. I don't know how to do anything on receipt of a message (rather than on a zigbee2mqtt related server variable changing).Just brain storming here (and there may be a better way), but couldn't you save off the current time ({{CURRENT_TIME}} or one of the similar server variables) when a MQTT message is received? Then trigger on that variable changing value.
Please Log in or Create an account to join the conversation.
@David Li @davep Any ideas about this? Or is it just not doable?Thanks, but if I could save the current time on receipt of an MQTT message I could probably do the action I want to do instead. I don't know how to do anything on receipt of a message (rather than on a zigbee2mqtt related server variable changing).Just brain storming here (and there may be a better way), but couldn't you save off the current time ({{CURRENT_TIME}} or one of the similar server variables) when a MQTT message is received? Then trigger on that variable changing value.
Andrew
Please Log in or Create an account to join the conversation.