From 6b724ca1be1798821397d976039b37217c9b2135 Mon Sep 17 00:00:00 2001 From: Stefan Ostermann Date: Sat, 10 Apr 2021 23:05:01 +0100 Subject: [PATCH] New sensor --- .gitignore | 4 ++++ homeassistant/configuration.yaml | 25 ++++++++++++++++++++++++- 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 59514cc..12bd8b8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,7 @@ .bash* .profile .vim* +.storage* +.log +.db + diff --git a/homeassistant/configuration.yaml b/homeassistant/configuration.yaml index 9158aac..f0f608c 100644 --- a/homeassistant/configuration.yaml +++ b/homeassistant/configuration.yaml @@ -45,7 +45,30 @@ sensor 2: name: 'Humidity' unit_of_measurement: '%' value_template: '{{ value_json.humidity }}' - + +sensor 3: + platform: mqtt + state_topic: 'living/sensor2' + name: 'Temperature 2' + unit_of_measurement: '°C' + value_template: '{{ value_json.temperature }}' + +sensor 4: + platform: mqtt + state_topic: 'living/sensor2' + name: 'Humidity 2' + unit_of_measurement: '%' + value_template: '{{ value_json.humidity }}' + +sensor 5: + platform: mqtt + state_topic: 'living/sensor2' + name: 'Humidity 3' + unit_of_measurement: '%' + value_template: '{{ value_json.soilhumidity }}' + + + switch 1: - platform: mqtt command_topic: living/plug