Инструменты пользователя

Инструменты сайта


openhab

Различия

Показаны различия между двумя версиями страницы.

Ссылка на это сравнение

Предыдущая версия справа и слева Предыдущая версия
openhab [2021/09/20 12:33]
162.55.213.89 старая версия восстановлена (2021/09/20 03:33)
openhab [2021/09/25 03:37] (текущий)
65.21.180.7 старая версия восстановлена (2021/09/20 03:59)
Строка 10: Строка 10:
  
 File: services/mqtt.cfg File: services/mqtt.cfg
-```+<code>
 # URL to the MQTT broker, e.g. tcp://localhost:1883 or ssl://localhost:8883 # URL to the MQTT broker, e.g. tcp://localhost:1883 or ssl://localhost:8883
 mqtt.url=tcp://192.168.88.2:1883 mqtt.url=tcp://192.168.88.2:1883
Строка 17: Строка 17:
 # Optional. Password to authenticate with the broker. # Optional. Password to authenticate with the broker.
 mqtt.pwd=<password> mqtt.pwd=<password>
-```+</code>
 then configure openhab message bus then configure openhab message bus
 File: services/mqtt-eventbus.cfg File: services/mqtt-eventbus.cfg
-```+<code>
 # 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=/myhome/s_out/${item} stateSubscribeTopic=/myhome/s_out/${item}
-```+</code>
 after such kind of configuring, you can use same items name between OpenHab and LightHub after such kind of configuring, you can use same items name between OpenHab and LightHub
 Example: Example:
 File items/demo.item (sor sitemap demo) File items/demo.item (sor sitemap demo)
-```+<code>
 Dimmer  bth2    "Ванная люстра [%d %%]" <slider>        (gBath,Lights) ["Lighting"] Dimmer  bth2    "Ванная люстра [%d %%]" <slider>        (gBath,Lights) ["Lighting"]
 Color   kuh     "RGB Вся Кухня" <slider>        (gKitchen,Lights) ["Lighting"] Color   kuh     "RGB Вся Кухня" <slider>        (gKitchen,Lights) ["Lighting"]
 Switch  h_entr     "Corridor"      <heating>   (gEntr, Heating) ["Switchable"] Switch  h_entr     "Corridor"      <heating>   (gEntr, Heating) ["Switchable"]
-```+</code>
  
 And appropriate configuration of LightHub items And appropriate configuration of LightHub items
-```+<code>
 { {
   "dmx":[3,60], //Init 60 channels dmx out on pin 3 (pin def for Mega only)   "dmx":[3,60], //Init 60 channels dmx out on pin 3 (pin def for Mega only)
Строка 49: Строка 49:
 } }
  
-``` +</code>
  
 Note: Note:
openhab.txt · Последнее изменение: 2021/09/25 03:37 — 65.21.180.7