summary notification
This commit is contained in:
parent
a05dfeb7ce
commit
98d916c4ed
@ -6,8 +6,8 @@ automation:
|
|||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: sensor.climate_temp_recommendation
|
entity_id: sensor.climate_temp_recommendation
|
||||||
from: 'open window'
|
from: 'open the window'
|
||||||
to: 'close window'
|
to: 'close the window'
|
||||||
action:
|
action:
|
||||||
- service: notify.notify
|
- service: notify.notify
|
||||||
data:
|
data:
|
||||||
@ -16,8 +16,8 @@ automation:
|
|||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: sensor.climate_temp_recommendation
|
entity_id: sensor.climate_temp_recommendation
|
||||||
from: 'close window'
|
from: 'close the window'
|
||||||
to: 'open window'
|
to: 'open the window'
|
||||||
action:
|
action:
|
||||||
- service: notify.notify
|
- service: notify.notify
|
||||||
data:
|
data:
|
||||||
|
@ -104,9 +104,9 @@ sensor:
|
|||||||
{% set inside_max = temp_inside + states("input_number.climate_temp_accuracy")|float %}
|
{% set inside_max = temp_inside + states("input_number.climate_temp_accuracy")|float %}
|
||||||
{% set accuracy = states("input_number.climate_temp_accuracy") |float %}
|
{% set accuracy = states("input_number.climate_temp_accuracy") |float %}
|
||||||
{% if temp_inside >= target and temp_inside >= (temp_outside - accuracy) %}
|
{% if temp_inside >= target and temp_inside >= (temp_outside - accuracy) %}
|
||||||
{{ "open window" }}
|
{{ "open the window" }}
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ "close window" }}
|
{{ "close the window" }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
|
@ -16,9 +16,22 @@ sun:
|
|||||||
|
|
||||||
sensor:
|
sensor:
|
||||||
- platform: template
|
- platform: template
|
||||||
#api_key: !secret pirateweather
|
|
||||||
sensors:
|
sensors:
|
||||||
temperature_outside:
|
temperature_outside:
|
||||||
value_template: '{{ states.weather.home.attributes.temperature }}'
|
value_template: '{{ states.weather.home.attributes.temperature }}'
|
||||||
friendly_name: 'Outside Temperature'
|
friendly_name: 'Outside Temperature'
|
||||||
unit_of_measurement: '°C'
|
unit_of_measurement: '°C'
|
||||||
|
temperature_today_max:
|
||||||
|
value_template: >
|
||||||
|
{{ state_attr('weather.pirateweather', 'forecast')[0].temperature }}
|
||||||
|
friendly_name: 'Max Temperature'
|
||||||
|
unit_of_measurement: '°C'
|
||||||
|
temperature_today_min:
|
||||||
|
value_template: >
|
||||||
|
{{ state_attr("weather.pirateweather", "forecast")[0].templow }}
|
||||||
|
friendly_name: 'Min Temperature'
|
||||||
|
unit_of_measurement: '°C'
|
||||||
|
temperature_today_condition:
|
||||||
|
value_template: >
|
||||||
|
{{ state_attr('weather.pirateweather', 'forecast')[0].condition }}
|
||||||
|
friendly_name: 'Condition'
|
15
packages/homeassistant/notification_summary.yaml
Normal file
15
packages/homeassistant/notification_summary.yaml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
script:
|
||||||
|
summary_notification:
|
||||||
|
sequence:
|
||||||
|
- service: notify.notify
|
||||||
|
data:
|
||||||
|
message: >
|
||||||
|
{% set maxTemp = states("sensor.temperature_today_max") %}
|
||||||
|
{% set minTemp = states("sensor.temperature_today_min") %}
|
||||||
|
{% set condition = states("sensor.temperature_today_condition") %}
|
||||||
|
{% set currentTemp = states("sensor.temperature_outside") %}
|
||||||
|
{% set recommendation = states("sensor.climate_temp_recommendation") %}
|
||||||
|
At the moment it is {{ condition }} outside with a temperature of {{ currentTemp }}°C.
|
||||||
|
Todays temperature will be between {{ maxTemp }}°C and {{ minTemp }}°C.
|
||||||
|
It is recommended to {{ recommendation }}.
|
||||||
|
mode: single
|
Reference in New Issue
Block a user