This is the message that we get in the configuration test:
The system cannot restart because the configuration is not valid: Invalid config for [sensor.template]: expected dictionary for dictionary value @ data[‘sensors’][‘template’]. Got [OrderedDict([(‘sensor’, None)]), OrderedDict([(‘name’, ‘test_energy’), (‘state’, “{{ states(‘sensor.solax_total’) }}”), (‘unit_of_measurement’, ‘kWh’), (‘state_class’, ‘measurement’), (‘device_class’, ‘energy’), (‘attributes’, OrderedDict([(‘last_reset’, ‘1970-01-01T00:00:00+00:00’)]))])]. (See ?, line ?).
I’ve got the API code and tried the URL (at night) but the only thing i’m getting is This sn did not access! is this due to the fact that it´s currently not on or am I doing something wrong?
{
success: false,
exception: "Query success!",
result: "this sn did not access!"
}
Hi I’m new to Home Assistant so it might be that I am doing something wrong. I got the script working and the sensors are showing up on my dashboard. But when I try to add them to my engery page it does not display the sensors in the list.
Did the 2022.2 update break anybody else’s Energy dashboard? I still get the correct values in my lovelace card and even the template sensor is showing the correct value. But for some reason the energy dashboard doesn’t pick up on the sensor anymore although it’s still configured as a solar input in the energy dashboard settings.
I followed the instructions with minor modifications. This works for X1-booster and I have the PV yield showing up on the energy dashboard. As I am new to HA it took a bit of digging through posts. My setup described below. Hope this is of help to anyone struggling with the dashboard integration. Thanks to @Doublet and @heldopsokken.
solax.yaml
Grab data via api, “PV now”, “PV today”, “PV total” are in preparation of a second system I am planning to get this year so I can sum up easily.
Yes you can. I have only one string, so i tested it with the attribute “powerdc1” there are also powerd2/3/4 values, check which one is filled for you.
You need to add “powerdc1” and “powerdc2” to the JSON json_attributes and add add a template sensor for it:
Great guide, and I wouldn’t have got anywhere without it. I am totally new to to this, but here is some stuff thats not obvious to a totally new person like me.
" Build the sensors in HA"
Translation:-
Add this to the configuration.yaml file on your HA.
To do this add the addon “file Editor”, start it, then click open Web UI. click the folder icon and paste the sensors stuff above.
with one exception…
in the configuration stuff above it says sensors: this should be Sensor:
“just add the new sensors:”
Translation
in HA, click overview in side bar, bottom right click add card, click by entity, search for solax and click the items you have just added.
Thanks again for the guide and sorry if my new-ness is just obvious stuff. but if i got stuck there, maybe others did too.
First of all, great topic and info. It works for me, but the energy dashboard show different values than the entity. I think this has something to do with the energy production dips. Does anyone know how to get the entity and the energy dashboard in-sync?