• 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
  Starting pilight on boot: "cannot bind to the SSDP multicast network" pilino1234 3 183 08-31-2019, 10:41 PM
Last Post: curlymo
Tongue pilight 8.1.5-1-gc0a175e0 Chrashes fleisch 4 371 08-17-2019, 01:04 PM
Last Post: curlymo
  pilight for Raspbian Buster (raspberry pi 4) ? starob 29 2,058 07-15-2019, 08:45 PM
Last Post: curlymo
  pilight-receive Filteroption not working Alex 2 472 07-14-2019, 08:35 AM
Last Post: Alex
  pilight usb nano format conversion ettman8 2 360 07-14-2019, 08:32 AM
Last Post: curlymo
  pilight 8.1.4 crashes after some hours Ulrich.Arnold 47 2,371 06-29-2019, 08:58 PM
Last Post: curlymo
  Raspberry PI, gpio-ir-tx and pilight not starting lordslash 5 723 06-11-2019, 05:19 PM
Last Post: curlymo
  pilight fails starting on boot Alex 5 635 06-09-2019, 06:02 PM
Last Post: curlymo
  GPIO input -> starting a rule scootermacro 1 169 06-09-2019, 07:40 AM
Last Post: curlymo
  Google Assistant coupled to pilight hansrijn2 4 1,121 05-29-2019, 06:54 PM
Last Post: curlymo

Forum Jump:


Browsing: 1 Guest(s)