Guest User

Untitled

a guest
Dec 15th, 2020
691
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.02 KB | None | 0 0
  1. # Gruppenadressen:
  2. #
  3. # Antrieb fahren: 6/5/0
  4. # Tor Position: 6/5/2
  5. # Invertierte Tor Position: 6/5/6 (Erzeugt durch HomeAssistant)
  6.  
  7.  
  8. # configuration.yml
  9.  
  10. sensor:
  11.     - platform: template
  12.       sensors:
  13.         garagentor_position_invertiert: # Erzeuge Invertierte Gargentor Position
  14.           friendly_name: Garagentor Position Invertiert
  15.           unit_of_measurement: '%'
  16.           value_template: >-
  17.             {{ ( 100 - (states('sensor.garagentor_position') | int))  }}
  18.  
  19. knx:
  20.     expose:
  21.     - type: 'percent' # Invertierte Gargentor Position an Bus
  22.       entity_id: 'sensor.garagentor_position_invertiert'
  23.       default: 100
  24.       address: '6/5/6'
  25.  
  26.  
  27. homeassistant:
  28.   customize:
  29.     cover.garagentor: # Macht aus dem Cover ein HomeKit Garagentor
  30.       device_class: garage
  31.  
  32. # knx_sensors.yml
  33.  
  34. - type: percent
  35.   name: Garagentor Position
  36.   state_address: '6/5/2' # Originale Gargentor Position
  37.  
  38. # knx_covers.yml
  39.  
  40. - name: Garagentor
  41.   move_long_address: '6/5/0'
  42.   position_state_address: '6/5/6' # Nutze Invertierte Gargentor Position
Advertisement
Add Comment
Please, Sign In to add comment