Here’s a script I use to notify me each morning to choose whether I want to heat the swimming pool or not - depending on the weather forecast (max temp and rain).
alias: Pool Heating confirmation
use_blueprint:
path: homeassistant/confirmable_notification.yaml
input:
notify_device: [your smart phone]
title: Pool
message: >-
Heat today? Max temp is {{ states('sensor.town_temp_max_0') }} °C and
rain forecast is {{ states('sensor.town_rain_chance_0') }}% of {{
states('sensor.town_rain_amount_range_0') }}mm. Tomorrow will be {{
states('sensor.town_temp_max_1') }} °C with {{
states('sensor.town_rain_chance_1') }}% of of {{
states('sensor.town_rain_amount_range_1') }}mm.
confirm_action:
- service: climate.turn_on
data: {}
target:
entity_id: climate.inverter_pool_heat_pump
dismiss_action:
- stop: ""
mode: single
icon: mdi:pool-thermometer