Change hygrometer to statestream mqtt sensors

This commit is contained in:
Florian Brinker 2019-10-29 19:54:18 +01:00
parent b9f459b0dd
commit e641a8b30a
4 changed files with 65 additions and 9 deletions

View File

@ -42,3 +42,15 @@ cards:
- entity: switch.wallboard_display
name: Display
icon: mdi:tablet
- type: entities
title: Home Assistant Slaves
show_header_toggle: false
entities:
- type: weblink
name: Livingroom
url: !secret url_haslave_livingroom
icon: mdi:home-assistant
- type: weblink
name: Office
url: !secret url_haslave_office
icon: mdi:home-assistant

View File

@ -8,14 +8,14 @@ cards:
- type: horizontal-stack
cards:
- type: sensor
entity: sensor.parents_bathroom_hygrometer_humidity
entity: sensor.hygro_bathroom_parents_humidity
name: Luftfeuchtigkeit
graph: line
unit: "%"
detail: 2
hours_to_show: 12
- type: sensor
entity: sensor.parents_bathroom_hygrometer_temperature
entity: sensor.hygro_bathroom_parents_temperature
name: Temperatur
graph: line
unit: °C
@ -26,14 +26,14 @@ cards:
- type: horizontal-stack
cards:
- type: sensor
entity: sensor.kids_bathroom_hygrometer_humidity
entity: sensor.hygro_bathroom_kids_humidity
name: Luftfeuchtigkeit
graph: line
unit: "%"
detail: 2
hours_to_show: 12
- type: sensor
entity: sensor.kids_bathroom_hygrometer_temperature
entity: sensor.hygro_bathroom_kids_temperature
name: Temperatur
graph: line
unit: °C
@ -100,14 +100,14 @@ cards:
- type: horizontal-stack
cards:
- type: sensor
entity: sensor.hwr_hygrometer_humidity
entity: sensor.hygro_hwr_humidity
name: Luftfeuchtigkeit
graph: line
unit: "%"
detail: 2
hours_to_show: 12
- type: sensor
entity: sensor.hwr_hygrometer_temperature
entity: sensor.hygro_hwr_temperature
name: Temperatur
graph: line
unit: °C

View File

@ -1,6 +1,18 @@
title: Übersicht
path: overview
cards:
- type: conditional
conditions:
- entity: binary_sensor.openclose_10
state: "on"
card:
type: entities
title: Offene Fenster
show_header_toggle: false
entities:
- entity: binary_sensor.openclose_10
name: Elternbad
icon: mdi:window-open
- type: vertical-stack
cards:
- type: custom:weather-card
@ -36,4 +48,4 @@ cards:
aspect_ratio: 75%
default_zoom: 15
entities:
- zone.home
- zone.home

View File

@ -1,12 +1,44 @@
- platform: mqtt
name: hygro_bathroom_parents_temperature
state_topic: "homeassistant-slaves-states/office/sensor/parents_bathroom_hygrometer_temperature/state"
force_update: true
unit_of_measurement: "°C"
- platform: mqtt
name: hygro_bathroom_parents_humidity
state_topic: "homeassistant-slaves-states/office/sensor/parents_bathroom_hygrometer_humidity/state"
force_update: true
unit_of_measurement: "%"
- platform: mqtt
name: hygro_bathroom_kids_temperature
state_topic: "homeassistant-slaves-states/office/sensor/kids_bathroom_hygrometer_temperature/state"
force_update: true
unit_of_measurement: "°C"
- platform: mqtt
name: hygro_bathroom_kids_humidity
state_topic: "homeassistant-slaves-states/office/sensor/kids_bathroom_hygrometer_humidity/state"
force_update: true
unit_of_measurement: "%"
- platform: mqtt
name: hygro_hwr_temperature
state_topic: "homeassistant-slaves-states/livingroom/sensor/hwr_hygrometer_temperature/state"
force_update: true
unit_of_measurement: "°C"
- platform: mqtt
name: hygro_hwr_humidity
state_topic: "homeassistant-slaves-states/livingroom/sensor/hwr_hygrometer_humidity/state"
force_update: true
unit_of_measurement: "%"
- platform: mqtt
name: "mobile_fb_battery"
state_topic: "homeassistant/sensor/android_mobile_fb_battery/state"
unit_of_measurement: '%'
value_template: "{{ value_json.level }}"
json_attributes_topic: "homeassistant/sensor/android_mobile_fb_battery/state"
- platform: mqtt
name: "mobile_fb_callstate"
state_topic: "homeassistant/sensor/android_mobile_fb_callstate/state"
value_template: "{{ value_json.state }}"
json_attributes_topic: "homeassistant/sensor/android_mobile_fb_callstate/state"
json_attributes_topic: "homeassistant/sensor/android_mobile_fb_callstate/state"