Last active
October 27, 2023 09:38
-
-
Save Jodaille/4ca25495303b2340e86f79ee952784ca to your computer and use it in GitHub Desktop.
Home Assistant mqtt sensors config Tasmota, rtl-433, Zigbee ZbBridge door sensor (/home/homeassistant/.homeassistant/configuration.yaml)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Configure a default setup of Home Assistant (frontend, api, etc) | |
default_config: | |
# Text to speech | |
tts: | |
- platform: google_translate | |
group: !include groups.yaml | |
automation: !include automations.yaml | |
script: !include scripts.yaml | |
scene: !include scenes.yaml | |
mqtt: | |
broker: 192.168.1.230 | |
sensor: | |
- platform: mqtt | |
name: "Tasmota dewpoint" | |
state_topic: "tele/tasmota_C26D46/SENSOR" | |
unit_of_measurement: '°C' | |
value_template: "{{ value_json.BME280.DewPoint }}" | |
- platform: mqtt | |
name: "Tasmota temperature" | |
state_topic: "tele/tasmota_C26D46/SENSOR" | |
unit_of_measurement: '°C' | |
value_template: "{{ value_json.BME280.Temperature }}" | |
- platform: mqtt | |
name: "Tasmota humidity" | |
state_topic: "tele/tasmota_C26D46/SENSOR" | |
unit_of_measurement: '%' | |
value_template: "{{ value_json.BME280.Humidity }}" | |
- platform: mqtt | |
name: "Inflator Temperature" | |
state_topic: "tele/inflator/SENSOR" | |
unit_of_measurement: '°C' | |
value_template: "{{ value_json.BME280.Temperature }}" | |
- platform: mqtt | |
name: "Inflator Humidté" | |
state_topic: "tele/inflator/SENSOR" | |
unit_of_measurement: '%' | |
value_template: "{{ value_json.BME280.Humidity }}" | |
- platform: mqtt | |
name: "Cheminee Temperature" | |
state_topic: "tele/cheminee/SENSOR" | |
unit_of_measurement: '°C' | |
value_template: "{{ value_json.BME280.Temperature }}" | |
- platform: mqtt | |
name: "Cheminee humidity" | |
state_topic: "tele/cheminee/SENSOR" | |
unit_of_measurement: '%' | |
value_template: "{{ value_json.BME280.Humidity }}" | |
- platform: mqtt | |
name: "Pression atmosphérique" | |
state_topic: "tele/cheminee/SENSOR" | |
unit_of_measurement: 'hPa' | |
value_template: "{{ value_json.BME280.Pressure }}" | |
- platform: mqtt | |
name: "Station meteo Humidity" | |
state_topic: "sensors/rtl_433" | |
unit_of_measurement: '%' | |
value_template: "{{ value_json.humidity }}" | |
- platform: mqtt | |
name: "Station meteo Temperature" | |
state_topic: "sensors/rtl_433" | |
unit_of_measurement: '°C' | |
value_template: "{{ value_json.temperature_C }}" | |
- platform: mqtt | |
name: "Frigo temperature" | |
state_topic: "tele/tasmota_1A0914/SENSOR" | |
unit_of_measurement: '°C' | |
value_template: "{{ value_json['DS18B20-2'].Temperature }}" | |
device_class: temperature | |
- platform: mqtt | |
name: "Escalier temperature" | |
state_topic: "tele/tasmota_1A0914/SENSOR" | |
unit_of_measurement: '°C' | |
value_template: "{{ value_json['DS18B20-1'].Temperature }}" | |
device_class: temperature | |
switch: | |
- platform: mqtt | |
name: "Cheminee Switch" | |
state_topic: "stat/cheminee/RESULT" | |
command_topic: "cmnd/cheminee/POWER" | |
value_template: "{{ value_json.POWER }}" | |
payload_on: "ON" | |
payload_off: "OFF" | |
availability_topic: "tele/cheminee/LWT" | |
payload_available: "Online" | |
payload_not_available: "Offline" | |
qos: 1 | |
- platform: mqtt | |
name: "Inflator Switch" | |
state_topic: "stat/inflator/RESULT" | |
value_template: "{{ value_json.POWER }}" | |
command_topic: "cmnd/inflator/POWER" | |
payload_on: "ON" | |
payload_off: "OFF" | |
availability_topic: "tele/inflator/LWT" | |
payload_available: "Online" | |
payload_not_available: "Offline" | |
qos: 1 | |
binary_sensor: | |
- platform: mqtt | |
name: Door sensor | |
state_topic: "tele/tasmota_9D5DAA/SENSOR" | |
value_template: "{{ value_json['ZbReceived']['DoorSensor']['ZoneStatusChange'] }}" | |
payload_on: 1 | |
payload_off: 0 | |
availability_topic: "tele/tasmota_9D5DAA/LWT" | |
payload_available: "Online" | |
payload_not_available: "Offline" | |
qos: 0 | |
device_class: "door" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment