• 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 error after update to 8.1.5 on Odroid C2 WitchDoctor 3 111 11-29-2019, 09:56 PM
Last Post: curlymo
  pilight crashing randomly PatiB 7 255 11-16-2019, 10:50 PM
Last Post: curlymo
  [Fixed] RaspberryPi4 pilight 8.1.5 - Send isn't working DominikB1993 4 293 10-18-2019, 10:25 PM
Last Post: DominikB1993
  Real 433Mhz Remote is disturbed by pilight service henne111 2 308 10-06-2019, 06:18 PM
Last Post: wo_rasp
Tongue (solved) pilight 8.1.5-1-gc0a175e0 Chrashes fleisch 5 742 10-03-2019, 01:15 PM
Last Post: fleisch
  Starting pilight on boot: "cannot bind to the SSDP multicast network" pilino1234 4 518 09-29-2019, 02:08 PM
Last Post: tomk
  pilight for Raspbian Buster (raspberry pi 4) ? starob 29 3,307 07-15-2019, 08:45 PM
Last Post: curlymo
  pilight-receive Filteroption not working Alex 2 673 07-14-2019, 08:35 AM
Last Post: Alex
  pilight usb nano format conversion ettman8 2 556 07-14-2019, 08:32 AM
Last Post: curlymo
  pilight 8.1.4 crashes after some hours Ulrich.Arnold 47 3,217 06-29-2019, 08:58 PM
Last Post: curlymo

Forum Jump:


Browsing: 1 Guest(s)