i want to turn a heating on at 07-03-2016 17:00
But i cant get it working. Tried
Its mar 07-16
its monday 17:00
Its 2016-03-07 17:00
-
Rule on date and time
-
as far as i know you cannot use dates in rules. please correct me if i am wrong.
you can do it with a workaround. create a date device with a shellsensor.{ "id": "system-date", "name": "System Date", "class": "ShellSensor", "attributeName": "date", "attributeType": "string", "attributeUnit": "", "command": "date +%d-%m-%Y", "interval": 60000 },
then you should be able to compare the date in rules like
IF $system-date = 16-03-2016 THEN do some stuff...
pimatic v0.9 has been released!
Support Pimatic and get some free stickers
Like us on Facebookmake it so !
-
Now even this doesn’t work??
if its 17:00 then X
I get:
error [pimatic]: typeof p.changeListener is "function"
Ah okay, something very weird is happening. I also get that error when i delete the rule?
-
Strange thing! Try to delete the rule from the config.json
pimatic v0.9 has been released!
Support Pimatic and get some free stickers
Like us on Facebookmake it so !
-
If it is true that rules on date only be able with this workararound of a ShellSensor a new feature request should be created.
-
This is working:
its "07-03-2016 16:00" then X