openhab: base config done : sitemap + things + item and link mqtt
This commit is contained in:
parent
0ee3d15754
commit
07cfe658cc
3 changed files with 62 additions and 0 deletions
29
openhab/openhab_conf/things/battlefield.things
Normal file
29
openhab/openhab_conf/things/battlefield.things
Normal file
|
@ -0,0 +1,29 @@
|
|||
Bridge mqtt:broker:mainBroker [ host="172.69.1.2", secure=false ]
|
||||
|
||||
|
||||
Thing mqtt:topic:lumiere "lumiere" (mqtt:broker:mainBroker) {
|
||||
Channels:
|
||||
Type switch : light "indicateur degat" [
|
||||
stateTopic="lumiere/degat/etat",
|
||||
commandTopic="lumiere/degat/commande",
|
||||
on="ON", off="OFF"
|
||||
]
|
||||
Type color : light "effect color" [
|
||||
stateTopic="lumiere/degat/color/etat",
|
||||
commandTopic="lumiere/degat/color/commande", colorMode="RGB"
|
||||
]
|
||||
}
|
||||
|
||||
Thing mqtt:topic:de "lecteur de" (mqtt:broker:mainBroker) {
|
||||
Channels:
|
||||
Type number : de "effecteur degat" [
|
||||
stateTopic="de/degat/dernierLance"
|
||||
]
|
||||
}
|
||||
|
||||
Thing mqtt:topic:button "recommencer" (mqtt:broker:mainBroker) {
|
||||
Channels:
|
||||
Type switch : de "effecteur nouveau tour" [
|
||||
stateTopic="de/nouveauTour"
|
||||
]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue