210 lines
6.2 KiB
YAML
210 lines
6.2 KiB
YAML
---
|
|
fan:
|
|
- name: "Master Bathroom"
|
|
unique_id: '5CCF7FE737F8'
|
|
state_topic: "tasmota/fan01/stat/RESULT"
|
|
state_value_template: "{{ value_json.POWER }}"
|
|
command_topic: "tasmota/fan01/cmnd/POWER"
|
|
availability_topic: "tasmota/fan01/tele/LWT"
|
|
payload_on: "ON"
|
|
payload_off: "OFF"
|
|
payload_available: "Online"
|
|
payload_not_available: "Offline"
|
|
qos: 1
|
|
retain: true
|
|
|
|
- name: "Master Bedroom Bathroom"
|
|
unique_id: '840D8E6817FC'
|
|
state_topic: "tasmota/fan02/stat/RESULT"
|
|
state_value_template: "{{ value_json.POWER }}"
|
|
command_topic: "tasmota/fan02/cmnd/POWER"
|
|
availability_topic: "tasmota/fan02/tele/LWT"
|
|
payload_on: "ON"
|
|
payload_off: "OFF"
|
|
payload_available: "Online"
|
|
payload_not_available: "Offline"
|
|
qos: 1
|
|
retain: true
|
|
|
|
- name: "Bedroom Max"
|
|
unique_id: 'DC4F22AA30AF'
|
|
command_topic: "tasmota/fan03/cmnd/FanSpeed"
|
|
state_topic: "tasmota/fan03/stat/RESULT"
|
|
state_value_template: >
|
|
{% if value_json.FanSpeed is defined %}
|
|
{% if value_json.FanSpeed | int == 0 -%}off{%- elif value_json.FanSpeed | int > 0 -%}on{%- endif %}
|
|
{% else %}
|
|
{% if states.fan.bedroom_olivia.state == 'off' -%}off{%- elif states.fan.bedroom_olivia.state == 'on' -%}on{%- endif %}
|
|
{% endif %}
|
|
availability_topic: 'tasmota/fan03/tele/LWT'
|
|
payload_off: "off"
|
|
payload_on: "on"
|
|
payload_available: "Online"
|
|
payload_not_available: "Offline"
|
|
preset_modes:
|
|
- 'off'
|
|
- 'low'
|
|
- 'medium'
|
|
- 'high'
|
|
preset_mode_command_topic: "tasmota/fan03/cmnd/FanSpeed"
|
|
preset_mode_command_template: >
|
|
{% if value == 'low' %}
|
|
1
|
|
{% elif value == 'medium' %}
|
|
2
|
|
{% elif value == 'high' %}
|
|
3
|
|
{% else %}
|
|
0
|
|
{% endif %}
|
|
preset_mode_state_topic: "tasmota/fan03/stat/RESULT"
|
|
preset_mode_value_template: >
|
|
{% if value_json.FanSpeed | int == 1 %}
|
|
low
|
|
{% elif value_json.FanSpeed | int == 2 %}
|
|
medium
|
|
{% elif value_json.FanSpeed | int == 3 %}
|
|
high
|
|
{% else %}
|
|
off
|
|
{% endif %}
|
|
|
|
- name: "Bedroom Olivia"
|
|
unique_id: 'DC4F22AA30E5'
|
|
command_topic: "tasmota/fan04/cmnd/FanSpeed"
|
|
state_topic: "tasmota/fan04/stat/RESULT"
|
|
state_value_template: >
|
|
{% if value_json.FanSpeed is defined %}
|
|
{% if value_json.FanSpeed == 0 -%}off{%- elif value_json.FanSpeed > 0 -%}on{%- endif %}
|
|
{% else %}
|
|
{% if states.fan.bedroom_guest.state == 'off' -%}off{%- elif states.fan.bedroom_guest.state == 'on' -%}on{%- endif %}
|
|
{% endif %}
|
|
availability_topic: 'tasmota/fan04/tele/LWT'
|
|
payload_off: "off"
|
|
payload_on: "on"
|
|
payload_available: "Online"
|
|
payload_not_available: "Offline"
|
|
preset_modes:
|
|
- 'off'
|
|
- 'low'
|
|
- 'medium'
|
|
- 'high'
|
|
preset_mode_command_topic: "tasmota/fan04/cmnd/FanSpeed"
|
|
preset_mode_command_template: >
|
|
{% if value == 'low' %}
|
|
1
|
|
{% elif value == 'medium' %}
|
|
2
|
|
{% elif value == 'high' %}
|
|
3
|
|
{% else %}
|
|
0
|
|
{% endif %}
|
|
preset_mode_state_topic: "tasmota/fan04/stat/RESULT"
|
|
preset_mode_value_template: >
|
|
{% if value_json.FanSpeed == 1 %}
|
|
low
|
|
{% elif value_json.FanSpeed == 2 %}
|
|
medium
|
|
{% elif value_json.FanSpeed == 3 %}
|
|
high
|
|
{% else %}
|
|
off
|
|
{% endif %}
|
|
|
|
- name: "Living Room Bathroom"
|
|
unique_id: '840D8E68117C'
|
|
state_topic: "tasmota/fan05/stat/RESULT"
|
|
state_value_template: "{{ value_json.POWER }}"
|
|
command_topic: "tasmota/fan05/cmnd/POWER"
|
|
availability_topic: "tasmota/fan05/tele/LWT"
|
|
payload_on: "ON"
|
|
payload_off: "OFF"
|
|
payload_available: "Online"
|
|
payload_not_available: "Offline"
|
|
qos: 1
|
|
retain: true
|
|
|
|
light:
|
|
- name: "Kitchen Decorating 01"
|
|
unique_id: '600194CE2BFC'
|
|
state_topic: "tasmota/light01/stat/RESULT"
|
|
state_value_template: "{{ value_json.POWER }}"
|
|
command_topic: "tasmota/light01/cmnd/POWER"
|
|
availability_topic: "tasmota/light01/tele/LWT"
|
|
payload_on: "ON"
|
|
payload_off: "OFF"
|
|
payload_available: "Online"
|
|
payload_not_available: "Offline"
|
|
retain: true
|
|
qos: 1
|
|
|
|
cover:
|
|
- name: "Garage Gate"
|
|
unique_id: 'BCM64CEV0WEC'
|
|
command_topic: "garadget/garagegate01/command"
|
|
state_topic: "garadget/garagegate01/status"
|
|
# config_topic: "garadget/garagegate01/config"
|
|
|
|
payload_open: open
|
|
payload_close: close
|
|
payload_stop: stop
|
|
state_open: open
|
|
state_closed: closed
|
|
|
|
qos: 0
|
|
retain: true
|
|
value_template: '{{value_json.status}}'
|
|
# config_value_template: '{{value_json}}'
|
|
|
|
sensor:
|
|
- name: 'Z2M #01 (state)'
|
|
unique_id: 'S832ONECB1QZ'
|
|
state_topic: "zigbee01/bridge/state"
|
|
icon: mdi:router-wireless
|
|
|
|
- name: 'Z2M #02 (state)'
|
|
unique_id: 'IFN4329MYSD3'
|
|
state_topic: "zigbee02/bridge/state"
|
|
icon: mdi:router-wireless
|
|
|
|
# - name: "Outdoor Temp"
|
|
# state_topic: "rtl433/ESP32-RTL-433-01/RTL_433toMQTT/Acurite-Atlas/A/409"
|
|
# unit_of_measurement: '°C'
|
|
# value_template: >
|
|
# {% if value_json is defined and value_json.message_type == 37 %}
|
|
# {{ value_json.temperature_C }}
|
|
# {% else %}
|
|
# {{ states('sensor.outdoor_temp') }}
|
|
# {% endif %}
|
|
#
|
|
# - name: "Outdoor Humidity"
|
|
# state_topic: "rtl433/ESP32-RTL-433-01/RTL_433toMQTT/Acurite-Atlas/A/409"
|
|
# unit_of_measurement: '%'
|
|
# value_template: >
|
|
# {% if value_json is defined and value_json.message_type == 37 %}
|
|
# {{ value_json.humidity }}
|
|
# {% else %}
|
|
# {{ states('sensor.outdoor_humidity') }}
|
|
# {% endif %}
|
|
#
|
|
# - name: "Outdoor UV"
|
|
# state_topic: "rtl433/ESP32-RTL-433-01/RTL_433toMQTT/Acurite-Atlas/A/409"
|
|
# unit_of_measurement: 'UV'
|
|
# value_template: >
|
|
# {% if value_json is defined and value_json.message_type == 39 %}
|
|
# {{ value_json.uv }}
|
|
# {% else %}
|
|
# {{ states('sensor.outdoor_uv') }}
|
|
# {% endif %}
|
|
#
|
|
# - name: "Outdoor LUX"
|
|
# state_topic: "rtl433/ESP32-RTL-433-01/RTL_433toMQTT/Acurite-Atlas/A/409"
|
|
# unit_of_measurement: 'lx'
|
|
# value_template: >
|
|
# {% if value_json is defined and value_json.message_type == 39 %}
|
|
# {{ value_json.lux }}
|
|
# {% else %}
|
|
# {{ states('sensor.outdoor_lux') }}
|
|
# {% endif %}
|