Mercurial > code > home > repos > homeauto
changeset 1566:de145b8129d8
rename living lamps
Ignore-this: 4ccc9c8869cb489d89f5d19da475db69
darcs-hash:0129999f21b383780a12f20975984306186fda90
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Fri, 27 Mar 2020 23:07:10 -0700 |
parents | ce5ea31e3605 |
children | c83072f01a00 |
files | service/rdf_to_mqtt/index.html service/rdf_to_mqtt/rdf_to_mqtt.py |
diffstat | 2 files changed, 12 insertions(+), 16 deletions(-) [+] |
line wrap: on
line diff
--- a/service/rdf_to_mqtt/index.html Fri Feb 14 17:00:54 2020 -0800 +++ b/service/rdf_to_mqtt/index.html Fri Mar 27 23:07:10 2020 -0700 @@ -21,14 +21,14 @@ <div><button data-post="output?s=:kitchenCounterLight&p=:brightness" data-body="1.0">Send (:kitchenCounterLight :brightness 1.0)</button></div> <div><button data-post="output?s=:livingLampShelf&p=:brightness" data-body="0.0">Send (:livingLampShelf :brightness 0.0)</button></div> <div><button data-post="output?s=:livingLampShelf&p=:brightness" data-body="1.0">Send (:livingLampShelf :brightness 1.0)</button></div> - <div><button data-post="output?s=:livingLamp1&p=:brightness" data-body="0.0">Send (:livingLamp1 :brightness 0.0)</button></div> - <div><button data-post="output?s=:livingLamp1&p=:brightness" data-body="1.0">Send (:livingLamp1 :brightness 1.0)</button></div> - <div><button data-post="output?s=:livingLamp2&p=:brightness" data-body="0.0">Send (:livingLamp2 :brightness 0.0)</button></div> - <div><button data-post="output?s=:livingLamp2&p=:brightness" data-body="1.0">Send (:livingLamp2 :brightness 1.0)</button></div> - <div><button data-post="output?s=:livingLamp3&p=:brightness" data-body="0.0">Send (:livingLamp3 :brightness 0.0)</button></div> - <div><button data-post="output?s=:livingLamp3&p=:brightness" data-body="1.0">Send (:livingLamp3 :brightness 1.0)</button></div> - <div><button data-post="output?s=:livingLamp4&p=:brightness" data-body="0.0">Send (:livingLamp4 :brightness 0.0)</button></div> - <div><button data-post="output?s=:livingLamp4&p=:brightness" data-body="1.0">Send (:livingLamp4 :brightness 1.0)</button></div> + <div><button data-post="output?s=:livingLampMantleEntry&p=:brightness" data-body="0.0">Send (:livingLamp1 :brightness 0.0)</button></div> + <div><button data-post="output?s=:livingLampMantleEntry&p=:brightness" data-body="1.0">Send (:livingLamp1 :brightness 1.0)</button></div> + <div><button data-post="output?s=:livingLampMantleChair&p=:brightness" data-body="0.0">Send (:livingLamp2 :brightness 0.0)</button></div> + <div><button data-post="output?s=:livingLampMantleChair&p=:brightness" data-body="1.0">Send (:livingLamp2 :brightness 1.0)</button></div> + <div><button data-post="output?s=:livingLampToyShelf&p=:brightness" data-body="0.0">Send (:livingLamp3 :brightness 0.0)</button></div> + <div><button data-post="output?s=:livingLampToyShelf&p=:brightness" data-body="1.0">Send (:livingLamp3 :brightness 1.0)</button></div> + <div><button data-post="output?s=:livingLampPiano&p=:brightness" data-body="0.0">Send (:livingLamp4 :brightness 0.0)</button></div> + <div><button data-post="output?s=:livingLampPiano&p=:brightness" data-body="1.0">Send (:livingLamp4 :brightness 1.0)</button></div> <div><button data-post="output?s=:theater&p=:inputSelector" data-body="bd">Theater to chromecast</button></div> <div><button data-post="output?s=:theater&p=:inputSelector" data-body="game">Theater to PS4</button></div>
--- a/service/rdf_to_mqtt/rdf_to_mqtt.py Fri Feb 14 17:00:54 2020 -0800 +++ b/service/rdf_to_mqtt/rdf_to_mqtt.py Fri Mar 27 23:07:10 2020 -0700 @@ -36,26 +36,22 @@ 'root': 'sonoff_0/switch/sonoff_basic_relay/command', 'values': 'binary', }, - ROOM['livingLamp1']: { + ROOM['livingLampMantleEntry']: { 'root': 'sonoff_1/switch/sonoff_basic_relay/command', 'values': 'binary', }, - ROOM['livingLamp2']: { + ROOM['livingLampMantleChair']: { 'root': 'sonoff_2/switch/sonoff_basic_relay/command', 'values': 'binary', }, - ROOM['livingLamp3']: { + ROOM['livingLampToyShelf']: { 'root': 'sonoff_3/switch/sonoff_basic_relay/command', 'values': 'binary', }, - ROOM['livingLamp4']: { + ROOM['livingLampPiano']: { 'root': 'sonoff_4/switch/sonoff_basic_relay/command', 'values': 'binary', }, - ROOM['livingLamp5']: { - 'root': 'sonoff_5/switch/sonoff_basic_relay/command', - 'values': 'binary', - }, ROOM['theater']: { 'root': 'theater_blaster/ir_out', 'values': 'theaterOutputs',