Advertisement
pqpxoxa

Untitled

Jun 26th, 2020
446
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. automation:
  2.  
  3. - id: '1593119650807'
  4. alias: Button Office Lamp
  5. description: ''
  6. trigger:
  7. - entity_id: binary_sensor.office_button_a
  8. from: 'off'
  9. platform: state
  10. to: 'on'
  11. condition: []
  12. action:
  13. - device_id: 1cdb60766cbb4ffc8b12ac9713fb1b55
  14. domain: switch
  15. entity_id: switch.office_lamp
  16. type: toggle
  17.  
  18. binary sensor:
  19.  
  20. platform: mqtt
  21. state_topic: "tele/RF_Bridge/RESULT"
  22. name: Office Button A
  23. value_template: '{{value_json.RfReceived.Data}}'
  24. payload_on: '00A0B4'
  25. payload_off: '00A0B4off'
  26. device_class: power
  27. #optimistic: false
  28. qos: 1
  29. #retain: false
  30. off_delay: 1
  31.  
  32. switch:
  33.  
  34. platform: mqtt
  35. name: "button_office_lamp_1"
  36. command_topic: "cmnd/RF_Bridge/power"
  37. state_topic: "tele/RF_Bridge/POWER"
  38. qos: 1
  39. payload_on: "ON"
  40. payload_off: "OFF"
  41. retain: true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement