Advertisement
Guest User

Untitled

a guest
Jan 19th, 2020
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. - alias: hasp_plate01_p1_Pokojt
  2. trigger:
  3. - platform: state
  4. entity_id: sensor.pokojt
  5. - platform: state
  6. entity_id: 'binary_sensor.plate01_connected'
  7. - platform: homeassistant
  8. event: start
  9. condition:
  10. - condition: state
  11. entity_id: 'binary_sensor.plate01_connected'
  12. state: 'on'
  13. action:
  14. - service: mqtt.publish
  15. data:
  16. topic: 'hasp/plate01/command/p[1].b[7].font'
  17. payload: '2'
  18. - service: mqtt.publish
  19. data:
  20. topic: 'hasp/plate01/command/p[1].b[7].txt'
  21. payload_template: '"{{ states.sensor.pokojt.state }}"'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement