This should fix #103 and get rid of those entity_ids in templates
This commit is contained in:
parent
1bf56692ca
commit
173acb932f
|
@ -30,11 +30,6 @@ sensor:
|
||||||
sensors:
|
sensors:
|
||||||
mail_deliveries_message:
|
mail_deliveries_message:
|
||||||
friendly_name: "Deliveries Summary"
|
friendly_name: "Deliveries Summary"
|
||||||
entity_id:
|
|
||||||
- sensor.mail_usps_mail
|
|
||||||
- sensor.mail_usps_delivering
|
|
||||||
- sensor.mail_fedex_delivering_2
|
|
||||||
- sensor.mail_ups_delivering
|
|
||||||
value_template: >
|
value_template: >
|
||||||
{# Deliveries Sentence #}
|
{# Deliveries Sentence #}
|
||||||
{% macro deliveries_sentence() -%}
|
{% macro deliveries_sentence() -%}
|
||||||
|
|
|
@ -88,7 +88,6 @@ sensor:
|
||||||
sensors:
|
sensors:
|
||||||
flood_watch:
|
flood_watch:
|
||||||
friendly_name: 'Flood Watch'
|
friendly_name: 'Flood Watch'
|
||||||
entity_id: sensor.time
|
|
||||||
value_template: >-
|
value_template: >-
|
||||||
{% if states.sensor.nws_alerts.state | int > 0 %}
|
{% if states.sensor.nws_alerts.state | int > 0 %}
|
||||||
{% if 'Flood Watch' in states.sensor.nws_alerts.attributes.title.split(' - ')[0] or
|
{% if 'Flood Watch' in states.sensor.nws_alerts.attributes.title.split(' - ')[0] or
|
||||||
|
@ -106,7 +105,6 @@ sensor:
|
||||||
|
|
||||||
flood_warning:
|
flood_warning:
|
||||||
friendly_name: 'Flood Warning'
|
friendly_name: 'Flood Warning'
|
||||||
entity_id: sensor.time
|
|
||||||
value_template: >-
|
value_template: >-
|
||||||
{% if states.sensor.nws_alerts.state | int > 0 %}
|
{% if states.sensor.nws_alerts.state | int > 0 %}
|
||||||
{% if 'Flood Warning' in states.sensor.nws_alerts.attributes.title.split(' - ')[0] or
|
{% if 'Flood Warning' in states.sensor.nws_alerts.attributes.title.split(' - ')[0] or
|
||||||
|
@ -123,7 +121,6 @@ sensor:
|
||||||
{% endif %}
|
{% endif %}
|
||||||
tstorm_warning:
|
tstorm_warning:
|
||||||
friendly_name: 'Thunderstorm Warning'
|
friendly_name: 'Thunderstorm Warning'
|
||||||
entity_id: sensor.time
|
|
||||||
value_template: >-
|
value_template: >-
|
||||||
{% if states.sensor.nws_alerts.state | int > 0 %}
|
{% if states.sensor.nws_alerts.state | int > 0 %}
|
||||||
{% if 'Thunderstorm Warning' in states.sensor.nws_alerts.attributes.title.split(' - ')[0] or
|
{% if 'Thunderstorm Warning' in states.sensor.nws_alerts.attributes.title.split(' - ')[0] or
|
||||||
|
@ -140,7 +137,6 @@ sensor:
|
||||||
{% endif %}
|
{% endif %}
|
||||||
tstorm_watch:
|
tstorm_watch:
|
||||||
friendly_name: 'Thunderstorm Watch'
|
friendly_name: 'Thunderstorm Watch'
|
||||||
entity_id: sensor.time
|
|
||||||
value_template: >-
|
value_template: >-
|
||||||
{% if states.sensor.nws_alerts.state | int > 0 %}
|
{% if states.sensor.nws_alerts.state | int > 0 %}
|
||||||
{% if 'Thunderstorm Watch' in states.sensor.nws_alerts.attributes.title.split(' - ')[0] or
|
{% if 'Thunderstorm Watch' in states.sensor.nws_alerts.attributes.title.split(' - ')[0] or
|
||||||
|
@ -157,7 +153,6 @@ sensor:
|
||||||
{% endif %}
|
{% endif %}
|
||||||
tornado_watch:
|
tornado_watch:
|
||||||
friendly_name: 'Tornado Watch'
|
friendly_name: 'Tornado Watch'
|
||||||
entity_id: sensor.time
|
|
||||||
value_template: >-
|
value_template: >-
|
||||||
{% if states.sensor.nws_alerts.state | int > 0 %}
|
{% if states.sensor.nws_alerts.state | int > 0 %}
|
||||||
{% if 'Tornado Watch' in states.sensor.nws_alerts.attributes.title.split(' - ')[0] or
|
{% if 'Tornado Watch' in states.sensor.nws_alerts.attributes.title.split(' - ')[0] or
|
||||||
|
@ -174,7 +169,6 @@ sensor:
|
||||||
{% endif %}
|
{% endif %}
|
||||||
tornado_warning:
|
tornado_warning:
|
||||||
friendly_name: 'Tornado Warning'
|
friendly_name: 'Tornado Warning'
|
||||||
entity_id: sensor.time
|
|
||||||
value_template: >-
|
value_template: >-
|
||||||
{% if states.sensor.nws_alerts.state | int > 0 %}
|
{% if states.sensor.nws_alerts.state | int > 0 %}
|
||||||
{% if 'Tornado Warning' in states.sensor.nws_alerts.attributes.title.split(' - ')[0] or
|
{% if 'Tornado Warning' in states.sensor.nws_alerts.attributes.title.split(' - ')[0] or
|
||||||
|
@ -201,7 +195,6 @@ sensor:
|
||||||
clothing_forecast:
|
clothing_forecast:
|
||||||
friendly_name: "Clothing Forecast"
|
friendly_name: "Clothing Forecast"
|
||||||
unit_of_measurement: ''
|
unit_of_measurement: ''
|
||||||
entity_id: sensor.nws_daytime_temperature
|
|
||||||
value_template: >-
|
value_template: >-
|
||||||
{%- if states('sensor.nws_daytime_temperature')|float > 63 %}
|
{%- if states('sensor.nws_daytime_temperature')|float > 63 %}
|
||||||
{%- if states('sensor.nws_daytime_temperature')|float < 80 %}
|
{%- if states('sensor.nws_daytime_temperature')|float < 80 %}
|
||||||
|
@ -224,21 +217,17 @@ sensor:
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
nws_current_forecast:
|
nws_current_forecast:
|
||||||
friendly_name: 'Current Forecast'
|
friendly_name: 'Current Forecast'
|
||||||
entity_id: weather.klzu_daynight
|
|
||||||
value_template: "{{ states.weather.klzu_daynight.attributes.forecast[0].detailed_description | truncate(250, False) }}"
|
value_template: "{{ states.weather.klzu_daynight.attributes.forecast[0].detailed_description | truncate(250, False) }}"
|
||||||
nws_current_rain_forecast:
|
nws_current_rain_forecast:
|
||||||
friendly_name: 'Current Rain Chance'
|
friendly_name: 'Current Rain Chance'
|
||||||
entity_id: weather.klzu_daynight
|
|
||||||
value_template: "{{ states.weather.klzu_daynight.attributes.forecast[0].precipitation_probability }}"
|
value_template: "{{ states.weather.klzu_daynight.attributes.forecast[0].precipitation_probability }}"
|
||||||
unit_of_measurement: '%'
|
unit_of_measurement: '%'
|
||||||
nws_current_temperature:
|
nws_current_temperature:
|
||||||
friendly_name: 'Current Temperature'
|
friendly_name: 'Current Temperature'
|
||||||
entity_id: weather.klzu_daynight
|
|
||||||
value_template: "{{ states.weather.klzu_daynight.attributes.temperature }}"
|
value_template: "{{ states.weather.klzu_daynight.attributes.temperature }}"
|
||||||
device_class: temperature
|
device_class: temperature
|
||||||
nws_daytime_temperature:
|
nws_daytime_temperature:
|
||||||
friendly_name: 'Daytime Temperature'
|
friendly_name: 'Daytime Temperature'
|
||||||
entity_id: weather.klzu_daynight
|
|
||||||
value_template: >-
|
value_template: >-
|
||||||
{% if states.weather.klzu_daynight.attributes.forecast[0].daytime == True %}
|
{% if states.weather.klzu_daynight.attributes.forecast[0].daytime == True %}
|
||||||
{{ states.weather.klzu_daynight.attributes.forecast[0].temperature }}
|
{{ states.weather.klzu_daynight.attributes.forecast[0].temperature }}
|
||||||
|
@ -248,23 +237,18 @@ sensor:
|
||||||
device_class: temperature
|
device_class: temperature
|
||||||
nws_current_condition:
|
nws_current_condition:
|
||||||
friendly_name: 'Current Condition'
|
friendly_name: 'Current Condition'
|
||||||
entity_id: weather.klzu_daynight
|
|
||||||
value_template: "{{ states.weather.klzu_daynight.state }}"
|
value_template: "{{ states.weather.klzu_daynight.state }}"
|
||||||
nws_current_humidity:
|
nws_current_humidity:
|
||||||
friendly_name: 'Current Humidity'
|
friendly_name: 'Current Humidity'
|
||||||
entity_id: weather.klzu_daynight
|
|
||||||
value_template: "{{ states.weather.klzu_daynight.attributes.humidity }}"
|
value_template: "{{ states.weather.klzu_daynight.attributes.humidity }}"
|
||||||
nws_current_visibility:
|
nws_current_visibility:
|
||||||
friendly_name: "Current Visability"
|
friendly_name: "Current Visability"
|
||||||
entity_id: weather.klzu_daynight
|
|
||||||
value_template: "{{ states.weather.klzu_daynight.attributes.visibility }}"
|
value_template: "{{ states.weather.klzu_daynight.attributes.visibility }}"
|
||||||
nws_current_windspeed:
|
nws_current_windspeed:
|
||||||
friendly_name: "Current Windspeed"
|
friendly_name: "Current Windspeed"
|
||||||
entity_id: weather.klzu_daynight
|
|
||||||
value_template: "{{ states.weather.klzu_daynight.attributes.wind_speed }}"
|
value_template: "{{ states.weather.klzu_daynight.attributes.wind_speed }}"
|
||||||
nws_overnight_low:
|
nws_overnight_low:
|
||||||
friendly_name: "Overnight Low"
|
friendly_name: "Overnight Low"
|
||||||
entity_id: weather.klzu_daynight
|
|
||||||
unit_of_measurement: ''
|
unit_of_measurement: ''
|
||||||
value_template: >-
|
value_template: >-
|
||||||
{% if states.weather.klzu_daynight.attributes.forecast[0].daytime == False %}
|
{% if states.weather.klzu_daynight.attributes.forecast[0].daytime == False %}
|
||||||
|
@ -274,7 +258,6 @@ sensor:
|
||||||
{% endif %}
|
{% endif %}
|
||||||
nws_overnight_forecast:
|
nws_overnight_forecast:
|
||||||
friendly_name: "Overnight Forecast"
|
friendly_name: "Overnight Forecast"
|
||||||
entity_id: weather.klzu_daynight
|
|
||||||
unit_of_measurement: ''
|
unit_of_measurement: ''
|
||||||
value_template: >-
|
value_template: >-
|
||||||
{% if states.weather.klzu_daynight.attributes.forecast[0].daytime == False %}
|
{% if states.weather.klzu_daynight.attributes.forecast[0].daytime == False %}
|
||||||
|
@ -286,7 +269,6 @@ sensor:
|
||||||
{% endif %}
|
{% endif %}
|
||||||
nws_forecast_tomorrow:
|
nws_forecast_tomorrow:
|
||||||
friendly_name: "Forecast Tomorrow"
|
friendly_name: "Forecast Tomorrow"
|
||||||
entity_id: weather.klzu_daynight
|
|
||||||
unit_of_measurement: ''
|
unit_of_measurement: ''
|
||||||
value_template: >-
|
value_template: >-
|
||||||
{%- if states.weather.klzu_daynight.attributes.forecast[1].daytime == True %}
|
{%- if states.weather.klzu_daynight.attributes.forecast[1].daytime == True %}
|
||||||
|
@ -296,7 +278,6 @@ sensor:
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
nws_forecast_rain_tomorrow:
|
nws_forecast_rain_tomorrow:
|
||||||
friendly_name: "Rain Chance Tomorrow"
|
friendly_name: "Rain Chance Tomorrow"
|
||||||
entity_id: weather.klzu_daynight
|
|
||||||
unit_of_measurement: '%'
|
unit_of_measurement: '%'
|
||||||
value_template: >-
|
value_template: >-
|
||||||
{%- if states.weather.klzu_daynight.attributes.forecast[1].daytime == True %}
|
{%- if states.weather.klzu_daynight.attributes.forecast[1].daytime == True %}
|
||||||
|
@ -306,7 +287,6 @@ sensor:
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
nws_forecast_tomorrow_night:
|
nws_forecast_tomorrow_night:
|
||||||
friendly_name: "Forecast Tomorrow Night"
|
friendly_name: "Forecast Tomorrow Night"
|
||||||
entity_id: weather.klzu_daynight
|
|
||||||
unit_of_measurement: ''
|
unit_of_measurement: ''
|
||||||
value_template: >-
|
value_template: >-
|
||||||
{%- if states.weather.klzu_daynight.attributes.forecast[1].daytime == True %}
|
{%- if states.weather.klzu_daynight.attributes.forecast[1].daytime == True %}
|
||||||
|
@ -316,7 +296,6 @@ sensor:
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
nws_forecast_rain_tomorrow_night:
|
nws_forecast_rain_tomorrow_night:
|
||||||
friendly_name: "Rain Chance Tomorrow Night"
|
friendly_name: "Rain Chance Tomorrow Night"
|
||||||
entity_id: weather.klzu_daynight
|
|
||||||
unit_of_measurement: '%'
|
unit_of_measurement: '%'
|
||||||
value_template: >-
|
value_template: >-
|
||||||
{%- if states.weather.klzu_daynight.attributes.forecast[1].daytime == True %}
|
{%- if states.weather.klzu_daynight.attributes.forecast[1].daytime == True %}
|
||||||
|
@ -326,12 +305,10 @@ sensor:
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
current_inside_humidity:
|
current_inside_humidity:
|
||||||
friendly_name: "Current Inside Humidity"
|
friendly_name: "Current Inside Humidity"
|
||||||
entity_id: climate.home
|
|
||||||
unit_of_measurement: '%'
|
unit_of_measurement: '%'
|
||||||
value_template: "{{ states.climate.home.attributes.current_humidity }}"
|
value_template: "{{ states.climate.home.attributes.current_humidity }}"
|
||||||
lighting_stike_count:
|
lighting_stike_count:
|
||||||
friendly_name: "Lightning Strike Count"
|
friendly_name: "Lightning Strike Count"
|
||||||
entity_id: sensor.back_porch
|
|
||||||
value_template: "{{ states.sensor.back_porch.attributes.strike_count }}"
|
value_template: "{{ states.sensor.back_porch.attributes.strike_count }}"
|
||||||
|
|
||||||
automation:
|
automation:
|
||||||
|
|
|
@ -43,13 +43,11 @@
|
||||||
sensors:
|
sensors:
|
||||||
# washer_power:
|
# washer_power:
|
||||||
# friendly_name: "Washer Power"
|
# friendly_name: "Washer Power"
|
||||||
# entity_id: sensor.time
|
|
||||||
# unit_of_measurement: ''
|
# unit_of_measurement: ''
|
||||||
# value_template: >-
|
# value_template: >-
|
||||||
# {{ states.switch.washer.attributes.current_power_w | int }}
|
# {{ states.switch.washer.attributes.current_power_w | int }}
|
||||||
low_battery:
|
low_battery:
|
||||||
friendly_name: 'Low Battery'
|
friendly_name: 'Low Battery'
|
||||||
entity_id: sensor.time
|
|
||||||
value_template: >
|
value_template: >
|
||||||
{%- set threshold = 15 -%}
|
{%- set threshold = 15 -%}
|
||||||
{%- set domains = ['light', 'switch', 'sensor', 'zwave', 'lock', 'binary_sensor'] -%}
|
{%- set domains = ['light', 'switch', 'sensor', 'zwave', 'lock', 'binary_sensor'] -%}
|
||||||
|
|
Loading…
Reference in New Issue