I'm trying to display on my gui a timestamp when was the last time a certain rule was fired. So in the rule i want to push a timestamp to a status command linked to a custom sensor which is visible in the gui.
But what would be the best way to mak e this timestamp? If possible i d like to avoid using a shell script.
My initial idea was to use a sensor which has a status cmd of the date time protocol. And then using that sensor value. Here is my rule in which i try to store the timestamp. But it outputs literally the name of the sensor.
rule "alarm aanwezig inschakelen"
$evt:Event(source == "virtual_sensor_aanw", value == "1")
execute.command("groep alles uit gelijk (OFF)");
execute.command("Sonos Woonkamer pause");
//1 lijn test test