ciejer / metservice-weather

Metservice New Zealand component for Home Assistant
MIT License
17 stars 0 forks source link

Failed setup, will retry: Data validation error: unexpected character: line 1 column 1 (char 0) #81

Open Greminn opened 1 day ago

Greminn commented 1 day ago

System Health details

System Information

version core-2024.11.2
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.12.4
os_name Linux
os_version 6.6.54-haos
arch x86_64
timezone Pacific/Auckland
config_dir /config
Home Assistant Community Store GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok HACS Data | ok GitHub API Calls Remaining | 5000 Installed Version | 2.0.1 Stage | running Available Repositories | 1460 Downloaded Repositories | 21
Home Assistant Cloud logged_in | true -- | -- subscription_expiration | November 30, 2024 at 1:00 PM relayer_connected | true relayer_region | ap-southeast-1 remote_enabled | true remote_connected | true alexa_enabled | false google_enabled | false cloud_ice_servers_enabled | true remote_server | ap-southeast-1-2.ui.nabu.casa certificate_status | ready instance_id | 8e1e0743226e499f84b963e8948c79ba can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | ok
Home Assistant Supervisor host_os | Home Assistant OS 13.2 -- | -- update_channel | stable supervisor_version | supervisor-2024.11.3 agent_version | 1.6.0 docker_version | 27.2.0 disk_total | 30.8 GB disk_used | 19.4 GB healthy | true supported | true host_connectivity | true supervisor_connectivity | true ntp_synchronized | true virtualization | kvm board | ova supervisor_api | ok version_api | ok installed_addons | File editor (5.8.0), Log Viewer (0.17.1), Home Assistant Google Drive Backup (0.112.1), Z-Wave JS (0.9.0), Mosquitto broker (6.4.1), Samba share (12.3.2), Advanced SSH & Web Terminal (19.0.0), openWakeWord (1.10.0), ESPHome (2024.10.3)
Dashboards dashboards | 5 -- | -- resources | 15 views | 10 mode | storage
Recorder oldest_recorder_run | November 9, 2024 at 5:46 PM -- | -- current_recorder_run | November 16, 2024 at 12:43 PM estimated_db_size | 1332.80 MiB database_engine | sqlite database_version | 3.45.3

Checklist

Describe the issue

Integration is not loading. "Failed setup, will retry: Data validation error: unexpected character: line 1 column 1 (char 0)".

2024-11-18 13:49:29.441 ERROR (MainThread) [custom_components.metservice_weather.coordinator] Data validation error: unexpected character: line 1 column 1 (char 0) 2024-11-18 13:49:29.441 DEBUG (MainThread) [custom_components.metservice_weather.coordinator] Finished fetching WeatherUpdateCoordinator data in 0.229 seconds (success: False)

image

Reproduction steps

1. 2. 3. ...

Debug logs

No response

Diagnostics dump

No response

ssamjh commented 1 day ago

I think the metservice endpoint has changed

ciejer commented 1 day ago

Yeeeep... quite a significant change also. We might be down for a bit, what used to be a single call is now a number of calls.

Suggest swapping to the Mobile API for now, you'll need to delete and readd the integration (any fix will probably require this also) - global key is l7xx2a4b9096debf47acb352d84a6ef39461 (you can retrieve this yourself via fiddler to capture calls from their mobile app)

Greminn commented 1 day ago

Thanks @ciejer for the quick update - have setup with Mobile, and the integration configures. Just FYI, for some reason the clock weather card does not show correctly, looks like we are missing some data? Screenshot shows Met Service at the top and Tomorrow.io at the bottom, debug logs below if that helps in any way.

image

2024-11-18 19:16:31.753 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities weather.metservice are missing or not currently available 2024-11-18 19:16:31.753 ERROR (MainThread) [homeassistant.components.automation.get_daily_weather_forecast] Get Daily Weather Forecast: Error executing script. Error for call_service at pos 1: Service call requested response data but did not match any entities 2024-11-18 19:16:31.753 ERROR (MainThread) [homeassistant.components.automation.get_daily_weather_forecast] Error while executing automation automation.get_daily_weather_forecast: Service call requested response data but did not match any entities 2024-11-18 19:16:31.753 ERROR (MainThread) [homeassistant.components.template.template_entity] TemplateError('ValueError: Template error: as_timestamp got invalid input 'unavailable' when rendering template '{{ as_timestamp(states('sensor.metservice_next_high_tide')) | timestamp_custom('%a %d, %I:%M %p') }}' but no default was specified') while processing template 'Template<template=({{ as_timestamp(states('sensor.metservice_next_high_tide')) | timestamp_custom('%a %d, %I:%M %p') }}) renders=202>' for attribute '_attr_native_value' in entity 'sensor.local_tide_next_high_tide' 2024-11-18 19:16:31.754 ERROR (MainThread) [homeassistant.components.template.template_entity] TemplateError('ValueError: Template error: as_timestamp got invalid input 'unavailable' when rendering template '{{ as_timestamp(states('sensor.metservice_next_low_tide')) | timestamp_custom('%a %d, %I:%M %p') }}' but no default was specified') while processing template 'Template<template=({{ as_timestamp(states('sensor.metservice_next_low_tide')) | timestamp_custom('%a %d, %I:%M %p') }}) renders=200>' for attribute '_attr_native_value' in entity 'sensor.local_tide_next_low_tide' 2024-11-18 19:16:31.868 ERROR (MainThread) [custom_components.samsung_soundbar.api_extension.SoundbarDevice] [samsung_soundbar] Error: _update_woofer exceeded a retry counter of 10 2024-11-18 19:16:32.506 DEBUG (MainThread) [custom_components.metservice_weather.coordinator] Finished fetching WeatherUpdateCoordinator data in 0.759 seconds (success: True) 2024-11-18 19:16:32.523 DEBUG (MainThread) [custom_components.metservice_weather.sensor] Sensor 'Temperature - Feels Like' has no data. 2024-11-18 19:16:32.523 DEBUG (MainThread) [custom_components.metservice_weather.sensor] Sensor 'Temperature - Feels Like' has no attributes data. 2024-11-18 19:16:32.525 DEBUG (MainThread) [custom_components.metservice_weather.sensor] Sensor 'MetService Weather Warnings' has no data. 2024-11-18 19:16:32.525 DEBUG (MainThread) [custom_components.metservice_weather.sensor] Sensor 'MetService Weather Warnings' has no attributes data.