tlskinneriv / awnet_local

Enables local support for Ambient Weather personal weather stations.
28 stars 5 forks source link

MAC address not in correct format #50

Closed Scoop2389 closed 4 months ago

Scoop2389 commented 4 months ago

Integration Version: 1.2.0 Home Assistant Version: 2024.5.5 Describe the bug Log is getting spammed with an error message saying the MAC address is not in the correct format after updating my weather station's firmware to the latest (V5.1.5).

I would provide more detail about this bug as it stops my usage of the integration, but I feel it probably isn't the best idea to share my mac address publicly.

To Reproduce Steps to reproduce the behavior:

  1. Update weather station (using awnet app or by going to the ipaddress of your station in a web browser)
  2. Data no longer updating
  3. Look at logs, see error

Additional context The new "PASSKEY" after the update follows the format of XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX, meaning that it is 32 characters long with no punctuation or spaces.

ADDON DEBUG LOGS:

[2024-06-06 15:53:13,480] [INFO    ] Sent {"PASSKEY": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "stationtype": "AMBWeatherPro_V5.1.5", "dateutc": "2024-06-06 19:53:12", "tempf": "82.4", "humidity": "68", "windspeedmph": "2.46", "windgustmph": "5.82", "maxdailygust": "5.82", "winddir": "314", "winddir_avg10m": "105", "uv": "1", "solarradiation": "131.29", "hourlyrainin": "0.000", "eventrainin": "0.102", "dailyrainin": "0.102", "weeklyrainin": "0.130", "monthlyrainin": "0.130", "yearlyrainin": "22.039", "battout": "1", "tempinf": "75.6", "humidityin": "51", "baromrelin": "29.781", "baromabsin": "28.709", "battin": "1", "pm25": "9.0", "pm25_24h": "9.7", "aqi_pm25": "38", "aqi_pm25_24h": "40", "batt_25": "1", "soilhum1": "0", "battsm1": "1", "soilhum2": "13", "battsm2": "1", "lightning_day": "2", "lightning_time": "1717647219", "lightning_distance": "27", "batt_lightning": "0", "pm_in_temp_aqin": "71.8", "pm_in_humidity_aqin": "60", "pm10_in_aqin": "2.1", "pm10_in_24h_aqin": "2.0", "pm25_in_aqin": "2.1", "pm25_in_24h_aqin": "1.8", "co2_in_aqin": "727", "co2_in_24h_aqin": "700", "aqi_pm25_aqin": "9", "aqi_pm25_24h_aqin": "8", "batt_co2": "1"} (awnet.py:53)
[2024-06-06 15:53:13,481] [DEBUG   ] Valid Request (awnet.py:97)
[2024-06-06 15:53:13,481] [INFO    ] "GET ?&PASSKEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&stationtype=AMBWeatherPro_V5.1.5&dateutc=2024-06-06+19:53:12&tempf=82.4&humidity=68&windspeedmph=2.46&windgustmph=5.82&maxdailygust=5.82&winddir=314&winddir_avg10m=105&uv=1&solarradiation=131.29&hourlyrainin=0.000&eventrainin=0.102&dailyrainin=0.102&weeklyrainin=0.130&monthlyrainin=0.130&yearlyrainin=22.039&battout=1&tempinf=75.6&humidityin=51&baromrelin=29.781&baromabsin=28.709&battin=1&pm25=9.0&pm25_24h=9.7&aqi_pm25=38&aqi_pm25_24h=40&batt_25=1&soilhum1=0&battsm1=1&soilhum2=13&battsm2=1&lightning_day=2&lightning_time=1717647219&lightning_distance=27&batt_lightning=0&pm_in_temp_aqin=71.8&pm_in_humidity_aqin=60&pm10_in_aqin=2.1&pm10_in_24h_aqin=2.0&pm25_in_aqin=2.1&pm25_in_24h_aqin=1.8&co2_in_aqin=727&co2_in_24h_aqin=700&aqi_pm25_aqin=9&aqi_pm25_24h_aqin=8&batt_co2=1 HTTP/1.1" 200 0 (awnet.py:147)

INTEGRATION DEBUG LOGS:

2024-06-06 15:58:52.863 ERROR (MainThread) [custom_components.awnet_local] MAC address not in correct format. Parsed MAC: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX. Expected formats: 000000000000, 00:00:00:00:00:00, 00-00-00-00-00-00 or 0000.0000.0000
2024-06-06 15:59:09.879 ERROR (MainThread) [custom_components.awnet_local] MAC address not in correct format. Parsed MAC: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX. Expected formats: 000000000000, 00:00:00:00:00:00, 00-00-00-00-00-00 or 0000.0000.0000
2024-06-06 15:59:26.862 ERROR (MainThread) [custom_components.awnet_local] MAC address not in correct format. Parsed MAC: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX. Expected formats: 000000000000, 00:00:00:00:00:00, 00-00-00-00-00-00 or 0000.0000.0000
2024-06-06 15:59:43.876 ERROR (MainThread) [custom_components.awnet_local] MAC address not in correct format. Parsed MAC: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX. Expected formats: 000000000000, 00:00:00:00:00:00, 00-00-00-00-00-00 or 0000.0000.0000
2024-06-06 16:00:00.868 ERROR (MainThread) [custom_components.awnet_local] MAC address not in correct format. Parsed MAC: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX. Expected formats: 000000000000, 00:00:00:00:00:00, 00-00-00-00-00-00 or 0000.0000.0000
2024-06-06 16:00:18.115 ERROR (MainThread) [custom_components.awnet_local] MAC address not in correct format. Parsed MAC: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX. Expected formats: 000000000000, 00:00:00:00:00:00, 00-00-00-00-00-00 or 0000.0000.0000
2024-06-06 16:00:34.868 ERROR (MainThread) [custom_components.awnet_local] MAC address not in correct format. Parsed MAC: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX. Expected formats: 000000000000, 00:00:00:00:00:00, 00-00-00-00-00-00 or 0000.0000.0000
2024-06-06 16:00:51.889 ERROR (MainThread) [custom_components.awnet_local] MAC address not in correct format. Parsed MAC: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX. Expected formats: 000000000000, 00:00:00:00:00:00, 00-00-00-00-00-00 or 0000.0000.0000
2024-06-06 16:01:08.875 ERROR (MainThread) [custom_components.awnet_local] MAC address not in correct format. Parsed MAC: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX. Expected formats: 000000000000, 00:00:00:00:00:00, 00-00-00-00-00-00 or 0000.0000.0000
2024-06-06 16:01:25.890 ERROR (MainThread) [custom_components.awnet_local] MAC address not in correct format. Parsed MAC: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX. Expected formats: 000000000000, 00:00:00:00:00:00, 00-00-00-00-00-00 or 0000.0000.0000
2024-06-06 16:01:42.891 ERROR (MainThread) [custom_components.awnet_local] MAC address not in correct format. Parsed MAC: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX. Expected formats: 000000000000, 00:00:00:00:00:00, 00-00-00-00-00-00 or 0000.0000.0000
2024-06-06 16:01:59.889 ERROR (MainThread) [custom_components.awnet_local] MAC address not in correct format. Parsed MAC: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX. Expected formats: 000000000000, 00:00:00:00:00:00, 00-00-00-00-00-00 or 0000.0000.0000
2024-06-06 16:02:16.889 DEBUG (MainThread) [custom_components.awnet_local] Called async_handle_update with <ServiceCall awnet_local.update (c:01HZQJA65SXD10RAKW05J43173): PASSKEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX, stationtype=AMBWeatherPro_V5.1.5, dateutc=2024-06-06 20:02:16, tempf=82.6, humidity=69, windspeedmph=0.00, windgustmph=2.24, maxdailygust=6.93, winddir=41, winddir_avg10m=71, uv=0, solarradiation=59.47, hourlyrainin=0.000, eventrainin=0.102, dailyrainin=0.102, weeklyrainin=0.130, monthlyrainin=0.130, yearlyrainin=22.039, battout=1, tempinf=75.4, humidityin=50, baromrelin=29.775, baromabsin=28.703, battin=1, pm25=9.0, pm25_24h=9.7, aqi_pm25=38, aqi_pm25_24h=40, batt_25=1, soilhum1=0, battsm1=1, soilhum2=13, battsm2=1, lightning_day=2, lightning_time=1717647219, lightning_distance=27, batt_lightning=0, pm_in_temp_aqin=72.0, pm_in_humidity_aqin=61, pm10_in_aqin=2.2, pm10_in_24h_aqin=2.0, pm25_in_aqin=2.0, pm25_in_24h_aqin=1.8, co2_in_aqin=720, co2_in_24h_aqin=701, aqi_pm25_aqin=8, aqi_pm25_24h_aqin=8, batt_co2=1>
2024-06-06 16:02:16.890 ERROR (MainThread) [custom_components.awnet_local] MAC address not in correct format. Parsed MAC: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX. Expected formats: 000000000000, 00:00:00:00:00:00, 00-00-00-00-00-00 or 0000.0000.0000
tlskinneriv commented 4 months ago

See #49 and #42.

Scoop2389 commented 4 months ago

Oh, I feel so dumb for not checking the closed issues first. Thanks so much!