Hi There,
I’m trying to fix my solaredge configuration. This has been working for several weeks but all of a suddon stopped.
First i had a configuration like this:
sensor:
- platform: solaredge
api_key: 1234567890
site_id: 1234567890
name: SolarEdge
monitored_conditions:
- current_power
- energy_today
- energy_this_month
- energy_this_year
- lifetime_energy
- site_details
- meters
- sensors
- gateways
- batteries
- inverters
- power_consumption
- solar_power
- grid_power
- storage_power
Now i’m trying to fix it, but can’t get it to work again.
Finally i have some stuff to turn things around:
- platform: sensors
sensors:
solaredge_energy_this_year_template:
value_template: "{{ (states('sensor.solaredge_energy_this_year') | float / 1000) | round(2) }}"
unit_of_measurement: 'kWh'
solaredge_current_power_template:
value_template: "{{ (states('sensor.solaredge_current_power') | float / 1) | round(2) }}"
unit_of_measurement: 'W'
solaredge_energy_today_template:
value_template: "{{ (states('sensor.solaredge_energy_today') | float / 1000) | round(2) }}"
unit_of_measurement: 'kWh'
solaredge_lifetime_energy_template:
value_template: "{{ (states('sensor.solaredge_lifetime_energy') | float / 1000) | round(2) }}"
unit_of_measurement: 'kWh'
This leaves me with the following error: Platform error sensor.sensors - Integration ‘sensors’ not found.
Any ideeas on how to fix this?
EDIT: Changing - platform: sensors to - platform: template fixed my error obviously. But leaves me with empty data.
Alright. Been reading some more and found out there were some changes in the last update. For those who want it working again:
#Zonnepanelen
solaredge:
api_key: YOUR_API_KEY
site_id: YOUR_SITE_ID
#Zonnepanelen
sensor:
- platform: template
sensors:
solaredge_energy_this_year_template:
value_template: "{{ (states('sensor.solaredge_energy_this_year') | float / 1000) | round(2) }}"
unit_of_measurement: 'kWh'
solaredge_current_power_template:
value_template: "{{ (states('sensor.solaredge_current_power') | float / 1) | round(2) }}"
unit_of_measurement: 'W'
solaredge_energy_today_template:
value_template: "{{ (states('sensor.solaredge_energy_today') | float / 1000) | round(2) }}"
unit_of_measurement: 'kWh'
solaredge_lifetime_energy_template:
value_template: "{{ (states('sensor.solaredge_lifetime_energy') | float / 1000) | round(2) }}"
unit_of_measurement: 'kWh'
2 Likes
ozarn
(Ozarn)
October 31, 2019, 3:37am
3
This is great info and perfect timing. Thanks for sharing.
Do you know how to add more than one inverter?
Your welcome
I only have one installation so i don’t have any experience with adding a second one… Sorry.
Bennie
(Ben Janssen)
July 18, 2020, 8:00pm
5
Hello Maurice, how do I get this template be showed in my Dashboard. It’s only shows in Wh, but I want it in kWh.
After placing the code below in your configuration.yaml and restarting Home Assistant it will create a new sensor with
In this example, you need to look for the entity with name “solaredge_energy_this_year_template”
#Zonnepanelen
sensor:
- platform: template
sensors:
solaredge_energy_this_year_template:
value_template: "{{ (states('sensor.solaredge_energy_this_year') | float / 1000) | round(2) }}"
unit_of_measurement: 'kWh'
Bennie
(Ben Janssen)
July 20, 2020, 7:23pm
7
Many Thanks Maurice.
Everything works great.
Are you from Holland?
Good to hear :).
Yeah. i’m from holland. Looking at your name a assume you are to
skynet01
(Alex)
October 1, 2020, 8:23pm
9
Does anyone know how to remove the unused Solaredge sensors from the integration as its not possible to hide them in the ui
wmaker
(Tommy Long)
October 2, 2020, 7:36pm
10
To my knowledge, there is no way currently. There use to be a way to specify “monitored_ conditions” but they removed that in 0.99.
0burner0
(Mark)
January 13, 2021, 9:03am
11
Thnx!! Helpt a lot this topic.
I also created a sensor for a this month:
solaredge_month_energy_template:
value_template: "{{ (states('sensor.solaredge_energy_this_month') | float / 1000) | round(2) }}"
unit_of_measurement: 'kWh'
Now I would like to make 4 sensors what I earned with the solarpanels.
Today
Month
Year
Alltime
I pay/get for a kwh € 0,21327.
I understand that I have to multiply it with one of the other sensors, but how?
Edit solved it by some help on tweakers:
platform: template
sensors:
solaredge_energy_this_year_template:
value_template: “{{ (states(‘sensor.solaredge_energy_this_year’) | float / 1000) | round(2) }}”
unit_of_measurement: ‘kWh’
solaredge_current_power_template:
value_template: “{{ (states(‘sensor.solaredge_current_power’) | float / 1) | round(2) }}”
unit_of_measurement: ‘W’
solaredge_energy_today_template:
value_template: “{{ (states(‘sensor.solaredge_energy_today’) | float / 1000) | round(2) }}”
unit_of_measurement: ‘kWh’
solaredge_lifetime_energy_template:
value_template: “{{ (states(‘sensor.solaredge_lifetime_energy’) | float / 1000) | round(2) }}”
unit_of_measurement: ‘kWh’
solaredge_month_energy_template:
value_template: “{{ (states(‘sensor.solaredge_energy_this_month’) | float / 1000) | round(2) }}”
unit_of_measurement: ‘kWh’
solaredge_cost_this_year_template:
value_template: “{{ (states(‘sensor.solaredge_energy_this_year’) | float / 1000 * 0.21327) | round(2) }}”
unit_of_measurement: ‘euro’
solaredge_cost_today_template:
value_template: “{{ (states(‘sensor.solaredge_energy_today’) | float / 1000 * 0.21327) | round(2) }}”
unit_of_measurement: ‘euro’
solaredge_lifetime_cost_template:
value_template: “{{ (states(‘sensor.solaredge_lifetime_energy’) | float / 1000 * 0.21327) | round(2) }}”
unit_of_measurement: ‘euro’
solaredge_month_cost_template:
value_template: “{{ (states(‘sensor.solaredge_energy_this_month’) | float / 1000 * 0.21327) | round(2) }}”
unit_of_measurement: ‘euro’
timovd
June 8, 2021, 7:05am
12
*Kicking
I’m new to HA and I’ve been using Domoticz for the past few years. In Domoticz, I was able to see the AC voltage and frequency (usually around 235V and 50Hz in the NL). How can I add these? Especially whith these sunny days, I want to make sure that the voltage is not too high.
HA is installed in a docker on my Synology (so not the OS or Supervised).