Показаны различия между двумя версиями страницы.
Следующая версия | Предыдущая версия | ||
openhab [2019/01/09 03:06] admin создано |
openhab [2021/09/25 03:37] (текущий) 65.21.180.7 старая версия восстановлена (2021/09/20 03:59) |
||
---|---|---|---|
Строка 10: | Строка 10: | ||
File: services/ | File: services/ | ||
- | ``` | + | < |
# URL to the MQTT broker, e.g. tcp:// | # URL to the MQTT broker, e.g. tcp:// | ||
mqtt.url=tcp:// | mqtt.url=tcp:// | ||
Строка 17: | Строка 17: | ||
# Optional. Password to authenticate with the broker. | # Optional. Password to authenticate with the broker. | ||
mqtt.pwd=< | mqtt.pwd=< | ||
- | ``` | + | </ |
then configure openhab message bus | then configure openhab message bus | ||
File: services/ | File: services/ | ||
- | ``` | + | < |
# Name of the broker from mqtt.cfg | # Name of the broker from mqtt.cfg | ||
broker=mqtt | broker=mqtt | ||
Строка 27: | Строка 27: | ||
# Receive status | # Receive status | ||
stateSubscribeTopic=/ | stateSubscribeTopic=/ | ||
- | ``` | + | </ |
after such kind of configuring, | after such kind of configuring, | ||
Example: | Example: | ||
File items/ | File items/ | ||
- | ``` | + | < |
Dimmer | Dimmer | ||
Color | Color | ||
Switch | Switch | ||
- | ``` | + | </ |
And appropriate configuration of LightHub items | And appropriate configuration of LightHub items | ||
- | ``` | + | < |
{ | { | ||
" | " | ||
Строка 49: | Строка 49: | ||
} | } | ||
- | ``` | + | </ |
Note: | Note: |