DOCS: Add missing bracket (#12722)
This commit is contained in:
parent
7364e69fd2
commit
47418606c6
|
@ -611,7 +611,7 @@ Additionally all the above triggers have the following functions:
|
||||||
//Basic rule, when the BedroomLight1 is changed, run a custom function
|
//Basic rule, when the BedroomLight1 is changed, run a custom function
|
||||||
rules.when().item('BedroomLight1').changed().then(e => {
|
rules.when().item('BedroomLight1').changed().then(e => {
|
||||||
console.log("BedroomLight1 state", e.newState)
|
console.log("BedroomLight1 state", e.newState)
|
||||||
}.build();
|
}).build();
|
||||||
|
|
||||||
//turn on the kitchen light at SUNSET
|
//turn on the kitchen light at SUNSET
|
||||||
rules.when().timeOfDay("SUNSET").then().sendOn().toItem("KitchenLight").build("Sunset Rule","turn on the kitchen light
|
rules.when().timeOfDay("SUNSET").then().sendOn().toItem("KitchenLight").build("Sunset Rule","turn on the kitchen light
|
||||||
|
|
Loading…
Reference in New Issue