This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
domotica [2018/01/07 00:18] – herman | domotica [2018/01/07 00:20] – herman | ||
---|---|---|---|
Line 1: | Line 1: | ||
Was een hele toer om begin te maken maar gelukt: | Was een hele toer om begin te maken maar gelukt: | ||
- | [[https:// | + | [[https:// |
Configuratie van dat laatste was niet eenvoudig maar deze config in automations.yaml werkt: | Configuratie van dat laatste was niet eenvoudig maar deze config in automations.yaml werkt: | ||
Line 10: | Line 10: | ||
action: | action: | ||
service: light.toggle | service: light.toggle | ||
+ | |||
+ | Zo is de schakelaar in configuration.yaml geconfigureerd: | ||
+ | < | ||
+ | # Switch | ||
+ | binary_sensor: | ||
+ | - platform: mqtt | ||
+ | name: " | ||
+ | state_topic: | ||
+ | command_topic: | ||
+ | qos: 1 | ||
+ | payload_on: " | ||
+ | payload_off: | ||
+ | retain: true | ||
+ | </ |