From c3136853f8dc9736e327f71d738f79d2b43f5ce0 Mon Sep 17 00:00:00 2001 From: Jeffrey Stone Date: Tue, 17 Mar 2020 22:48:41 -0400 Subject: [PATCH] Added covid19 sensors to tweet stats...I like data and cannot lie --- config/sensors/house.yaml | 58 +++++++++++++++++++++++++++++++++++++-- 1 file changed, 55 insertions(+), 3 deletions(-) diff --git a/config/sensors/house.yaml b/config/sensors/house.yaml index ecce47a..7b74083 100755 --- a/config/sensors/house.yaml +++ b/config/sensors/house.yaml @@ -1,6 +1,24 @@ - platform: mqtt name: "Washer Status" state_topic: "house/washer/status" +- platform: mqtt + name: "COVID19 Confirmed" + state_topic: "covid/sensor/confirmed" +- platform: mqtt + name: "COVID19 Recovered" + state_topic: "covid/sensor/recovered" +- platform: mqtt + name: "COVID19 Dead" + state_topic: "covid/sensor/dead" +- platform: mqtt + name: "COVID Old Confirmed" + state_topic: "covid/sensor/old-confirmed" +- platform: mqtt + name: "COVID Old Dead" + state_topic: "covid/sensor/old-dead" +- platform: mqtt + name: "COVID Old Recovered" + state_topic: "covid/sensor/old-recovered" - platform: history_stats name: Jeff Driving Time entity_id: sensor.jeff_driving @@ -135,6 +153,41 @@ - battery_level - captured_today - signal_strength +- platform: statistics + name: covid confirmed + entity_id: sensor.us_coronavirus_confirmed + max_age: + hours: 24 +- platform: statistics + name: covid current + entity_id: sensor.us_coronavirus_current + max_age: + hours: 24 +- platform: statistics + name: covid deaths + entity_id: sensor.us_coronavirus_deaths + max_age: + hours: 24 +- platform: statistics + name: covid recovered + entity_id: sensor.us_coronavirus_recovered + max_age: + hours: 24 +- platform: statistics + name: covid19 confirmed stats + entity_id: sensor.covid19_confirmed + max_age: + hours: 24 +- platform: statistics + name: covid19 deaths stats + entity_id: sensor.covid19_dead + max_age: + hours: 24 +- platform: statistics + name: covid19 recovered stats + entity_id: sensor.covid19_recovered + max_age: + hours: 24 - platform: template sensors: sensor_count: @@ -174,8 +227,7 @@ {{ states.camera | list | count }} hvac_action: friendly_name: 'HVAC Action' - entity_id: [] - value_template: >- - {{states.climate.home.attributes.hvac_action}} + value_template: "{{states.climate.home.attributes.hvac_action}}" +