Hello guest, if you read this it means you are not registered. Click here to register in a few simple steps, you will enjoy all features of our Forum.
Hi Guest this is an announcement for guests !!!

Note de ce sujet :
  • Moyenne : 0 (0 vote(s))
  • 1
  • 2
  • 3
  • 4
  • 5
erreurs unités puissance ? (w wh)
#1
Bonjour!
Je cherche pourquoi mon home assistant ne remonte plus les infos de l'onduleur de temps en temps....

je suis tombé sur ces logs : 

Code :
Enregistreur: homeassistant.components.sensor
Source: components/sensor/__init__.py:732
intégration: Capteur (documentation, problèmes)
S'est produit pour la première fois: 05:09:40 (5 occurrences)
Dernier enregistrement: 05:09:41

Entity sensor.voltronic_1_batt_charge_watt (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>) is using native unit of measurement 'W' which is not a valid unit for the device class ('energy') it is using; expected one of ['MJ', 'kWh', 'Wh', 'GJ', 'MWh']; 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+mqtt%22
Entity sensor.voltronic_1_batt_decharge_watt (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>) is using native unit of measurement 'W' which is not a valid unit for the device class ('energy') it is using; expected one of ['MJ', 'kWh', 'Wh', 'GJ', 'MWh']; 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+mqtt%22
Entity sensor.voltronic_1_batt_charge_decharge_watt (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>) is using native unit of measurement 'W' which is not a valid unit for the device class ('energy') it is using; expected one of ['MJ', 'kWh', 'Wh', 'GJ', 'MWh']; 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+mqtt%22
Entity sensor.voltronic_1_conso_maison_watt (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>) is using native unit of measurement 'W' which is not a valid unit for the device class ('energy') it is using; expected one of ['MJ', 'kWh', 'Wh', 'GJ', 'MWh']; 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+mqtt%22
Entity sensor.voltronic_1_pv_watt (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>) is using native unit of measurement 'W' which is not a valid unit for the device class ('energy') it is using; expected one of ['MJ', 'kWh', 'Wh', 'GJ', 'MWh']; 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+mqtt%22


Code :
Enregistreur: homeassistant.components.mqtt.models
Source: components/mqtt/models.py:378
intégration: MQTT (documentation, problèmes)
S'est produit pour la première fois: 06:40:30 (5 occurrences)
Dernier enregistrement: 06:40:30

Exception raised when updating state of sensor.voltronic_1_batt_charge_watt, topic: 'smartphoton/voltronic1/custom_1' with payload: b'NaN'
Exception raised when updating state of sensor.voltronic_1_batt_decharge_watt, topic: 'smartphoton/voltronic1/custom_2' with payload: b'NaN'
Exception raised when updating state of sensor.voltronic_1_batt_charge_decharge_watt, topic: 'smartphoton/voltronic1/custom_3' with payload: b'NaN'
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/mqtt/models.py", line 378, in process_write_state_requests
    entity.async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1009, in async_write_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1132, in _async_write_ha_state
    state, attr, capabilities, shadowed_attr = self.__async_calculate_state()
                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1067, in __async_calculate_state
    state = self._stringify_state(available)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1015, in _stringify_state
    if (state := self.state) is None:
                ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 676, in state
    raise ValueError(
ValueError: Sensor sensor.voltronic_1_batt_charge_watt has device class 'energy', state class 'None' unit 'W' and suggested precision 'None' thus indicating it has a numeric value; however, it has the non-finite value: 'nan'

en gros ce que j'ai compris en resumé c'est ca:


Entity sensor.voltronic_1_pv_watt (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>) is using native unit of measurement 'W' which is not a valid unit for the device class ('energy') it is using; expected one of ['MJ', 'kWh', 'Wh', 'GJ', 'MWh']; Please update your configuration if your entity is manually configured

est ce que c'est lié? et est ce qu'on peut modifié les unités en Wh nous même pour faire disparaitre ce soucis ?


Merci d'avance pour vos avis et autres idées
Like Répondre


Messages dans ce sujet
erreurs unités puissance ? (w wh) - par Mouchkit - 16-05-2024, 08:06 AM
RE: erreurs unités puissance ? (w wh) - par NOLAK - 16-05-2024, 09:26 AM
RE: erreurs unités puissance ? (w wh) - par NOLAK - 16-05-2024, 05:44 PM
RE: erreurs unités puissance ? (w wh) - par jlm - 17-05-2024, 12:14 AM
RE: erreurs unités puissance ? (w wh) - par NOLAK - 17-05-2024, 08:39 AM
RE: erreurs unités puissance ? (w wh) - par NOLAK - 17-05-2024, 09:48 AM
RE: erreurs unités puissance ? (w wh) - par NOLAK - 28-05-2024, 06:44 AM
RE: erreurs unités puissance ? (w wh) - par jlm - 29-05-2024, 05:22 PM

Sujets apparemment similaires…
Sujet Auteur Réponses Affichages Dernier message
  Mesure Puissance en Watt en entree Onduleur tonton 2 1,917 10-02-2025, 07:19 PM
Dernier message: NOLAK
  Remontée des codes erreurs triphasé claude47 1 1,819 29-05-2024, 12:37 PM
Dernier message: NOLAK

Atteindre :


Utilisateur(s) parcourant ce sujet : 1 visiteur(s)
[-]
discussions récentes
Ivica Zubac shared some charmi...
of Magic Johnson against year ...Witherspoon — 05:37 AM
Boston Celtics 40-20)
at Milwaukee Dollars 26-33 Act...Witherspoon — 04:32 AM
présentation
Bonjour. je suis la grâce a...jp73000 — 09:11 PM
WKS Circle et batterie Pylont...
salut claude petite question e...Tapion — 05:56 PM
Mise en service DEYE SUN-8K-S...
Saluuut, oui Petit retour d'...SebasTs — 12:56 PM
Mise en service DEYE SUN-8K-S...
Cc SebasTs.. Quand j'ai vu le ...Nadiaah — 12:50 PM
nouvelle add-on
Très pertinent, surtout pour s...kilihan — 12:35 PM
Ma présentation
Je viens d'arriver aussi, bien...kilihan — 12:30 PM
Présentation Kilihan
Bonjour https://smartphoton.ch...kilihan — 12:28 PM
WKS Circle et batterie Pylont...
Bonjour, Je reprends ce post ...claude47 — 12:24 PM
Optimiser un local batterie, e...
Bonjour à tous. Alors je lance...Nadiaah — 11:43 AM

[-]
Rechercher








(Advanced Search)

[-]
Who's Online
There are currently 510 online users. [Complete List]
» 1 Member(s) | 509 Guest(s)
Avatar

[-]
goals
77.9% of the way to our goal of 10,000 posts!
Only 2,210 posts left to go!

[-]
Statistics
» Members: 1,001
» Latest member: Witherspoon
» Forum threads: 842
» Forum posts: 7,790

Full Statistics

[-]
Latest Threads
Ivica Zubac shared some charming damning...
Last Post: Witherspoon
Aujourd’hui 05:37 AM
» Replies: 0
» Views: 6
Boston Celtics 40-20)
Last Post: Witherspoon
Aujourd’hui 04:32 AM
» Replies: 0
» Views: 4
présentation
Last Post: jp73000
Hier 09:11 PM
» Replies: 0
» Views: 21
WKS Circle et batterie Pylontech
Last Post: Tapion
Hier 05:56 PM
» Replies: 3
» Views: 2379
Mise en service DEYE SUN-8K-SG01LP1-EU
Last Post: SebasTs
Hier 12:56 PM
» Replies: 27
» Views: 11632
nouvelle add-on
Last Post: kilihan
Hier 12:35 PM
» Replies: 1
» Views: 80
Ma présentation
Last Post: kilihan
Hier 12:30 PM
» Replies: 1
» Views: 51
Présentation Kilihan
Last Post: kilihan
Hier 12:28 PM
» Replies: 0
» Views: 35
Optimiser un local batterie, entre choix...
Last Post: Nadiaah
Hier 11:43 AM
» Replies: 0
» Views: 36
Rédaction auto pour contenu technique
Last Post: Firmin
14-04-2026 10:18 AM
» Replies: 0
» Views: 72

>