hass-weatherflow2mqtt
hass-weatherflow2mqtt copied to clipboard
Sensors unavailable in Home Assistant
Since a few weeks ago, my hub and tempest sensors have become unavailable. I have since attempted to recreate my MQTT to reset it due to some other problems. I got it reset and HA discovered all the devices/entities except for the ones from weatherflow2mqtt. I can see via MQTT Explorer that the weatherflow data is published. And I can't figure out why HA is not recreating the sensors. Any advice? I turned on MQTT debugging but I don't see any references to the weatherflow2mqtt sensors from homeassistant/sensor/weatherflow2mqtt/weather. Here is an example of the data sitting in MQTT for weatherflow:
homeassistant/sensor/weatherflow2mqtt/weather/state
{
"weather": "sunny"
}
homeassistant/sensor/weatherflow2mqtt/weather/attributes
{"attribution": "Powered by WeatherFlow2MQTT", "temp_high_today": 93.2, "temp_low_today": 71.6, "daily_forecast": [{"datetime": "2022-09-07T05:00:00+00:00", "conditions": "Clear", "condition": "sunny", "temperature": 93.2, "templow": 71.6, "precipitation": 0.0, "precipitation_probability": 0, "precip_icon": "", "precip_type": "", "wind_speed": 8.13, "wind_bearing": 59, "wind_direction_cardinal": "ENE"}, {"datetime": "2022-09-08T05:00:00+00:00", "conditions": "Clear", "condition": "sunny", "temperature": 89.6, "templow": 71.6, "precipitation": 0.0, "precipitation_probability": 10, "precip_icon": "chance-rain", "precip_type": "rain", "wind_speed": 6.9, "wind_bearing": 80, "wind_direction_cardinal": "E"}, {"datetime": "2022-09-09T05:00:00+00:00", "conditions": "Clear", "condition": "sunny", "temperature": 87.8, "templow": 69.8, "precipitation": 0.0, "precipitation_probability": 10, "precip_icon": "chance-rain", "precip_type": "rain", "wind_speed": 7.08, "wind_bearing": 135, "wind_direction_cardinal": "SE"}, {"datetime": "2022-09-10T05:00:00+00:00", "conditions": "Clear", "condition": "sunny", "temperature": 89.6, "templow": 69.8, "precipitation": 0.0, "precipitation_probability": 10, "precip_icon": "chance-rain", "precip_type": "rain", "wind_speed": 6.06, "wind_bearing": 119, "wind_direction_cardinal": "ESE"}, {"datetime": "2022-09-11T05:00:00+00:00", "conditions": "Partly Cloudy", "condition": "partlycloudy", "temperature": 87.8, "templow": 71.6, "precipitation": 0.0, "precipitation_probability": 10, "precip_icon": "chance-rain", "precip_type": "rain", "wind_speed": 6.99, "wind_bearing": 190, "wind_direction_cardinal": "S"}, {"datetime": "2022-09-12T05:00:00+00:00", "conditions": "Partly Cloudy", "condition": "partlycloudy", "temperature": 84.2, "templow": 68.0, "precipitation": 0.0, "precipitation_probability": 0, "precip_icon": "", "precip_type": "", "wind_speed": 7.08, "wind_bearing": 123, "wind_direction_cardinal": "ESE"}, {"datetime": "2022-09-13T05:00:00+00:00", "conditions": "Clear", "condition": "sunny", "temperature": 87.8, "templow": 68.0, "precipitation": 0.0, "precipitation_probability": 10, "precip_icon": "chance-rain", "precip_type": "rain", "wind_speed": 7.08, "wind_bearing": 166, "wind_direction_cardinal": "SSE"}, {"datetime": "2022-09-14T05:00:00+00:00", "conditions": "Rain Possible", "condition": "rainy", "temperature": 89.6, "templow": 69.8, "precipitation": 0.0, "precipitation_probability": 20, "precip_icon": "chance-rain", "precip_type": "rain", "wind_speed": 8.95, "wind_bearing": 165, "wind_direction_cardinal": "SSE"}, {"datetime": "2022-09-15T05:00:00+00:00", "conditions": "Clear", "condition": "sunny", "temperature": 89.6, "templow": 71.6, "precipitation": 0.0, "precipitation_probability": 10, "precip_icon": "chance-rain", "precip_type": "rain", "wind_speed": 9.04, "wind_bearing": 165, "wind_direction_cardinal": "SSE"}, {"datetime": "2022-09-16T05:00:00+00:00", "conditions": "Clear", "condition": "sunny", "temperature": 91.4, "templow": 73.4, "precipitation": 0.0, "precipitation_probability": 10, "precip_icon": "chance-rain", "precip_type": "rain", "wind_speed": 8.57, "wind_bearing": 164, "wind_direction_cardinal": "SSE"}], "hourly_forecast": [{"datetime": "2022-09-07T18:00:00+00:00", "conditions": "Clear", "condition": "sunny", "temperature": 91.4, "pressure": 30.008, "humidity": 48, "precipitation": 0.0, "precipitation_probability": 0, "precip_icon": "chance-rain", "precip_type": "", "wind_speed": 8.95, "wind_gust": 11.18, "wind_bearing": 54, "wind_direction_cardinal": "NE", "uv": 9.0, "feels_like": 96.8}, {"datetime": "2022-09-07T19:00:00+00:00", "conditions": "Clear", "condition": "sunny", "temperature": 93.2, "pressure": 29.985, "humidity": 43, "precipitation": 0.0, "precipitation_probability": 0, "precip_icon": "chance-rain", "precip_type": "", "wind_speed": 8.95, "wind_gust": 11.18, "wind_bearing": 52, "wind_direction_cardinal": "NE", "uv": 9.0, "feels_like": 96.8}, {"datetime": "2022-09-07T20:00:00+00:00", "conditions": "Clear", "condition": "sunny", "temperature": 93.2, "pressure": 29.958, "humidity": 43, "precipitation": 0.0, "precipitation_probability": 0, "precip_icon": "chance-rain", "precip_type": "", "wind_speed": 11.18, "wind_gust": 13.42, "wind_bearing": 49, "wind_direction_cardinal": "NE", "uv": 8.0, "feels_like": 95.0}, {"datetime": "2022-09-07T21:00:00+00:00", "conditions": "Clear", "condition": "sunny", "temperature": 93.2, "pressure": 29.938, "humidity": 41, "precipitation": 0.0, "precipitation_probability": 0, "precip_icon": "chance-rain", "precip_type": "", "wind_speed": 8.95, "wind_gust": 11.18, "wind_bearing": 44, "wind_direction_cardinal": "NE", "uv": 5.0, "feels_like": 95.0}, {"datetime": "2022-09-07T22:00:00+00:00", "conditions": "Clear", "condition": "sunny", "temperature": 93.2, "pressure": 29.92, "humidity": 41, "precipitation": 0.0, "precipitation_probability": 0, "precip_icon": "chance-rain", "precip_type": "", "wind_speed": 11.18, "wind_gust": 13.42, "wind_bearing": 51, "wind_direction_cardinal": "NE", "uv": 3.0, "feels_like": 95.0}, {"datetime": "2022-09-07T23:00:00+00:00", "conditions": "Clear", "condition": "sunny", "temperature": 93.2, "pressure": 29.914, "humidity": 41, "precipitation": 0.0, "precipitation_probability": 0, "precip_icon": "chance-rain", "precip_type": "", "wind_speed": 8.95, "wind_gust": 11.18, "wind_bearing": 55, "wind_direction_cardinal": "NE", "uv": 1.0, "feels_like": 93.2}, {"datetime": "2022-09-08T00:00:00+00:00", "conditions": "Clear", "condition": "sunny", "temperature": 93.2, "pressure": 29.911, "humidity": 45, "precipitation": 0.0, "precipitation_probability": 0, "precip_icon": "chance-rain", "precip_type": "", "wind_speed": 8.95, "wind_gust": 11.18, "wind_bearing": 67, "wind_direction_cardinal": "ENE", "uv": 0.0, "feels_like": 91.4}, {"datetime": "2022-09-08T01:00:00+00:00", "conditions": "Clear", "condition": "clear-night", "temperature": 87.8, "pressure": 29.914, "humidity": 50, "precipitation": 0.0, "precipitation_probability": 0, "precip_icon": "chance-rain", "precip_type": "", "wind_speed": 6.71, "wind_gust": 6.71, "wind_bearing": 78, "wind_direction_cardinal": "ENE", "uv": 0.0, "feels_like": 89.6}, {"datetime": "2022-09-08T02:00:00+00:00", "conditions": "Clear", "condition": "clear-night", "temperature": 84.2, "pressure": 29.929, "humidity": 55, "precipitation": 0.0, "precipitation_probability": 0, "precip_icon": "chance-rain", "precip_type": "", "wind_speed": 6.71, "wind_gust": 6.71, "wind_bearing": 78, "wind_direction_cardinal": "ENE", "uv": 0.0, "feels_like": 86.0}, {"datetime": "2022-09-08T03:00:00+00:00", "conditions": "Clear", "condition": "clear-night", "temperature": 82.4, "pressure": 29.943, "humidity": 58, "precipitation": 0.0, "precipitation_probability": 0, "precip_icon": "chance-rain", "precip_type": "", "wind_speed": 4.47, "wind_gust": 4.47, "wind_bearing": 63, "wind_direction_cardinal": "ENE", "uv": 0.0, "feels_like": 84.2}, {"datetime": "2022-09-08T04:00:00+00:00", "conditions": "Clear", "condition": "clear-night", "temperature": 80.6, "pressure": 29.946, "humidity": 62, "precipitation": 0.0, "precipitation_probability": 0, "precip_icon": "chance-rain", "precip_type": "", "wind_speed": 4.47, "wind_gust": 4.47, "wind_bearing": 67, "wind_direction_cardinal": "ENE", "uv": 0.0, "feels_like": 82.4}, {"datetime": "2022-09-08T05:00:00+00:00", "conditions": "Clear", "condition": "clear-night", "temperature": 78.8, "pressure": 29.946, "humidity": 61, "precipitation": 0.0, "precipitation_probability": 0, "precip_icon": "chance-rain", "precip_type": "", "wind_speed": 4.47, "wind_gust": 4.47, "wind_bearing": 74, "wind_direction_cardinal": "ENE", "uv": 0.0, "feels_like": 82.4}, {"datetime": "2022-09-08T06:00:00+00:00", "conditions": "Clear", "condition": "clear-night", "temperature": 77.0, "pressure": 29.946, "humidity": 63, "precipitation": 0.0, "precipitation_probability": 0, "precip_icon": "chance-rain", "precip_type": "", "wind_speed": 6.71, "wind_gust": 6.71, "wind_bearing": 76, "wind_direction_cardinal": "ENE", "uv": 0.0, "feels_like": 82.4}, {"datetime": "2022-09-08T07:00:00+00:00", "conditions": "Clear", "condition": "clear-night", "temperature": 77.0, "pressure": 29.94, "humidity": 65, "precipitation": 0.0, "precipitation_probability": 0, "precip_icon": "chance-rain", "precip_type": "", "wind_speed": 6.71, "wind_gust": 6.71, "wind_bearing": 85, "wind_direction_cardinal": "E", "uv": 0.0, "feels_like": 82.4}, {"datetime": "2022-09-08T08:00:00+00:00", "conditions": "Clear", "condition": "clear-night", "temperature": 75.2, "pressure": 29.932, "humidity": 67, "precipitation": 0.0, "precipitation_probability": 5, "precip_icon": "chance-rain", "precip_type": "rain", "wind_speed": 6.71, "wind_gust": 6.71, "wind_bearing": 82, "wind_direction_cardinal": "E", "uv": 0.0, "feels_like": 82.4}, {"datetime": "2022-09-08T09:00:00+00:00", "conditions": "Clear", "condition": "clear-night", "temperature": 75.2, "pressure": 29.923, "humidity": 63, "precipitation": 0.0, "precipitation_probability": 5, "precip_icon": "chance-rain", "precip_type": "rain", "wind_speed": 4.47, "wind_gust": 4.47, "wind_bearing": 71, "wind_direction_cardinal": "ENE", "uv": 0.0, "feels_like": 84.2}, {"datetime": "2022-09-08T10:00:00+00:00", "conditions": "Clear", "condition": "clear-night", "temperature": 71.6, "pressure": 29.92, "humidity": 70, "precipitation": 0.0, "precipitation_probability": 5, "precip_icon": "chance-rain", "precip_type": "rain", "wind_speed": 4.47, "wind_gust": 4.47, "wind_bearing": 60, "wind_direction_cardinal": "ENE", "uv": 0.0, "feels_like": 80.6}, {"datetime": "2022-09-08T11:00:00+00:00", "conditions": "Clear", "condition": "clear-night", "temperature": 71.6, "pressure": 29.92, "humidity": 82, "precipitation": 0.0, "precipitation_probability": 5, "precip_icon": "chance-rain", "precip_type": "rain", "wind_speed": 4.47, "wind_gust": 4.47, "wind_bearing": 49, "wind_direction_cardinal": "NE", "uv": 0.0, "feels_like": 75.2}, {"datetime": "2022-09-08T12:00:00+00:00", "conditions": "Clear", "condition": "sunny", "temperature": 71.6, "pressure": 29.926, "humidity": 83, "precipitation": 0.0, "precipitation_probability": 5, "precip_icon": "chance-rain", "precip_type": "rain", "wind_speed": 4.47, "wind_gust": 4.47, "wind_bearing": 52, "wind_direction_cardinal": "NE", "uv": 0.0, "feels_like": 75.2}, {"datetime": "2022-09-08T13:00:00+00:00", "conditions": "Clear", "condition": "sunny", "temperature": 75.2, "pressure": 29.929, "humidity": 80, "precipitation": 0.0, "precipitation_probability": 5, "precip_icon": "chance-rain", "precip_type": "rain", "wind_speed": 6.71, "wind_gust": 6.71, "wind_bearing": 70, "wind_direction_cardinal": "ENE", "uv": 0.0, "feels_like": 75.2}, {"datetime": "2022-09-08T14:00:00+00:00", "conditions": "Clear", "condition": "sunny", "temperature": 78.8, "pressure": 29.929, "humidity": 76, "precipitation": 0.0, "precipitation_probability": 5, "precip_icon": "chance-rain", "precip_type": "rain", "wind_speed": 6.71, "wind_gust": 6.71, "wind_bearing": 81, "wind_direction_cardinal": "E", "uv": 1.0, "feels_like": 78.8}, {"datetime": "2022-09-08T15:00:00+00:00", "conditions": "Clear", "condition": "sunny", "temperature": 82.4, "pressure": 29.929, "humidity": 70, "precipitation": 0.0, "precipitation_probability": 0, "precip_icon": "chance-rain", "precip_type": "", "wind_speed": 8.95, "wind_gust": 11.18, "wind_bearing": 81, "wind_direction_cardinal": "E", "uv": 3.0, "feels_like": 82.4}, {"datetime": "2022-09-08T16:00:00+00:00", "conditions": "Partly Cloudy", "condition": "partlycloudy", "temperature": 82.4, "pressure": 29.92, "humidity": 64, "precipitation": 0.0, "precipitation_probability": 5, "precip_icon": "chance-rain", "precip_type": "rain", "wind_speed": 6.71, "wind_gust": 6.71, "wind_bearing": 84, "wind_direction_cardinal": "E", "uv": 5.0, "feels_like": 86.0}, {"datetime": "2022-09-08T17:00:00+00:00", "conditions": "Clear", "condition": "sunny", "temperature": 86.0, "pressure": 29.899, "humidity": 58, "precipitation": 0.0, "precipitation_probability": 5, "precip_icon": "chance-rain", "precip_type": "rain", "wind_speed": 6.71, "wind_gust": 6.71, "wind_bearing": 76, "wind_direction_cardinal": "ENE", "uv": 8.0, "feels_like": 87.8}, {"datetime": "2022-09-08T18:00:00+00:00", "conditions": "Clear", "condition": "sunny", "temperature": 86.0, "pressure": 29.873, "humidity": 53, "precipitation": 0.0, "precipitation_probability": 0, "precip_icon": "chance-rain", "precip_type": "", "wind_speed": 8.95, "wind_gust": 11.18, "wind_bearing": 68, "wind_direction_cardinal": "ENE", "uv": 9.0, "feels_like": 89.6}, {"datetime": "2022-09-08T19:00:00+00:00", "conditions": "Clear", "condition": "sunny", "temperature": 89.6, "pressure": 29.843, "humidity": 47, "precipitation": 0.0, "precipitation_probability": 0, "precip_icon": "chance-rain", "precip_type": "", "wind_speed": 8.95, "wind_gust": 11.18, "wind_bearing": 70, "wind_direction_cardinal": "ENE", "uv": 9.0, "feels_like": 89.6}, {"datetime": "2022-09-08T20:00:00+00:00", "conditions": "Clear", "condition": "sunny", "temperature": 89.6, "pressure": 29.811, "humidity": 45, "precipitation": 0.0, "precipitation_probability": 0, "precip_icon": "chance-rain", "precip_type": "", "wind_speed": 8.95, "wind_gust": 11.18, "wind_bearing": 67, "wind_direction_cardinal": "ENE", "uv": 8.0, "feels_like": 89.6}, {"datetime": "2022-09-08T21:00:00+00:00", "conditions": "Clear", "condition": "sunny", "temperature": 86.0, "pressure": 29.784, "humidity": 44, "precipitation": 0.0, "precipitation_probability": 0, "precip_icon": "chance-rain", "precip_type": "", "wind_speed": 8.95, "wind_gust": 11.18, "wind_bearing": 74, "wind_direction_cardinal": "ENE", "uv": 5.0, "feels_like": 87.8}, {"datetime": "2022-09-08T22:00:00+00:00", "conditions": "Clear", "condition": "sunny", "temperature": 87.8, "pressure": 29.76, "humidity": 44, "precipitation": 0.0, "precipitation_probability": 0, "precip_icon": "chance-rain", "precip_type": "", "wind_speed": 8.95, "wind_gust": 11.18, "wind_bearing": 85, "wind_direction_cardinal": "E", "uv": 3.0, "feels_like": 87.8}, {"datetime": "2022-09-08T23:00:00+00:00", "conditions": "Clear", "condition": "sunny", "temperature": 87.8, "pressure": 29.749, "humidity": 44, "precipitation": 0.0, "precipitation_probability": 0, "precip_icon": "chance-rain", "precip_type": "", "wind_speed": 8.95, "wind_gust": 11.18, "wind_bearing": 90, "wind_direction_cardinal": "E", "uv": 1.0, "feels_like": 86.0}, {"datetime": "2022-09-09T00:00:00+00:00", "conditions": "Clear", "condition": "sunny", "temperature": 86.0, "pressure": 29.746, "humidity": 47, "precipitation": 0.0, "precipitation_probability": 0, "precip_icon": "chance-rain", "precip_type": "", "wind_speed": 6.71, "wind_gust": 6.71, "wind_bearing": 97, "wind_direction_cardinal": "E", "uv": 0.0, "feels_like": 86.0}, {"datetime": "2022-09-09T01:00:00+00:00", "conditions": "Clear", "condition": "clear-night", "temperature": 82.4, "pressure": 29.749, "humidity": 49, "precipitation": 0.0, "precipitation_probability": 0, "precip_icon": "chance-rain", "precip_type": "", "wind_speed": 6.71, "wind_gust": 6.71, "wind_bearing": 104, "wind_direction_cardinal": "ESE", "uv": 0.0, "feels_like": 84.2}, {"datetime": "2022-09-09T02:00:00+00:00", "conditions": "Clear", "condition": "clear-night", "temperature": 80.6, "pressure": 29.763, "humidity": 53, "precipitation": 0.0, "precipitation_probability": 0, "precip_icon": "chance-rain", "precip_type": "", "wind_speed": 6.71, "wind_gust": 6.71, "wind_bearing": 107, "wind_direction_cardinal": "ESE", "uv": 0.0, "feels_like": 82.4}, {"datetime": "2022-09-09T03:00:00+00:00", "conditions": "Clear", "condition": "clear-night", "temperature": 78.8, "pressure": 29.778, "humidity": 55, "precipitation": 0.0, "precipitation_probability": 0, "precip_icon": "chance-rain", "precip_type": "", "wind_speed": 6.71, "wind_gust": 6.71, "wind_bearing": 115, "wind_direction_cardinal": "ESE", "uv": 0.0, "feels_like": 80.6}, {"datetime": "2022-09-09T04:00:00+00:00", "conditions": "Clear", "condition": "clear-night", "temperature": 77.0, "pressure": 29.781, "humidity": 59, "precipitation": 0.0, "precipitation_probability": 0, "precip_icon": "chance-rain", "precip_type": "", "wind_speed": 6.71, "wind_gust": 6.71, "wind_bearing": 125, "wind_direction_cardinal": "SE", "uv": 0.0, "feels_like": 78.8}, {"datetime": "2022-09-09T05:00:00+00:00", "conditions": "Clear", "condition": "clear-night", "temperature": 77.0, "pressure": 29.784, "humidity": 59, "precipitation": 0.0, "precipitation_probability": 0, "precip_icon": "chance-rain", "precip_type": "", "wind_speed": 6.71, "wind_gust": 6.71, "wind_bearing": 134, "wind_direction_cardinal": "SE", "uv": 0.0, "feels_like": 78.8}]}
What do I need to do in order to get Mosquitto, MQTT to recreate the devices and entities in Home Assistant?
Ran into something similar this morning after I upgraded HA to the latest. Everything looked fine on the weatherflow2mqtt side and from MQTT explorer. Restarted everything to no avail. Then, on a whim, hit reconfigure on the MQTT integration in HA settings and everything came back up as normal.
Not sure if it is the same issue, and certainly don't know what or how it got out of sync, but all is fine now.
Thanks @chasut. I do believe your solution will have a good chance to work for @livlif2dfullest. If not, try the following:
- Stop WeatherFlow2MQTT
- Open some kind of MGTT Explorer, connect to your server, and find the Topic homeassistent/sensor
- Here you will find 3 topics starting with
weatherflow2mqtt. Delete them all, and restart the WeatherFlow2MQTT container.
Neither suggestion worked for me from @chasut nor @briis. And I only had 2 topics in weatherflow2mqtt, status and attributes. Do you think I need to reset my weatherflow hub?
Here's how the attempted fix went. From @chasut 01) Hit configure in HA 02) Nothing changed, everything was still unavailable. 03) Deleted entry from MQTT in HA 04) Hit configure in HA 05) Device/entities never got populated in MQTT in HA.
From @briis 01) Stopped WeatherFlow2MQTT 02) Opened up MQTT Explorer, connected to MQTT server, found homeassistant/weatherflow2mqtt 03) Deleted weatherflow2mqtt 2 topics. 04) Restarted weatherflow2mqtt 05) Topics appeared in MQTT Explorer 06) No devices nor entities show up in HA.
If this helps troubleshoot, I'm running everything in container/compose. I have other sensors connected thru MQTT to HA and they're working fine, I even reset a sensor like I did for WeatherFlow and it did come back in HA.
Any other suggestions?
I'm having a similar issue, but can't figure out what the issue is. I had Weatherflow2mqtt running as an addon in HA using the local mosquitto addon, but due to some HAOS issues that cannot be resolved, I decided to move to a container based install. I moved the mosquitto broker to a docker container and moved all my other addons to use it and then started moving the addons themselves to docker containers. All of them work except weatherflow2mqtt. I ran through the steps from @briis above and the three topics were deleted. Restarted weatherflow2mqtt and now the topics have not been recreated in mqtt explorer. Looking in the logs I see this:
INFO:weatherflow2mqtt.weatherflow_mqtt:Timezone is America/Chicago Traceback (most recent call last): File "/usr/local/bin/weatherflow2mqtt", line 33, in <module> sys.exit(load_entry_point('weatherflow2mqtt==3.1.3', 'console_scripts', 'weatherflow2mqtt')()) File "/usr/local/lib/python3.10/site-packages/weatherflow2mqtt-3.1.3-py3.10.egg/weatherflow2mqtt/__main__.py", line 10, in main File "/usr/local/lib/python3.10/asyncio/runners.py", line 44, in run return loop.run_until_complete(main) File "/usr/local/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete return future.result() File "/usr/local/lib/python3.10/site-packages/weatherflow2mqtt-3.1.3-py3.10.egg/weatherflow2mqtt/weatherflow_mqtt.py", line 790, in main ValueError: could not convert string to float: ''
Double checked my mqtt user and pass. They are correct. Made sure the persistent storage is writeable by docker, good. No love though. Not sure what else to do to figure out what is going on. Appreciate any help.
So I figured out 2 issues. One was induced when I was troubleshooting. The log info from the docker container in my first post was due to the two lines in the docker-compose information.
ZAMBRETTI_MIN_PRESSURE= ZAMBRETTI_MAX_PRESSURE=
With no values, this causes an issue where the null value cannot be converted to a float which was causing the container not to start.
It seemed to be a value in the information provided in the docker-compose.yml file. I've had issues with special characters in passwords before so I added quotes to the password, which prevented authenticating with the mqtt broker. Once I realized that, removed those and now things are working as expected.
I need to look in to the ZAMBRETTI Numbers, as the intention was to set default values, if they are not set in the Docker Compose or the Add-On. So they should never be Nothing.
I had copied the text of the docker-compose.yml file from GitHub and adjusted the values for my environment. There were no instructions I recall seeing about Zambretti so I left it as it was. The error message was saying it could not take a null value and those were the only null values in the compose file. Appreciate you taking a look at it, but more importantly appreciate your effort on the project. Bill
Get Outlook for iOShttps://aka.ms/o0ukef
From: Bjarne Riis @.> Sent: Thursday, November 17, 2022 2:07:22 AM To: briis/hass-weatherflow2mqtt @.> Cc: codemannh @.>; Comment @.> Subject: Re: [briis/hass-weatherflow2mqtt] Sensors unavailable in Home Assistant (Issue #189)
I need to look in to the ZAMBRETTI Numbers, as the intention was to set default values, if they are not set in the Docker Compose or the Add-On. So they should never be Nothing.
— Reply to this email directly, view it on GitHubhttps://github.com/briis/hass-weatherflow2mqtt/issues/189#issuecomment-1318243435, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AT4C6FRIDMAMIODWNOE6IFTWIXRTVANCNFSM6AAAAAAQG7JM2Q. You are receiving this because you commented.Message ID: @.***>
Any other suggestions, as this is still not working for me?
I forked the weatherflow2mqtt code and added some logging and when WeatherFlowMqtt.connect is called there's 0 devices, hubs and sensors. From what I can tell EVENT_DEVICE_DISCOVERED is never received so there's no mqtt hub nor sensor ever created. I only have the 2 entries I listed above in MQTT. My next step tomorrow is to modify the pyweatherflowudp code to see where it may be going wrong. If anyone has any ideas to help me speed this up, I'd greatly appreciate it.
If it never finds your hub it might be Network related. Is your Hub on the same VLAN as your HA installation?
It's in a docker container so it's on a different subnet. I tried changing the container to be network_mode: host, but still no change.
This is almost certainly the issue. I am no network expert so I am not the right person to ask, but you need to ensure that UDP traffic can pass through to your container and routing that subnets has caused problems before.
I just wrote a quick C# program, running on my laptop in the same network as the tempest hub and it's receiving the UDP message for the hub, so yeah it's network related. Thank you for your help, on to the Internet to find the answer :)
Do you know how I can bash into the weatherflow2mqtt container? This would certainly help me try to figure out why it's failing from a network standpoint. From a different container within the same network as the weatherflow2mqtt container I can ping the hub's IP address but when I change the WF_HOST environment variable to the hub's IP address, I receive the error "Could not start listening to the UDP Socket. Error is: Could not open a local UDP endpoint"
I think you can find the commands here: https://phase2.github.io/devtools/common-tasks/ssh-into-a-container/
Yeah, I've tried that but "docker exec -it weatherflow2mqtt /bin/bash" fails with:
/bin/bash: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.33' not found (required by /bin/bash) /bin/bash: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.34' not found (required by /bin/bash)
I only install the minimum required files when building the container, and this is obviously not part of that. You could add the missing library to the requirements.txt file and try and build the container your self. When I get back from work, I can send you the build commands if you don't know how to that.
Yes, that would be helpful to provide me with the requirements.txt changes needed to enable a bash shell. I'm still struggling with this. :(
I think I fixed it, the problem was my ubuntu firewall ufw. All I did was: sudo ufw allow 50222/udp
And I started receiving the Hub information, however, the tempest information still isn't being reported but that's because my tempest device is currently reporting it's down. So as soon as it comes back up I should be good to go.
Thank you for your help briis. Sorry it was such a stupid mistake on my part. :)
Glad to hear that 😅 Please close the issue once you're happy it has been resolved.
I ran into the issue where "my local weather" wasn't available in Home Assistant.
Stopping "hass-weatherflow2mqtt", deleting entries in mqtt and starting back fixed the issue!
I used free "MQTT Explorer" to delete the entries. Thanx for documenting this issue and how to fix it.