JLindvig

MQTT result

Oct 20th, 2020
788
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. windows_doors:
  2.   group:
  3.     open_close_sensors:
  4.       name: "Vinduer og døre med åbn/luk sensor"
  5.       icon: mdi:window-closed-variant
  6.       all: true
  7.       entities:
  8.        - binary_sensor.dobbelt_terrassesdor
  9.         - binary_sensor.sovevarelse_vindue
  10.         - binary_sensor.pigernes_stue_vindue
  11.         - binary_sensor.nathalies_vindue
  12.         - binary_sensor.cornelies_vindue
  13.  
  14.   binary_sensor:
  15.     - platform: mqtt
  16.       name: "Havelåge"
  17.       unique_id: cd71f96a0d0e412bba41e91e3866ee07
  18.       device_class: door
  19.       state_topic: "tele/tasmota/RESULT"
  20.       value_template: "{{ value_json.RfReceived.Data }}"
  21.       payload_on: "3C003A"
  22.       off_delay: 15
  23.  
  24.     - platform: mqtt
  25.       name: "Hoveddør"
  26.       unique_id: f1fe358686d14a9f916ffaf77d7d2fde
  27.       device_class: door
  28.       state_topic: "tele/tasmota/RESULT"
  29.       value_template: "{{ value_json.RfReceived.Data }}"
  30.       payload_on: "C0E3DA"
  31.       off_delay: 15
  32.  
  33.     - platform: mqtt
  34.       name: "Dobbelt terrassesdør"
  35.       unique_id: 4b03ffb918314900b4b59eed108c1960
  36.       device_class: door
  37.       state_topic: "tele/tasmota/RESULT"
  38.       value_template: "{{ value_json.RfReceived.Data }}"
  39.       payload_on: "45400A"
  40.       payload_off: "45400E"
  41.  
  42.     - platform: mqtt
  43.       name: "PRIVATE Soveværelse vindue"
  44.       unique_id: private_48d246efd72c4485afca819baa59051b
  45.       device_class: window
  46.       state_topic: "tele/tasmota/RESULT"
  47.       value_template: "{{ value_json.RfReceived.Data }}"
  48.       payload_on: "B1C40A"
  49.       payload_off: "B1C40E"
  50.  
  51.     - platform: mqtt
  52.       name: "PRIVATE Pigernes stue vindue"
  53.       unique_id: private_7e3185c4aef2445a981583b736273364
  54.       device_class: window
  55.       state_topic: "tele/tasmota/RESULT"
  56.       value_template: "{{ value_json.RfReceived.Data }}"
  57.       payload_on: "AFF70A"
  58.       payload_off: "AFF70E"
  59.  
  60.     - platform: mqtt
  61.       name: "PRIVATE Nathalies vindue"
  62.       unique_id: private_3ff715ed48204fce967b67fdc70fa692
  63.       device_class: window
  64.       state_topic: "tele/tasmota/RESULT"
  65.       value_template: "{{ value_json.RfReceived.Data }}"
  66.       payload_on: "B2B10A"
  67.       payload_off: "B2B10E"
  68.  
  69.     - platform: mqtt
  70.       name: "PRIVATE Cornelies vindue"
  71.       unique_id: private_2a3dec1038084981b6f786b54a28c17b
  72.       device_class: window
  73.       state_topic: "tele/tasmota/RESULT"
  74.       value_template: "{{ value_json.RfReceived.Data }}"
  75.       payload_on: "181F0A"
  76.       payload_off: "181F0E"
  77.  
  78.     - platform: template
  79.       sensors:
  80.         sovevarelse_vindue:
  81.           friendly_name: "Soveværelse vindue"
  82.           unique_id: 48d246efd72c4485afca819baa59051b
  83.           device_class: window
  84.           value_template: "{{ states('binary_sensor.private_sovevarelse_vindue') }}"
  85.           icon_template: "mdi:window-{{ 'open' if is_state('binary_sensor.private_sovevarelse_vindue', 'on') else 'closed' }}-variant"
  86.  
  87.         pigernes_stue_vindue:
  88.           friendly_name: "Pigernes stue vindue"
  89.           unique_id: 7e3185c4aef2445a981583b736273364
  90.           device_class: window
  91.           value_template: "{{ states('binary_sensor.private_pigernes_stue_vindue') }}"
  92.           icon_template: "mdi:window-{{ 'open' if is_state('binary_sensor.private_pigernes_stue_vindue', 'on') else 'closed' }}-variant"
  93.  
  94.         nathalies_vindue:
  95.           friendly_name: "Nathalies vindue"
  96.           unique_id: 3ff715ed48204fce967b67fdc70fa692
  97.           device_class: window
  98.           value_template: "{{ states('binary_sensor.private_nathalies_vindue') }}"
  99.           icon_template: "mdi:window-{{ 'open' if is_state('binary_sensor.private_nathalies_vindue', 'on') else 'closed' }}-variant"
  100.  
  101.         cornelies_vindue:
  102.           friendly_name: "Cornelies vindue"
  103.           unique_id: 2a3dec1038084981b6f786b54a28c17b
  104.           device_class: window
  105.           value_template: "{{ states('binary_sensor.private_cornelies_vindue') }}"
  106.           icon_template: "mdi:window-{{ 'open' if is_state('binary_sensor.private_cornelies_vindue', 'on') else 'closed' }}-variant"
RAW Paste Data