From 7e27d4b7816d137c4d1fdff343ad2da6b06aef00 Mon Sep 17 00:00:00 2001 From: Jeffrey Stone Date: Wed, 23 Sep 2020 12:52:23 -0400 Subject: [PATCH] Removing entity_id for template sensors...not needed as of .115 --- config/sensors/house.yaml | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/config/sensors/house.yaml b/config/sensors/house.yaml index 68313b3..1459121 100755 --- a/config/sensors/house.yaml +++ b/config/sensors/house.yaml @@ -151,55 +151,48 @@ sensors: sensor_count: friendly_name: 'Number of Sensors' - entity_id: [] value_template: >- {{ states.sensor | list | count }} automation_count: friendly_name: 'Number of Automations' - entity_id: [] value_template: >- {{ states.automation| list | count }} script_count: friendly_name: 'Number of Scripts' - entity_id: [] value_template: >- {{ states.script | list | count }} binary_sensor_count: friendly_name: 'Number of Binary Sensors' - entity_id: [] value_template: >- {{ states.binary_sensor | list | count }} tracker_count: friendly_name: 'Number of Devices' - entity_id: [] value_template: >- {{ states.device_tracker| list | count }} lights_count: friendly_name: 'Number of Lights' - entity_id: [] value_template: >- {{ states.light | list | count }} + switches_count: + friendly_name: 'Number of Switches' + value_template: >- + {{ states.switch | list | count }} camera_count: friendly_name: 'Number of online Cameras' - entity_id: [] value_template: >- {{ states.camera | list | count }} entities_count: friendly_name: 'Number of Entities' - entity_id: [] value_template: >- {{ states | length }} hvac_action: friendly_name: 'HVAC Action' - entity_id: [] value_template: "{{states.climate.home.attributes.hvac_action}}" today_is: friendly_name: 'Today is' - entity_id: [] value_template: "{{ ['Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday'][now().weekday()] }}" holiday: friendly_name: 'Holiday' - entity_id: [] value_template: >- {% if states.calendar.holidays_in_united_states.state == 'on' %} {{ states.calendar.holidays_in_united_states.attributes.message }} @@ -210,7 +203,6 @@ {% endif %} school_tomorrow: friendly_name: 'School Tomorrow' - entity_id: [] value_template: >- {%- set test=(as_timestamp(now())+ (86400)) | timestamp_custom("%Y-%m-%d",true) %} {% if states.calendar.skylar_school.attributes.start_time == test + " 07:35:00" %}