User Tools

Site Tools


actions

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
actions [2015/04/19 17:15]
curlymo
actions [2016/06/15 19:23] (current)
woutput typo
Line 7: Line 7:
  
 **Description**\\ **Description**\\
-Changes the state of a switch, relay of dimmer.+Changes the state of a switch, relay or dimmer.
  
 **Options** **Options**
Line 16: Line 16:
 |TO|x| |New state| |TO|x| |New state|
  
-pilight ​nightly+pilight ​v7.0
 ^name^required^multiple values^description^ ^name^required^multiple values^description^
 |FOR| | |Determine how long this new state lasts before we change back to the previous state| |FOR| | |Determine how long this new state lasts before we change back to the previous state|
 |AFTER| | |After how long do we want the new state to be set| |AFTER| | |After how long do we want the new state to be set|
 +
 +FOR and AFTER units are:
 +- MILLISECOND
 +- SECOND
 +- MINUTE
 +- HOUR
 +- DAY
  
 **Examples** **Examples**
Line 29: Line 36:
 </​code>​ </​code>​
  
-pilight ​nightly+pilight ​v7.0
 <​code>​ <​code>​
-IF 1 == 1 THEN switch DEVICE light TO on FOR 10 +IF 1 == 1 THEN switch DEVICE light TO on FOR 10 MINUTE 
-IF 1 == 1 THEN switch DEVICE light TO on AFTER 30 +IF 1 == 1 THEN switch DEVICE light TO on AFTER 30 MILLISECOND 
-IF 1 == 1 THEN switch DEVICE light TO off FOR 10 AFTER 30+IF 1 == 1 THEN switch DEVICE light TO off FOR 10 SECOND ​AFTER 30 MINUTE
 </​code>​ </​code>​
  
Line 90: Line 97:
 |TO|x| |New dimlevel| |TO|x| |New dimlevel|
  
-pilight ​nightly+pilight ​v7.0
 ^name^required^multiple values^description^ ^name^required^multiple values^description^
 |FOR| | |Determine how long this new dimlevel lasts before we change back to the previous dimlevel + state| |FOR| | |Determine how long this new dimlevel lasts before we change back to the previous dimlevel + state|
Line 96: Line 103:
 |IN| | |To be combined with FROM. In what time do we want to change the dimlevel FROM x TO y| |IN| | |To be combined with FROM. In what time do we want to change the dimlevel FROM x TO y|
 |FROM| | |To be combined with IN. From what dimlevel do we want to start a sequence to the target dimlevel| |FROM| | |To be combined with IN. From what dimlevel do we want to start a sequence to the target dimlevel|
 +
 +FOR, AFTER, and IN units are:
 +- MILLISECOND
 +- SECOND
 +- MINUTE
 +- HOUR
 +- DAY
  
 **Examples** **Examples**
Line 105: Line 119:
 </​code>​ </​code>​
  
-pilight ​nightly+pilight ​v7.0
 <​code>​ <​code>​
-IF 1 == 1 THEN dim DEVICE mainlight TO 15 FOR 10 +IF 1 == 1 THEN dim DEVICE mainlight TO 15 FOR 10 MINUTE 
-IF 1 == 1 THEN dim DEVICE mainlight TO 15 AFTER 30 +IF 1 == 1 THEN dim DEVICE mainlight TO 15 AFTER 30 SECOND 
-IF 1 == 1 THEN dim DEVICE mainlight TO 15 AFTER 30 FOR 10 +IF 1 == 1 THEN dim DEVICE mainlight TO 15 AFTER 30 SECOND ​FOR 10 MINUTE 
-IF 1 == 1 THEN dim DEVICE mainlight TO 15 FROM 0 IN 2700 +IF 1 == 1 THEN dim DEVICE mainlight TO 15 FROM 0 IN 45 MINUTE 
-IF 1 == 1 THEN dim DEVICE mainlight TO 15 FROM 0 IN 2700 FOR 60 AFTER 10+IF 1 == 1 THEN dim DEVICE mainlight TO 15 FROM 0 IN 45 MINUTE ​FOR 15 MINUTE ​AFTER 5 MINUTE
 </​code>​ </​code>​
  
Line 131: Line 145:
 **Examples** **Examples**
 <​code>​ <​code>​
-IF 1 == 1 THEN pushover TITLE \"Doorbell rang\" ​MESSAGE ​\"Doorbell rang\" ​TOKEN abcd123abc USER pilight+IF 1 == 1 THEN pushover TITLE Doorbell rang MESSAGE Doorbell rang TOKEN abcd123abc USER pilight
 </​code>​ </​code>​
  
Line 138: Line 152:
  
 **Version**\\ **Version**\\
-Available since in the pilight ​nightly+Available since in the pilight ​v7.0
  
 **Description**\\ **Description**\\
Line 152: Line 166:
 **Examples** **Examples**
 <​code>​ <​code>​
-IF 1 == 1 THEN pushbullet TITLE \"Doorbell rang\" ​BODY \"Doorbell rang\" ​TOKEN abcd123abc TYPE note+IF 1 == 1 THEN pushbullet TITLE Doorbell rang BODY Doorbell rang TOKEN abcd123abc TYPE note
 </​code>​ </​code>​
  
Line 159: Line 173:
  
 **Version**\\ **Version**\\
-Available since in the pilight ​nightly+Available since in the pilight ​v7.0
  
 **Description**\\ **Description**\\
Line 192: Line 206:
 **Examples** **Examples**
 <​code>​ <​code>​
-IF 1 == 1 THEN sendmail SUBJECT ​\"Doorbell rang\" ​MESSAGE ​\"Doorbell rang\" ​TO \"someone@somewhere.com\"+IF 1 == 1 THEN sendmail SUBJECT Doorbell rang MESSAGE Doorbell rang TO someone@somewhere.com
 </​code>​ </​code>​
  
Line 198: Line 212:
  
 **Version**\\ **Version**\\
-Available since the pilight ​nightly+Available since the pilight ​v7.0
  
 **Description**\\ **Description**\\
Line 211: Line 225:
 |COLOR|x| |New color| |COLOR|x| |New color|
  
-pilight ​nightly+pilight ​v7.0
 ^name^required^multiple values^description^ ^name^required^multiple values^description^
 |FOR| | |Determine how long this new label lasts before we change back to the previous label| |FOR| | |Determine how long this new label lasts before we change back to the previous label|
 |AFTER| | |After how long do we want the new label to be set| |AFTER| | |After how long do we want the new label to be set|
 +
 +FOR and AFTER units are:
 +- MILLISECOND
 +- SECOND
 +- MINUTE
 +- HOUR
 +- DAY
  
 **Examples** **Examples**
  
-pilight ​v6.0+pilight ​v7.0
 <​code>​ <​code>​
 IF 1 == 1 THEN label DEVICE tempLabel TO on IF 1 == 1 THEN label DEVICE tempLabel TO on
-IF 1 == 1 THEN label DEVICE tempLabel AND humiLabel TO \"No information\" +IF 1 == 1 THEN label DEVICE tempLabel AND humiLabel TO No information 
-IF 1 == 1 THEN label DEVICE tempLabel TO 23.5 FOR 10 +IF 1 == 1 THEN label DEVICE tempLabel TO 23.5 FOR 10 SECOND 
-IF 1 == 1 THEN label DEVICE tempLabel TO \"Bell rang\" ​AFTER 30 +IF 1 == 1 THEN label DEVICE tempLabel TO Bell rang AFTER 30 SECOND 
-IF 1 == 1 THEN label DEVICE tempLabel TO None FOR 10 AFTER 30+IF 1 == 1 THEN label DEVICE tempLabel TO None FOR 10 MINUTE ​AFTER 30 SECOND
 </​code>​ </​code>​
  
actions.1429463744.txt.gz · Last modified: 2015/11/27 21:08 (external edit)