tlskinneriv / hassio-addons

MIT License
8 stars 3 forks source link

stops receiving data #18

Open ksullivan86 opened 6 days ago

ksullivan86 commented 6 days ago

I have the add on installed with hasOS but the add on only works for limited time. Of I look in the looks I don’t see any kind of error, when it stops receiving data the logs just stop even if I have it set as debug. The only solution is to restart the add on and it works again for maybe a couple hours. I have the ws-5000. Also thanks for making this, as far as I can see it’s the only answer to get local info from ambient weather stations.

Also FYI I have everything up to date in HA

DeFlanko commented 6 days ago

Came here to report the same, restart the add-on, then refresh the device.... starts to work again -- stopped receiving new data 2 days ago.

AWNET to HASS Current version: 1.1.2

Core 2024.10.1 Supervisor 2024.10.0 Operating System 13.1 Frontend 20241002.2

Ambient Weather Local 1.2.0 Device info: Weather Station WS-2902 by Ambient Weather Firmware: AMBWeatherPro_V5.1.5

tlskinneriv commented 6 days ago

Apologies, I didn't intend to ghost the first raising of this issue.

Have either of you tried to configure the MAC Address Override setting referenced in the docs? Past issues of devices dropping off have been from an Ambient Weather update for the device that changes the way the information is sent.

If you have already tried this, please include log information from both the addon and the integration with debug logging enabled.

DeFlanko commented 6 days ago

Yes nothing has changed for me since the last issue I opened, that was one of the first things I checked!

On Tue, Oct 8, 2024, 3:34 PM tlskinneriv @.***> wrote:

Apologies, I didn't intend to ghost the first raising of this issue.

Have either of you tried to configure the MAC Address Override setting referenced in the docs https://github.com/tlskinneriv/hassio-addons/blob/master/awnet%2FDOCS.md? Past issues of devices dropping off have been from an Ambient Weather update for the device that changes the way the information is sent.

If you have already tried this, please include log information from both the addon and the integration with debug logging enabled.

— Reply to this email directly, view it on GitHub https://github.com/tlskinneriv/hassio-addons/issues/18#issuecomment-2400935167, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABH52MPCOLZFG2UCXJM36ATZ2RMYNAVCNFSM6AAAAABPS5Z656VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBQHEZTKMJWG4 . You are receiving this because you commented.Message ID: @.***>

ksullivan86 commented 6 days ago

I was not using the mac override setting as it is clearly getting the mac but I have now added the mac in just incase. It seems like this has been an issue the whole time, I just looked at the history and it seems the addon was only working after HA restarting. I should note currently after a reboot it only seems to last for a few hours, last restart was 3 hours 5 min until it stopped receiving data. I added a my history data you can see its a bit all over the place with timing. Screenshot (253) Outside and Inside temps.csv

With the temp history you can see when it fails where the data is a straight line and the logs jump to when it was next working.

Is there a way to increase the update rate, my ws-5000 can sync every 17 secs. It would be cool to have the data locally, I know data on AWN highs and lows along with wind can be off from the base station because as far as I can tell it only updates every 5 min.

On a side note it could be useful if you add a discussions area for this git, id imigne with more info more people would use this, I know many people day you cant get local ambient weather info but they are clearly wrong.

tlskinneriv commented 6 days ago

I was not using the mac override setting as it is clearly getting the mac but I have now added the mac in just incase. It seems like this has been an issue the whole time, I just looked at the history and it seems the addon was only working after HA restarting. I should note currently after a reboot it only seems to last for a few hours, last restart was 3 hours 5 min until it stopped receiving data. I added a my history data you can see its a bit all over the place with timing. Screenshot (253) Outside and Inside temps.csv

Thanks for checking the MAC setting. After reading the report more in depth this seems like a potential connectivity or process termination problem.

With the temp history you can see when it fails where the data is a straight line and the logs jump to when it was next working.

Yep, definitely doesn't look regular. If possible, could you collect logs from both the addon and integration when it stops reporting? It would be beneficial for troubleshooting to know what is happening then. Also, could you provide your exact version information for HA and other components like @DeFlanko did, please? I am on 2024.9.3 and have not upgraded to 2024.10 yet. I'm wondering if the issue is update related or not. I don't have evidence of this happening on my setup (HA OS in a VM).

Is there a way to increase the update rate, my ws-5000 can sync every 17 secs. It would be cool to have the data locally, I know data on AWN highs and lows along with wind can be off from the base station because as far as I can tell it only updates every 5 min.

The minimum time between data updates seems to be 16 seconds based on the last time I used the app. The addon and integration handle this just fine in my environment.

On a side note it could be useful if you add a discussions area for this git, id imigne with more info more people would use this, I know many people day you cant get local ambient weather info but they are clearly wrong.

I will investigate this and see if I can get something useful set up.

DeFlanko commented 6 days ago

i have my HAOS on a vmware vm too.

DeFlanko commented 6 days ago

@ksullivan86

Is there a way to increase the update rate, my ws-5000 can sync every 17 secs. It would be cool to have the data locally, I know data on AWN highs and lows along with wind can be off from the base station because as far as I can tell it only updates every 5 min.

When you login to the web portal of your weather station... What are your settings here: image

Data does show up every min, but dashboards only ever show in increments of 5 mins. (i hate it too...)

@tlskinneriv -- looks to be 5 1/2 hours before something gives -- looking for logs now. image

DeFlanko commented 6 days ago

8d3f9d88_awnet_to_hass_2024-10-09T01-57-10.350Z.log

From Core, search for "Ambient"

This error originated from a custom integration.

Logger: custom_components.awnet_local.helpers_calc
Source: custom_components/awnet_local/helpers_calc.py:387
integration: Ambient Weather Local (documentation, issues)
First occurred: 12:13:24 PM (620 occurrences)
Last logged: 5:27:35 PM

Failed to convert timestamp "None" to datetime: time data 'None' does not match format '%Y-%m-%d %H:%M:%S'
DeFlanko commented 5 days ago

I'm not sure if its relevant or not... just an observation right now... when troubleshooting this yesterday i noticed the Host machine needing Windows updates. i did apply them which then required a reboot (around this time), on startup I have the VM auto launch from a Windows Scheduled Task. so far no drops -- will keep an eye on it.

image

@ksullivan86 What's your HA setup like? are you too running a VM where the host machine is Windows?

ksullivan86 commented 3 days ago

I'm running on a pi4. Are you saying you are running HA from windows via something like vmware? That can't be a very stable setup.

ksullivan86 commented 3 days ago

Its odd after saying the logs/ data stop after a few hours it went over 24hrs until it stopped receiving data. I am on: AWNET to HASS Current version: 1.1.2

Core 2024.10.2 Supervisor 2024.10.0 Operating System 13.1 Frontend 20241002.3

I did just as I type upgrade core from 24.10.1 to the current 24.10.2

also I am currently trying to the weather station to 5.1.5 from 5.1.1 but its being difficult... ill let you know if the updates changed anything. As for logs its hard because by the time I see its stopped working its been many hours but ill will try

DeFlanko commented 3 days ago

I'm running on a pi4. Are you saying you are running HA from windows via something like vmware? That can't be a very stable setup.

its a nice VM that HA Offers to just turn on and go... with 6 cores, and 8 GB Ram and storage of a expandable 40GB allowing for a lot of add-on flexibility when it comes to running Zigbee and an LTR-SDR radio on top of other things -- which are easily passed through from the Host machine in the VDMX file based on VID & PID.

this host machine is a intel 13 gen i9, 64 gb ram and plenty of nvme diskspace -- which is also running my CCTV app, CodeProjects.AI instance, and in the future a Minecraft server lol .

ksullivan86 commented 3 days ago

check out the log, the timing jumps around like crazy and I have it set to every 60 seconds. Also I am assuming the second time stamp is the lease time or something similar. AWNET to HASS log.txt

ksullivan86 commented 3 days ago

I'm running on a pi4. Are you saying you are running HA from windows via something like vmware? That can't be a very stable setup.

its a nice VM that HA Offers to just turn on and go... with 6 cores, and 8 GB Ram and storage of a expandable 40GB allowing for a lot of add-on flexibility when it comes to running Zigbee and an LTR-SDR radio on top of other things -- which are easily passed through from the Host machine in the VDMX file based on VID & PID.

this host machine is a intel 13 gen i9, 64 gb ram and plenty of nvme diskspace -- which is also running my CCTV app, CodeProjects.AI instance, and in the future a Minecraft server lol .

why not just run proxmox? it would be better setup that running on top of windows, you can just do a windows vm or if you have to have bare metal windows(gaming) you can dual boot to windows when you have to.

DeFlanko commented 2 days ago

Mainly because the CCTV software only runs in Windows.

ksullivan86 commented 2 days ago

Mainly because the CCTV software only runs in Windows.

are you running blue iris? If I was you I would look into proxmox, if you have experience with vms it's really not that big of a learning curve to get going...specially with all the easy to follow youtube videos. I made the jump from windows to proxmox for hosting and it has been a more stable setup, I regret not doing it sooner. For example you can update and restart windows without taking down home assistant. Jim's garage has a some good content.

on another note how did you update your console to 5.1.5? I keep getting an error that I am guessing is related to ambient weathers servers. You posted a screenshot and its updated to 5.1.5, I am stuck at 5.1.1 and I am wondering if this could be part of my problem.

DeFlanko commented 2 days ago

on another note how did you update your console to 5.1.5? I keep getting an error that I am guessing is related to ambient weathers servers. You posted a screenshot and its updated to 5.1.5, I am stuck at 5.1.1 and I am wondering if this could be part of my problem.

I think it came with it.... or clicking the upgrade button worked at one point? i did just find the link to sign up for the firmware updates.