Hey everyone, I’m really excited to share my recent project with you! I’ve been working on integrating my solar panel data into Home Assistant (HA) and it’s been a fantastic journey. My goal was to create an automation that sends me a mobile notification when my solar panels stop producing power, letting me know how much energy was generated that day. Here’s how I tackled it:
Initially, I thought it would be straightforward, but I ran into a bit of a hurdle. I wanted the notification to include the actual energy produced today from my sensor.solaredge_energy_today. After some research and trial and error, I figured it out!
Here’s the automation I set up:
alias: ‘SolarEdge [NOT PRODUCING] → Mobile Notification’
description: ‘’
trigger:
- platform: numeric_state
entity_id: sensor.solaredge_current_power
below: ‘1’
condition:
action: - device_id: [your-device-id]
domain: mobile_app
type: notify
message: ‘Energy production ended. Energy produced today: {{ states.sensor.solaredge_energy_today.state }} kWh’
title: ‘SolarEdge’
mode: single
I used {{ states.sensor.solaredge_energy_today.state }} to dynamically insert the energy value into the notification. It’s such a neat way to keep track of my solar energy production without having to check HA manually!
I hope this helps anyone else looking to integrate their solar panel data into mobile notifications. It’s a small but incredibly useful automation that gives me peace of mind knowing my energy usage is under control. Happy automating everyone! ![]()