• 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
Multiple devices difrent actions
#1
According to the Wiki there is a option to change multiple devices to a specific state
Code:
THEN switch DEVICE mainlight AND bookshelve AND hall TO on

is it also posible to change to difrent state

Code:
THEN switch DEVICE mainlight TO off AND bookshelve  TO on

Code:
THEN switch DEVICE mainlight TO off AFTER 5 AND bookshelve AND hall TO on
 
Reply
#2
I don't know, but what could happen? Just try it Smile
 
Reply
#3
i wrote the rule bellow
Code:
        "WindRainOn": {
            "rule": "IF Rain.state IS on OR Storm.state IS on THEN switch DEVICE RelayP01B01C01 TO on AND switch DEVICE BackScreen TO up",
            "active": 1
        },

but that didn't work
[Apr 14 12:18:56:244985] pilight-daemon: ERROR: switch action "TO" only takes one argument
[Apr 14 12:18:56:245920] pilight-daemon: ERROR: rule #37 invalid: invalid action


Also the rules bellow are not working

Code:
        "WindRainOn": {
            "rule": "IF Rain.state IS on OR Storm.state IS on THEN switch ( DEVICE RelayP01B01C01 TO on ) AND ( switch DEVICE BackScreen TO up )",
            "active": 1
        },

        "WindRainOn": {
            "rule": "IF Rain.state IS on OR Storm.state IS on THEN ( switch  DEVICE RelayP01B01C01 TO on ) AND ( switch DEVICE BackScreen TO up )",
            "active": 1
        },
 
Reply
#4
Multiple actions per rule is now supported as suggested by your first rule. I can also implement your last suggestion as an alternative writing...
 
Reply
#5
Sorry was to busy the last weekend
Thanks for this new function i will be really happy to use it

I will recive a pi b+ and a pi b 2 for test by the end of this week so i can install the new nightly's more often

I will test this and upgrade my live system when everything works fine
 
Reply
#6
Feel free to test the nightly versions, but be careful, they do have bugs in them sometimes. If you want to have a system that runs well without you having to take care of it, use the stable version. Just rolled back our system to stable because the alecto_ws1700 protocol was not working at all and we just wanted a working system for now.

Maybe having a stable system and use another RPi for experimenting with the nightlies might be a good setup for you Smile
 
Reply
#7
(04-28-2015, 06:47 PM)pilino1234 Wrote: Maybe having a stable system and use another RPi for experimenting with the nightlies might be a good setup for you Smile
that is exactly what i want to do
i have my live system on a good working nightly since i really needed some functions
today is received a b+ and a 2B for testing
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  Error in Actions with 8.1.0 tomk 1 974 05-30-2018, 06:20 AM
Last Post: curlymo
  multiple use of ping protocol bastelwastel 3 2,511 10-11-2015, 02:42 AM
Last Post: wo_rasp
  timing for switching multiple devices with one rule hasselh 6 4,622 09-28-2015, 02:32 PM
Last Post: pilino1234
  Switch device multiple times do1eh 0 1,542 08-07-2015, 10:31 PM
Last Post: do1eh
  remote switch to off multiple times koos147 0 3,174 04-28-2015, 06:53 PM
Last Post: koos147
  Multiple parameters in rule koos147 5 3,204 04-01-2015, 09:37 PM
Last Post: curlymo
  Multiple devices to fast koos147 2 3,227 03-15-2015, 05:09 PM
Last Post: koos147
  Multiple actions in a rule bazb 1 1,933 03-05-2015, 07:45 AM
Last Post: curlymo

Forum Jump:


Browsing: 1 Guest(s)