Advertisement
giacomocarrozzo

Conf Home assistant

May 25th, 2018
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.85 KB | None | 0 0
  1. switch:
  2.   - platform: mqtt
  3.     name: "Tapparella Giorno Giu"
  4.     state_topic: "stat/sonoffDay/POWER1"
  5.     command_topic: "cmnd/sonoffDay/POWER1"
  6.     qos: 1
  7.     payload_on: "ON"
  8.     payload_off: "OFF"
  9.     retain: true
  10.  
  11.   - platform: mqtt
  12.     name: "Tapparella Giorno Su"
  13.     state_topic: "stat/sonoffDay/POWER2"
  14.     command_topic: "cmnd/sonoffDay/POWER2"
  15.     qos: 1
  16.     payload_on: "ON"
  17.     payload_off: "OFF"
  18.     retain: true
  19.  
  20. cover:
  21.   - platform: template
  22.     covers:
  23.       tapparella_giorno:
  24.         friendly_name: "Tapparella Giorno"
  25.         value_template: "{{ states.binary_sensor.door_window_sensor_158d0001a6609e.state == 'on' }}"
  26.         open_cover:
  27.           service: script.alzatapparella_giorno
  28.         close_cover:
  29.           service: script.abbassatapparella_giorno
  30.         stop_cover:
  31.           service: script.stoptapparella_giorno
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement