Rozdíly

Zde můžete vidět rozdíly mezi vybranou verzí a aktuální verzí dané stránky.

Odkaz na výstup diff

Obě strany předchozí revize Předchozí verze
Následující verze
Předchozí verze
diy:bigclown-pir [15.05.2019 16:58]
vm
diy:bigclown-pir [16.05.2019 22:32]
vm
Řádek 4: Řádek 4:
  
 {{ :​diy:​cat.jpg?​nolink&​800 |}} {{ :​diy:​cat.jpg?​nolink&​800 |}}
 +
 +And this is the management in Home Assistant:
 +{{ :​ha.png?​direct&​400 |}}
  
 ===== What is used ===== ===== What is used =====
Řádek 54: Řádek 57:
 This is the excerpt of the configuration to support this scenario: This is the excerpt of the configuration to support this scenario:
  
-<file ~/​.homeassistant/​configuration.yaml>​+<​file ​python ​~/​.homeassistant/​configuration.yaml>​
 mqtt: mqtt:
   broker: 10.10.10.10   broker: 10.10.10.10
Řádek 139: Řádek 142:
       - automation.start_water_fountain_by_pir       - automation.start_water_fountain_by_pir
  
 +</​file>​
 +
 +===== Debugging =====
 +If everything works, in MQTT you should soon see events sent by the BigClown Gateway from the Motion Detector like this:
 +
 +<​code>​
 +# mosquitto_sub -h <​mqtt-server>​ -t "​node/#"​ -v
 +node/​kit-motion-detector:​0/​pir/​-/​event-count 28250
 +node/​kit-motion-detector:​0/​pir/​-/​event-count 28253
 +node/​kit-motion-detector:​0/​pir/​-/​event-count 28264
 +node/​kit-motion-detector:​0/​pir/​-/​event-count 28279
 +node/​kit-motion-detector:​0/​pir/​-/​event-count 28282
 +node/​kit-motion-detector:​0/​pir/​-/​event-count 28311
 +node/​kit-motion-detector:​0/​battery/​-/​voltage 2.91
 +node/​kit-motion-detector:​0/​pir/​-/​event-count 28318
 </​code>​ </​code>​
  
diy/bigclown-pir.txt · Poslední úprava: 16.05.2019 22:32 autor: vm