Compare commits

..

No commits in common. "07cfe658cc982d742114f253b3c35491582d7cb7" and "e880a09ba8225c78bb8c2ffd155715f29e4ae784" have entirely different histories.

5 changed files with 8 additions and 64 deletions

View file

@ -12,7 +12,8 @@ services:
ipv4_address: 172.69.1.2 ipv4_address: 172.69.1.2
openhab: openhab:
image: "openhab/openhab:4.0.4" build:
dockerfile: openhab/Dockerfile
restart: always restart: always
environment: environment:
@ -21,7 +22,6 @@ services:
OPENHAB_HTTP_PORT: "8080" OPENHAB_HTTP_PORT: "8080"
OPENHAB_HTTPS_PORT: "8043" OPENHAB_HTTPS_PORT: "8043"
USER_ID: ${ID} USER_ID: ${ID}
GROUP_ID: ${GID}
network_mode: host network_mode: host
volumes: volumes:

6
openhab/Dockerfile Normal file
View file

@ -0,0 +1,6 @@
FROM openhab/openhab:4.0.4
ARG ID=1000
RUN echo $ID
RUN chown $ID -R /openhab/conf

View file

@ -1,26 +0,0 @@
Group Room
Group SmartClothes
Group Sensors
Group:Number Cam "Last roll" (Sensors)
Group Actuators
Group Lights (Actuators)
Number dmg "dernier degat" (Cam, Sensors){
channel="Channel='mqtt:topic:de'"
}
Switch animation "lampe animation degat" (Lights){
channel="Channel='mqtt:topic:lumiere'"
}
Color couleur "couleur lampe" (Lights){
channel="Channel='mqtt:topic:lumiere'"
}
Switch reset "effecteur nouveau tour" (Sensors){
channel="Channel='mqtt:topic:de'"
}

View file

@ -1,7 +0,0 @@
sitemap battlefield label="My home automation" {
Frame label="Battlefield" {
Text item=dmg label="Last Dmg [%s]"
Group item=Actuators icon="light"
Switch item=reset
}
}

View file

@ -1,29 +0,0 @@
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"
]
}