Sorry - did not know about the metadata - and review process - thanks a lot for the new release - i just updated the .jar - but i see errors now on the log:
am i missing something?
2023-09-05 19:35:28.885 [WARN ] [penhab.core.library.items.NumberItem] - Failed to update item ‘Wechselrichter_Today_Consumption’ because ‘0.8 kWh’ could not be converted to the item unit ‘W’
2023-09-05 19:35:35.108 [WARN ] [penhab.core.library.items.NumberItem] - Failed to update item ‘Wechselrichter_Total_PV_Energy’ because ‘19036 kWh’ could not be converted to the item unit ‘W’
2023-09-05 19:35:35.114 [WARN ] [penhab.core.library.items.NumberItem] - Failed to update item ‘Wechselrichter_Total_Consumption’ because ‘19531 kWh’ could not be converted to the item unit ‘W’
2023-09-05 19:35:35.119 [WARN ] [penhab.core.library.items.NumberItem] - Failed to update item ‘Wechselrichter_Today_Energy’ because ‘63.5 kWh’ could not be converted to the item unit ‘W’
2023-09-05 19:35:35.125 [WARN ] [penhab.core.library.items.NumberItem] - Failed to update item ‘Wechselrichter_Today_FeedIn_Energy’ because ‘25.1 kWh’ could not be converted to the item unit ‘W’
2023-09-05 19:35:35.130 [WARN ] [penhab.core.library.items.NumberItem] - Failed to update item ‘Wechselrichter_Today_Consumption’ because ‘0.8 kWh’ could not be converted to the item unit ‘W’
2023-09-05 19:35:41.351 [WARN ] [penhab.core.library.items.NumberItem] - Failed to update item ‘Wechselrichter_Total_PV_Energy’ because ‘19036 kWh’ could not be converted to the item unit ‘W’
2023-09-05 19:35:41.355 [WARN ] [penhab.core.library.items.NumberItem] - Failed to update item ‘Wechselrichter_Total_Consumption’ because ‘19531 kWh’ could not be converted to the item unit ‘W’
2023-09-05 19:35:41.357 [WARN ] [penhab.core.library.items.NumberItem] - Failed to update item ‘Wechselrichter_Today_Energy’ because ‘63.5 kWh’ could not be converted to the item unit ‘W’
2023-09-05 19:35:41.360 [WARN ] [penhab.core.library.items.NumberItem] - Failed to update item ‘Wechselrichter_Today_FeedIn_Energy’ because ‘25.1 kWh’ could not be converted to the item unit ‘W’
2023-09-05 19:35:41.363 [WARN ] [penhab.core.library.items.NumberItem] - Failed to update item ‘Wechselrichter_Today_Consumption’ because ‘0.8 kWh’ could not be converted to the item unit ‘W’
2023-09-05 19:35:47.597 [WARN ] [penhab.core.library.items.NumberItem] - Failed to update item ‘Wechselrichter_Total_PV_Energy’ because ‘19036 kWh’ could not be converted to the item unit ‘W’
2023-09-05 19:35:47.603 [WARN ] [penhab.core.library.items.NumberItem] - Failed to update item ‘Wechselrichter_Total_Consumption’ because ‘19531 kWh’ could not be converted to the item unit ‘W’
2023-09-05 19:35:47.608 [WARN ] [penhab.core.library.items.NumberItem] - Failed to update item ‘Wechselrichter_Today_Energy’ because ‘63.5 kWh’ could not be converted to the item unit ‘W’
2023-09-05 19:35:47.612 [WARN ] [penhab.core.library.items.NumberItem] - Failed to update item ‘Wechselrichter_Today_FeedIn_Energy’ because ‘25.1 kWh’ could not be converted to the item unit ‘W’
2023-09-05 19:35:47.617 [WARN ] [penhab.core.library.items.NumberItem] - Failed to update item ‘Wechselrichter_Today_Consumption’ because ‘0.8 kWh’ could not be converted to the item unit ‘W’
2023-09-05 19:35:53.849 [WARN ] [penhab.core.library.items.NumberItem] - Failed to update item ‘Wechselrichter_Total_PV_Energy’ because ‘19036 kWh’ could not be converted to the item unit ‘W’
2023-09-05 19:35:53.851 [WARN ] [penhab.core.library.items.NumberItem] - Failed to update item ‘Wechselrichter_Total_Consumption’ because ‘19531 kWh’ could not be converted to the item unit ‘W’
2023-09-05 19:35:53.853 [WARN ] [penhab.core.library.items.NumberItem] - Failed to update item ‘Wechselrichter_Today_Energy’ because ‘63.5 kWh’ could not be converted to the item unit ‘W’
2023-09-05 19:35:53.856 [WARN ] [penhab.core.library.items.NumberItem] - Failed to update item ‘Wechselrichter_Today_FeedIn_Energy’ because ‘25.1 kWh’ could not be converted to the item unit ‘W’
2023-09-05 19:35:53.858 [WARN ] [penhab.core.library.items.NumberItem] - Failed to update item ‘Wechselrichter_Today_Consumption’ because ‘0.8 kWh’ could not be converted to the item unit ‘W’
2023-09-05 19:36:00.101 [WARN ] [penhab.core.library.items.NumberItem] - Failed to update item ‘Wechselrichter_Total_PV_Energy’ because ‘19036 kWh’ could not be converted to the item unit ‘W’
2023-09-05 19:36:00.106 [WARN ] [penhab.core.library.items.NumberItem] - Failed to update item ‘Wechselrichter_Total_Consumption’ because ‘19531 kWh’ could not be converted to the item unit ‘W’
2023-09-05 19:36:00.110 [WARN ] [penhab.core.library.items.NumberItem] - Failed to update item ‘Wechselrichter_Today_Energy’ because ‘63.5 kWh’ could not be converted to the item unit ‘W’
2023-09-05 19:36:00.114 [WARN ] [penhab.core.library.items.NumberItem] - Failed to update item ‘Wechselrichter_Today_FeedIn_Energy’ because ‘25.1 kWh’ could not be converted to the item unit ‘W’
2023-09-05 19:36:00.118 [WARN ] [penhab.core.library.items.NumberItem] - Failed to update item ‘Wechselrichter_Today_Consumption’ because ‘0.8 kWh’ could not be converted to the item unit ‘W’
My guess is that the metadata had to be changed so the “units of measurement” are aligned with the KWh metric. I think I changed it properly in the .xml definitions.
Could you give it another try? (same location, I’ve overwritten the files)
Can you try to make your items to be Number:Energy instead of Number:ElectricPower?
If you do it via the UI I guess you may have to remove and re-add the Thing for the metadata to get updated. Can you check if the channels are of type Number:Energy (KWh) in the thing channel configuration?
The interessting thing is now if i create the Local Connect Inverter thing from scratch - i get this in the logs:
2023-09-07 14:58:02.716 [WARN ] [re.thing.internal.ThingFactoryHelper] - Could not create channel ‘total-energy’, because channel type ‘system:energy’ could not be found.
2023-09-07 14:58:02.719 [WARN ] [re.thing.internal.ThingFactoryHelper] - Could not create channel ‘total-battery-discharge-energy’, because channel type ‘system:energy’ could not be found.
2023-09-07 14:58:02.721 [WARN ] [re.thing.internal.ThingFactoryHelper] - Could not create channel ‘total-battery-charge-energy’, because channel type ‘system:energy’ could not be found.
2023-09-07 14:58:02.723 [WARN ] [re.thing.internal.ThingFactoryHelper] - Could not create channel ‘total-pv-energy’, because channel type ‘system:energy’ could not be found.
2023-09-07 14:58:02.726 [WARN ] [re.thing.internal.ThingFactoryHelper] - Could not create channel ‘total-consumption’, because channel type ‘system:energy’ could not be found.
2023-09-07 14:58:02.728 [WARN ] [re.thing.internal.ThingFactoryHelper] - Could not create channel ‘total-feed-in-energy’, because channel type ‘system:energy’ could not be found.
2023-09-07 14:58:02.730 [WARN ] [re.thing.internal.ThingFactoryHelper] - Could not create channel ‘today-energy’, because channel type ‘system:energy’ could not be found.
2023-09-07 14:58:02.732 [WARN ] [re.thing.internal.ThingFactoryHelper] - Could not create channel ‘today-battery-discharge-energy’, because channel type ‘system:energy’ could not be found.
2023-09-07 14:58:02.735 [WARN ] [re.thing.internal.ThingFactoryHelper] - Could not create channel ‘today-battery-charge-energy’, because channel type ‘system:energy’ could not be found.
2023-09-07 14:58:02.737 [WARN ] [re.thing.internal.ThingFactoryHelper] - Could not create channel ‘today-feed-in-energy’, because channel type ‘system:energy’ could not be found.
2023-09-07 14:58:02.739 [WARN ] [re.thing.internal.ThingFactoryHelper] - Could not create channel ‘today-consumption’, because channel type ‘system:energy’ could not be found.
Yeah. I guess the old-metadata is still in place. Saw that a couple of times during the development of something. I changed it in the code but some stuff is old in the “thing” even though it was changed in the code. Usually if you delete the thing and recreate it, it works.
So is everything working now smooth?
Please monitor it for a while and let me know if there is any weird behavior.
well it is a bit strange - with the thing which i created yesterday - it works if i manually change the type to energy. with the update from today - if i recreate the thing - i get those errors - and the new total’s channels are not visible at all
is system:energy the correct typeid for the channel?if i look here - Thing Descriptions | openHAB there is an system.electrical-energy - dont know if i look on the right pages
ok - here we go - i modified the .jar archive - and updated the localConnectInverter.xml - the correct type is:
system.electric-energy
after that the channels are displayed correctly:
hope i dont bother you with all my reply’s - i noticed one small thing - from what i see the Total value need to be devided more then currently. this applies to Total Consumption / Total Energy / Total PV Energy
PV says 2024,90 kwh - 20388,0 kwh - this should be 2038,80 kwh
OK. I checked again… so in the documentation it’s electrical-energy but in the other channels the voltage and the current for example are electric-voltage/current. I have changed that to system.electric-energy.
Could you give it another try? (I have uploaded new jars in the same location)