• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pilight rule does not execute
#1
The following rule is obviously not executed:

Code:
        "sleepelroplug": {
            "rule": "IF ( (CurrentDateTime.hour == 10 AND CurrentDateTime.minute == 25) ) THEN switch DEVICE elroplug2 AND elroplug3 TO off",
            "active": 0
        },

The device is
Code:
        "elroplug2": {
            "protocol": [ "elro_800_switch" ],
            "id": [{
                "systemcode": xy,
                "unitcode": zx
            }],
            "state": "on"
        },
        "elroplug3": {
            "protocol": [ "elro_800_switch" ],
            "id": [{
                "systemcode": zz,
                "unitcode": xx
            }],
            "state": "on"
        },
        "CurrentDateTime": {
            "protocol": [ "datetime" ],
            "id": [{
                "longitude": XY,
                "latitude": XZ
            }],
            "year": 2017,
            "month": 6,
            "day": 9,
            "hour": 10,
            "minute": 27,
            "second": 1,
            "weekday": 6,
            "dst": 1
        },

Nothing happens at the given time.
I also tried changing the hour by 2 hours, because I saw that my pilight.log has an offset of 2 hours, but same result.

What do I do wrong?
 
Reply
#2
If you set "active" to zero, a rule ofc will not be executed Smile
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  pilight-send seems successful but doesn't actually send RF signal ayeyebrazov 37 1,144 03-31-2020, 01:02 PM
Last Post: curlymo
  pilight 8.1.5 not working on Raspberry pi after reboot beejayf 4 204 03-08-2020, 12:14 AM
Last Post: beejayf
  pilight cpu usage possibly associated with noticeable sluggishness? hepcat72 4 276 01-28-2020, 08:02 PM
Last Post: hepcat72
  apt.pilight.org stable Release' is not signed. thomasol 2 336 01-23-2020, 11:34 PM
Last Post: thomasol
  pilight and SIGNALduino cc1101 Caleus 0 235 01-19-2020, 09:13 AM
Last Post: Caleus
  filter stopped working after update to pilight 8.1.5 zlin50 19 834 01-03-2020, 02:15 PM
Last Post: curlymo
Question [Solved] Openweathermap with pilight 7.0-40 doesn't work Seebueb 2 268 01-01-2020, 06:45 PM
Last Post: Seebueb
  [Solved] Strange receive problem with 433Mhz Receiver and pilight 8.1.5 vanillaice30 15 992 12-18-2019, 11:09 AM
Last Post: vanillaice30
  pilight error after update to 8.1.5 on Odroid C2 WitchDoctor 3 503 11-29-2019, 09:56 PM
Last Post: curlymo
  pilight crashing randomly PatiB 7 754 11-16-2019, 10:50 PM
Last Post: curlymo

Forum Jump:


Browsing: 1 Guest(s)