Limych / ha-narodmon

Component to integrate Narodmon cloud into Home Assistant
Other
26 stars 5 forks source link

Ошибки при > 1 локации #128

Closed ildar170975 closed 2 weeks ago

ildar170975 commented 5 months ago

System Health details

System Information

version core-2024.5.3
installation_type Home Assistant Container
dev false
hassio false
docker true
user root
virtualenv false
python_version 3.12.2
os_name Linux
os_version 5.10.0-16-amd64
arch x86_64
timezone Europe/Moscow
config_dir /config
Home Assistant Community Store GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok GitHub API Calls Remaining | 5000 Installed Version | 1.34.0 Stage | running Available Repositories | 1414 Downloaded Repositories | 54 HACS Data | ok
Home Assistant Cloud logged_in | false -- | -- can_reach_cert_server | ok can_reach_cloud_auth | pending can_reach_cloud | ok
Dashboards dashboards | 16 -- | -- resources | 39 views | 465 mode | storage
Recorder oldest_recorder_run | May 5, 2024 at 01:14 -- | -- current_recorder_run | May 15, 2024 at 03:48 estimated_db_size | 550.33 MiB database_engine | sqlite database_version | 3.44.2

Checklist

Describe the issue

Выбрал две локации с несколькими показателями:

изображение

изображение

Код:

narodmon:
  timeout: 120
  verify_ssl: false
  devices:

    - name: Narodmon 1
      latitude: 55.899418
      longitude: 37.619291
      sensors:
        - temperature
        - humidity
        - pressure

    - name: Narodmon 2
      latitude: 55.906041
      longitude: 37.551907
      sensors:
        - temperature
        - pressure

Ошибки при старте HA: 2024-05-15 03:49:25.134 ERROR (MainThread) [custom_components.narodmon] Error fetching information from https://narodmon.com/api - Cannot connect to host narodmon.com:443 ssl:default [None] 2024-05-15 03:49:25.135 ERROR (MainThread) [custom_components.narodmon] Error fetching narodmon data: 2024-05-15 03:53:47.153 ERROR (MainThread) [custom_components.narodmon] Error fetching narodmon data:

Результат:

изображение

Иногда удается получить значения, но в большинстве случаев данные unavailable.

Reproduction steps

см. выше

Debug logs

см. выше

Diagnostics dump

No response

Limych commented 2 weeks ago

It's API bug — not an integration bug.