Hello,
I tried to use PLEG , and it seems to be working fine (which I cannot believe on the first try), but can someone check if I did it correct.
What I want:
When a device is on for longer as 3 minutes , switch it off and send a notification:
I attached some screenshots:
inputs: I called it gate_open , and “device is turned on”
conditions: gate_open; Now > 03:00 (after the gate is open more than 3 minutes)
action: I selected the device to go “off”
notification: see screenshot , but there is an error in it , even if the device is switched off (within the 3 minutes) , after 3 minutes I still get the notification, and the device is switched off again.
edit … ohw … something horribly wrong; it seems that every 3 minutes the devices switches itself off and sends a notification, it keeps repeating this… it doesn’t look if the device is on or off to activate this PLEG… crap.
But when I think of it… it is not exactly what I want anyway…
maybe someone can think with me…
I have a scene;
It switches a device on, after 90 seconds it switches the device off. For this scene I want to check if the device is still on after 3 minutes, if yes , switch off and send a notification.
If I switch the device on without the scene I don’t want the PLEG to switch the device off again. Is that possible?
Thanks,
Cor