]> git.basschouten.com Git - openhab-addons.git/commitdiff
Update README.md (#11836)
authorMichael Aschenborn <michael.aschenborn@emailprivat.de>
Tue, 21 Dec 2021 17:39:32 +0000 (18:39 +0100)
committerGitHub <noreply@github.com>
Tue, 21 Dec 2021 17:39:32 +0000 (18:39 +0100)
missing )

bundles/org.openhab.automation.jsscripting/README.md

index ca04165e7854322d841911aa354c10c805200f2e..6ce4b4f2f1a7ed5d49b11af23e024d2554e38b2b 100644 (file)
@@ -579,7 +579,7 @@ Additionally all the above triggers have the following functions:
 //Basic rule, when the BedroomLight1 is changed, run a custom function
 rules.when().item('BedroomLight1').changed().then(e => {
     console.log("BedroomLight1 state", e.newState)
-}.build();
+}).build();
 
 //turn on the kitchen light at SUNSET
 rules.when().timeOfDay("SUNSET").then().sendOn().toItem("KitchenLight").build("Sunset Rule","turn on the kitchen light