initial commit
This commit is contained in:
84
configuration/mqtt/mqtt.yaml
Normal file
84
configuration/mqtt/mqtt.yaml
Normal file
@ -0,0 +1,84 @@
|
||||
---
|
||||
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: ''
|
||||
# unique_id:
|
||||
# device:
|
||||
# state_topic: 'rtl433-01/RTL_433_ESP_OOK/RTL_433toMQTT/Acurite-Atlas/A/409'
|
||||
# json_attributes_topic
|
||||
# suggested_display_precision: 1
|
||||
# unit_of_measurement: "°C"
|
||||
# value_template: "{{ value_json.temperature }}"
|
||||
# availability:
|
||||
# - topic: "home/sensor1/status"
|
||||
# payload_available: "online"
|
||||
# payload_not_available: "offline"
|
||||
#
|
||||
#{"model":"Acurite-Atlas","id":409,"channel":"A","sequence_num":0,"battery_ok":1,"message_type":39,"wind_avg_km_h":0,"uv":1,"lux":12710,"strike_count":14,"strike_distance":0,"exception":0,"raw_msg":"c199e70081097703c005","protocol":"Acurite 592TXR Temp/Humidity, 592TX Temp, 5n1 Weather Station, 6045 Lightning, 899 Rain, 3N1, Atlas","rssi":-79,"duration":151996}
|
||||
|
||||
# - 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 %}
|
209
configuration/mqtt/mqtt.yaml.bak
Normal file
209
configuration/mqtt/mqtt.yaml.bak
Normal file
@ -0,0 +1,209 @@
|
||||
---
|
||||
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 %}
|
Reference in New Issue
Block a user