Closed duracellkonijn22 closed 4 months ago
Hey there @cereal2nd, @brefra, mind taking a look at this issue as it has been labeled with an integration (velbus
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
velbus documentation velbus source (message by IssueLinks)
FYI: turned back to the snapshot of my virtual machine (before update)
from what version did you upgrade?
as i thought i fixed this a couple of months ago
I have the same issue. This screenshot is in version 2024.4.4
And this one is in version 2024.4.1
When I remove the velbus entity and add it again it works. When I reboot HA it stops working. I can see in the diagnostics file that something as changed. Before the reboot: config_entry-velbus-7554e35c23b9ed00b05786197624fb67.json This is the correct config. But after the restart of HA: velbus-3bdfd78aed38c65742be9a60c230c68e-Input1 (VMB7IN)-1a9a19e34021f386ca17e95895c2b5f8.json
So somewhere it removes the "unit" line
@Cereal2nd Is there something i'm doing wrong? I can't figure out why the unit config keeps disappearing...
i need to investigate ...
but that will be half may at the earliest
Oke, thanks in advance!
On Fri, 3 May 2024 at 08:15, Maikel Punie @.***> wrote:
i need to investigate ...
but that will be half may at the earliest
— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/115659#issuecomment-2092371986, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIFV7UGZPTQT6PACF73SJ7LZAMTPXAVCNFSM6AAAAABGH6QRZCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJSGM3TCOJYGY . You are receiving this because you commented.Message ID: @.***>
Opening the topic again.
Just updated Home Assistant again with the following values: Core 2024.5.5 Supervisor 2024.05.1 Operating System 12.3 Frontend 20240501.1
Again same notification in error log: ValueError: Sensor sensor.statistics_daily_power_output_solaredge has device class 'energy', state class 'total' unit 'kWh' and suggested precision 'None' thus indicating it has a numeric value; however, it has the non-numeric value: 'states('sensor.solaredge_ac_power_output')' (<class 'str'>) 2024-06-05 20:55:31.888 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.statistics_solar_production (<class 'homeassistant.components.template.sensor.SensorTemplate'>) is using native unit of measurement 'kWh' which is not a valid unit for the device class ('power') it is using; expected one of ['W', 'kW']; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+template%22 2024-06-05 20:55:31.897 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hacs' accesses hass.helpers.event. This is deprecated and will stop working in Home Assistant 2024.11, it should be updated to import functions used from event directly at custom_components/hacs/base.py, line 623: self.hass.helpers.event.async_track_time_interval(, please create a bug report at https://github.com/hacs/integration/issues 2024-06-05 21:00:10.391 WARNING (Recorder) [homeassistant.components.sensor.recorder] The unit of sensor.so1_afname (None) cannot be converted to the unit of previously compiled statistics (W). Generation of long term statistics will be suppressed unless the unit changes back to W or a compatible unit. Go to https://my.home-assistant.io/redirect/developer_statistics to fix this 2024-06-05 21:00:10.392 WARNING (Recorder) [homeassistant.components.sensor.recorder] The unit of sensor.so1_afname_counter (None) cannot be converted to the unit of previously compiled statistics (kWh). Generation of long term statistics will be suppressed unless the unit changes back to kWh or a compatible unit. Go to https://my.home-assistant.io/redirect/developer_statistics to fix this 2024-06-05 21:00:10.392 WARNING (Recorder) [homeassistant.components.sensor.recorder] The unit of sensor.so1_afname1 (None) cannot be converted to the unit of previously compiled statistics (W). Generation of long term statistics will be suppressed unless the unit changes back to W or a compatible unit. Go to https://my.home-assistant.io/redirect/developer_statistics to fix this 2024-06-05 21:00:10.392 WARNING (Recorder) [homeassistant.components.sensor.recorder] The unit of sensor.so1_afname1_counter (None) cannot be converted to the unit of previously compiled statistics (kWh). Generation of long term statistics will be suppressed unless the unit changes back to kWh or a compatible unit. Go to https://my.home-assistant.io/redirect/developer_statistics to fix this 2024-06-05 21:00:10.393 WARNING (Recorder) [homeassistant.components.sensor.recorder] The unit of sensor.so2_injectie (None) cannot be converted to the unit of previously compiled statistics (W). Generation of long term statistics will be suppressed unless the unit changes back to W or a compatible unit. Go to https://my.home-assistant.io/redirect/developer_statistics to fix this 2024-06-05 21:00:10.393 WARNING (Recorder) [homeassistant.components.sensor.recorder] The unit of sensor.so2_injectie_counter (None) cannot be converted to the unit of previously compiled statistics (kWh). Generation of long term statistics will be suppressed unless the unit changes back to kWh or a compatible unit. Go to https://my.home-assistant.io/redirect/developer_statistics to fix this 2024-06-05 21:00:10.393 WARNING (Recorder) [homeassistant.components.sensor.recorder] The unit of sensor.so2_injectie1 (None) cannot be converted to the unit of previously compiled statistics (W). Generation of long term statistics will be suppressed unless the unit changes back to W or a compatible unit. Go to https://my.home-assistant.io/redirect/developer_statistics to fix this 2024-06-05 21:00:10.393 WARNING (Recorder) [homeassistant.components.sensor.recorder] The unit of sensor.so2_injectie1_counter (None) cannot be converted to the unit of previously compiled statistics (kWh). Generation of long term statistics will be suppressed unless the unit changes back to kWh or a compatible unit. Go to https://my.home-assistant.io/redirect/developer_statistics to fix this
Also still have issues with VMB7IN. Still not showing power output..
Logfile: Logger: homeassistant.util.loop Source: util/loop.py:84 First occurred: 10:02:54 AM (4 occurrences) Last logged: 10:34:41 AM
Detected blocking call to open inside the event loop by integration 'velbus' at homeassistant/components/velbus/init.py, line 74: controller = Velbus( (offender: /usr/local/lib/python3.12/site-packages/velbusaio/handler.py, line 40: with open(), please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+velbus%22 Traceback (most recent call last): File "
I think it is still missing the option enabled : true
I checked on version 2024.4.1 and there you can see the following in the debug file:
Core 2024.6.0 Supervisor 2024.05.1 Operating System 12.3 Frontend 20240605.0
@Cereal2nd Can you please take a look at this again?
not the coming weeks.
the earliest will be by the end of the month
@Cereal2nd Okido.
Also I found out that if I delete the hub and then add it again it all works again until I restart HomeAssistant..
After adding it again: Diagnostics file after adding it again: velbus-1c057d0e99cd54aa0665fa8855fe7d2f-Input1 (VMB7IN)-1a9a19e34021f386ca17e95895c2b5f8.json
Reverted my snapshot back to waiting for a solution: Core 2024.3.0 Supervisor 2024.06.0
this was added to make the counters work again ...
so i doubt this will fix everything
this was added to make the counters work again ...
so i doubt this will fix everything
You are right. For some reason it just worked one time after a reload of velbus... I'm not an expert in this, I'm just trying things out :-)
i think we will need to do something similar as this for the enabled param.
Something like this should do it (i think) the coding is not the work, its the testing that takes 90% of the dev time
Oke I did some testing with the changed code.
First I removed velbus from HA and then added it again. Then everything works(but that was also before the change) Debug File:
Then I restarted HA and then it stops working again Debug file did not change so Unit and enabled are all filled in correctly.
Then I tried to reload the velbus integration and then strange things happen
I have 2 VMB7IN modules(both with counters added to them) and after the reload 1 of the 2 works. When I reload again sometimes the other works again but the first ons stops working... And sometimes both off them stop working...
This is the error in the system log: Logger: homeassistant.util.loop Source: util/loop.py:84 First occurred: 8:02:57 PM (2 occurrences) Last logged: 8:43:27 PM
Detected blocking call to open inside the event loop by integration 'velbus' at homeassistant/components/velbus/init.py, line 74: controller = Velbus( (offender: /usr/local/lib/python3.12/site-packages/velbusaio/handler.py, line 40: with open(), please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+velbus%22 Traceback (most recent call last): File "
@Cereal2nd
I updated to 2024.6.4 on my test environment and it works again! When I updated my production I first had some trouble but when I deleted the velbus hub and added it again it all works at the moment.
I can also confirm that this issue has been solved here in 2024.6.4.
Thanks!
The problem
Receiving the following errors: 2024-04-15 21:21:49.908 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.so1_afname (<class 'homeassistant.components.velbus.sensor.VelbusSensor'>) is using native unit of measurement 'None' which is not a valid unit for the device class ('power') it is using; expected one of ['W', 'kW']; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+velbus%22
After recent update.
What version of Home Assistant Core has the issue?
2024.4.3
What was the last working version of Home Assistant Core?
core_2024.3.0
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Velbus
Link to integration documentation on our website
https://www.home-assistant.io/integrations/velbus/#:~:text=Example%20automation-,The%20Velbus%20integration,a%20device%20or%20a%20service.
Diagnostics information
See error above
Example YAML snippet
Anything in the logs that might be useful for us?
No response
Additional information
No response