Error with SolarEdge Sensor

Hello,

I’m trying to configure my SolarEdge Sensor. If I enter the code below, all works fine.

- platform: solaredge
  api_key: solaredge_api_key
  site_id: solaredge_site_id
  name: Solarpanels
  monitored_conditions:
    - current_power

But when I change it to the code below I get an error

- platform: solaredge
  api_key: solaredge_api_key
  site_id: solaredge_site_id
  name: Solarpanels
  monitored_conditions:
    - current_power
    - energy_today

The error I get is:

Invalid config for [sensor.solaredge]: value is not allowed @ data[‘monitored_conditions’][1]. Got ‘energy_today’. (See ?, line ?). Please check the docs at https://home-assistant.io/components/sensor.solaredge/

I also get the error when I remove - current_power and only use - energy_today or any of the other possible monitored conditions ( - energy_this_month, - energy_this_year, - lifetime_energy)

Anyone seen this error before, and/or knows how to solve it?

I actually don’t see anything wrong with this …I presume its under the sensor: component…
BTW, what HA version are you running?
Maybe post this question to

Its indeed under the sensor component
I’m using Home Assistant 0.86.4 ( Hassbian installation)

Somewhere along the way these config parameters changed. The docs reflect the latest.
I made the following notes in my config, so its possible in 86.4, last_day_data is what you should use instead of energy_today:

  - current_power
  - energy_today      #was last_day_data
  - energy_this_month #was last_month_data
  - energy_this_year  #was last_year_data
  - lifetime_energy   #was life_time_data

Thanks!!! I chanced the code and all works now! :slight_smile: