a529987659852 / openwb2mqtt

Home Assistant Integration for openWB (Version 2)
13 stars 4 forks source link

All values are unknown #11

Open devpolly69 opened 8 months ago

devpolly69 commented 8 months ago

Hello,

here definitely seems to be a problem with the timing when subscribing to MQTT topics here I get the following error in the log. The value is considered "unavailable" for this long.

Logger: homeassistant.components.binary_sensor
Source: helpers/entity_platform.py:576
integration: Binary Sensor ([documentation](https://www.home-assistant.io/integrations/binary_sensor), [issues](https://github.com/home-assistant/core/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+binary_sensor%22))
First occurred: 11:58:21 (3 occurrences)
Last logged: 11:58:21

Error adding entity binary_sensor.openwb_chargepoint_4_ladekabel for domain binary_sensor with platform openwb2mqtt
Error adding entity binary_sensor.openwb_chargepoint_4_autoladestatus for domain binary_sensor with platform openwb2mqtt
Error adding entity binary_sensor.openwb_chargepoint_4_fehler for domain binary_sensor with platform openwb2mqtt
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 576, in _async_add_entities
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 865, in _async_add_entity
    await entity.add_to_platform_finish()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1327, in add_to_platform_finish
    await self.async_added_to_hass()
  File "/config/custom_components/openwb2mqtt/binary_sensor.py", line 163, in async_added_to_hass
    await mqtt.async_subscribe(
  File "/usr/src/homeassistant/homeassistant/components/mqtt/client.py", line 173, in async_subscribe
    raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: Cannot subscribe to topic 'openWB/chargepoint/4/get/plug_state', MQTT is not enabled

After a short time the status changes to "unknown". It looks to me as if the subscription then worked. However, the values are not updated or any value is displayed. With the MQTT Explorer, however, I can see the values in HA-MQTT.

image

MQTT-Explorer connected to HA-MQTT image

I tried several configurations for mosquitto.conf but none of them worked.

Thanks a lot for some help.

BR Kub

farbfoto commented 8 months ago

I have unfortunately the same issue. Running external MQTT server...

ccie11827 commented 5 months ago

same problem :-(

LostInTranslation2 commented 5 months ago

Same here. :-(