• 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
skipping overridden action switch
#1
Hi,

I'm using pilight for several years and recently updated from V7 to V8.1.4.
I read the manual and updated the the config to the new syntax.
Switching devices by gui works perfectly.

Unfortunately I can't figure out one thing:

This rule moves the switches in the gui but does not switch the actual lights:

Code:
"guteNachtWoziAusBadAnfuer8MinutenFlur2Minuten": {
"rule": "IF (WoZiLampe.state == off AND Wozistate.state == on)
         AND sunrise.sun == set
         THEN switch DEVICE Wozistate TO off
         AND switch DEVICE BadLampe TO on FOR '8 MINUTE'
         AND switch DEVICE FlurLampe
         AND GlasschrankLampe TO on FOR '2 MINUTE'",
 "active": 1
}


These errors are shown on the log:

Code:
[Jan 18 23:23:47:945863] pilight-daemon: ERROR: /usr/local/lib/pilight/actions/switch.lua:119: skipping overridden action switch for device FlurLampe
[Jan 18 23:23:47:947102] pilight-daemon: ERROR: /usr/local/lib/pilight/actions/switch.lua:119: skipping overridden action switch for device GlasschrankLampe
[Jan 18 23:29:28:437484] pilight-daemon: ERROR: /usr/local/lib/pilight/actions/switch.lua:119: skipping overridden action switch for device BadLampe


Can you give me a hint how to fix the rule?
 
Reply
#2
With just this snippit of your config not. Can you post the full output?
 
Reply
#3
I solved it.
Before I used a RPi1, now I'm using a RPi3. I think the new pi is too fast to switch multiple switches.
I just inserted a delay with "AFTER '500 MILLISECOND'" before the second and "AFTER '1000 MILLISECOND'" before the third switch and it worked.
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  _VARSTORE_ set action fourty2 1 257 05-19-2019, 09:07 PM
Last Post: curlymo
  http action Niek 21 2,960 08-12-2018, 11:44 AM
Last Post: rorie
  Can't switch Relay device by rules: Error switch.lua:77 wobbi 6 606 07-31-2018, 06:25 AM
Last Post: curlymo
  Send on command when switch is already "on" joshovki 1 433 01-28-2018, 11:27 PM
Last Post: curlymo
  action: Pushbullet bazb 24 9,693 01-04-2018, 08:38 PM
Last Post: curlymo
  action: pushover Niek 36 15,220 12-03-2017, 11:13 AM
Last Post: Alex
  Problem with a Rule for a One Button Switch martin-dj 1 1,074 03-06-2017, 12:01 PM
Last Post: pilino1234
  duration switch protocol creamers 6 1,917 01-10-2017, 10:04 PM
Last Post: wo_rasp
  action: file Niek 14 3,352 06-23-2016, 04:02 PM
Last Post: Niek
  action: switch Niek 54 17,660 03-31-2016, 06:24 PM
Last Post: jjj

Forum Jump:


Browsing: 1 Guest(s)