alias: Solar Generation Notification
description: Nightly Solar Generation notification.
trigger:
- platform: time
at: "23:30:00"
id: daily_notify
- platform: numeric_state
entity_id:
- sensor.mll8d7s00v_output_power
for:
hours: 0
minutes: 15
seconds: 0
above: 1500
id: high_generation
condition: []
action:
- choose:
- conditions:
- condition: trigger
id:
- daily_notify
- condition: numeric_state
entity_id: sensor.mll8d7s00v_power_generation_today_pvenergytoday
above: 0.9
sequence:
- variables:
solar_status_text: >-
{{
states('sensor.solar_generation_today_status')|default('Unknown')
}}
solar_production_value: >-
{{
states('sensor.mll8d7s00v_power_generation_today_pvenergytoday')|float(0)
}}
solar_estimate_production: >-
{{
state_attr('sensor.solar_generation_today_status','Production')|default('0')
}}
solar_estimate_tomorrow: "{{ states('sensor.energy_production_tomorrow')|float(0) }}"
- service: notify.mobile_app_pixel_8_pro
data:
title: |
Solar Status Today: {{ solar_status_text }}
message: |
Solar Generation: {{ solar_production_value }} kWh
Production of Estimate: {{ solar_estimate_production }}
Estimate for tomorrow: {{ solar_estimate_tomorrow }} kWh
- conditions:
- condition: trigger
id:
- high_generation
sequence:
- service: notify.mobile_app_pixel_8_pro
data:
title: |
Solar Generation Notice
message: >
Solar Generation is currently: {{
((states('sensor.mll8d7s00v_output_power')|float(0)) /
1000)|round(1) }} kW
- service: notify.mobile_app_pixel_8_pro
data:
message: TTS
data:
tts_text: >-
Solar generation notification. Currently {{
((states('sensor.mll8d7s00v_output_power')|float(0)) /
1000)|round(1) }} killowatts are being generated. Check if
there are any high consumption devices you want to turn on.
priority: high
ttl: 0
media_stream: alarm_stream
mode: single
That ![]()