Mercurial > code > home > repos > homeauto
changeset 1557:15fc5f783580
demo buttons send :press not :release
Ignore-this: 8aef3ae3545f1b8b2f3ac02dcd95479e
darcs-hash:2a507011b007ba7a0dba0c4975833269bb1e8786
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Fri, 14 Feb 2020 00:08:43 -0800 |
parents | d36d3b9ae516 |
children | d129d083ba21 |
files | service/reasoning/index.html |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/service/reasoning/index.html Fri Feb 14 00:07:23 2020 -0800 +++ b/service/reasoning/index.html Fri Feb 14 00:08:43 2020 -0800 @@ -44,11 +44,11 @@ <button data-url="oneShot" data-body="sensor:kitchenCounterButton1 :buttonState :press .">kitchenCounterButton1</button> <button data-url="oneShot" data-body=":bookSwitch :buttonState :press .">book switch</button> - <button data-url="oneShot" data-body=":frontBedPostSwitch1 :buttonState :release .">asher bed post 1</button> - <button data-url="oneShot" data-body=":frontBedPostSwitch2 :buttonState :release .">asher bed post 2</button> - <button data-url="oneShot" data-body=":frontBedPostSwitch3 :buttonState :release .">asher bed post 3</button> - <button data-url="oneShot" data-body=":frontBedPostSwitch4 :buttonState :release .">asher bed post 4</button> - <button data-url="oneShot" data-body=":frontBedPostSwitch5 :buttonState :release .">asher bed post 5</button> + <button data-url="oneShot" data-body=":frontBedPostSwitch1 :buttonState :press .">asher bed post 1</button> + <button data-url="oneShot" data-body=":frontBedPostSwitch2 :buttonState :press .">asher bed post 2</button> + <button data-url="oneShot" data-body=":frontBedPostSwitch3 :buttonState :press .">asher bed post 3</button> + <button data-url="oneShot" data-body=":frontBedPostSwitch4 :buttonState :press .">asher bed post 4</button> + <button data-url="oneShot" data-body=":frontBedPostSwitch5 :buttonState :press .">asher bed post 5</button> <script> Array.from(document.querySelectorAll("button[data-url]")).forEach((el) => { el.addEventListener("click", (ev) => {