Limych / ha-narodmon

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

No sensor data is present from some of the sensors #62

Closed cornyJokeHere closed 2 years ago

cornyJokeHere commented 2 years ago

Environment

Describe the bug

Some sensors work and provide data, and some don't. Tried rebooting the system, updating everything, reinstalling Narodmon component, reissuing the API key from Narodmon.

Screenshot 2022-02-15 at 16 11 27

Screenshot 2022-02-15 at 16 13 11

Configuration.yaml


# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:

# Text to speech
tts:
  - platform: google_translate

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

narodmon:
  apikey: #############
  devices:
    - name: "Narodmon"

input_select:
  # Xiaomi Air Purifier 2S
  xiaomi_airpurifier_mode:
    name: Mode
    options:
      - Auto
      - Silent
      - Favorite
    icon: "mdi:animation-outline"

logger:
  default: info
  logs:
    hacs: debug
    custom_components.hacs: debug
    queueman: debug
    aiogithubapi: debug
    custom_component.narodmon: debug

frontend:
  themes: !include_dir_merge_named themes

Steps to Reproduce

Install Narodmon component, try to read the data from sensors

Expected behavior

Sensors data is present

Debug log

home-assistant.log

Additional context

Limych commented 2 years ago

Yes, there is. But this is not a bug, but a consequence of the fact that the Narodmon administration recently introduced limits on requests for other people's sensors. I am currently working on a solution to this problem. How quickly it will turn out - I can not say.

As a temporary solution, you can contact the Narodmon administration and ask to increase the limits for you personally. For detailed instructions, see their website under Profile > My Apps.

Limych commented 2 years ago

New beta version with fix of this problem: https://github.com/Limych/ha-narodmon/tree/feature/v2.0 (only manual installation yet)

cornyJokeHere commented 2 years ago

Hi, thanks for your reply. Tried installing the beta, now I see this in the logs:

2022-02-20 18:16:47 ERROR (MainThread) [custom_components.narodmon] Error fetching narodmon data: 2022-02-20 18:16:59 ERROR (MainThread) [custom_components.narodmon] [403] Неверный ключ 2022-02-20 18:16:59 ERROR (MainThread) [custom_components.narodmon] Error fetching narodmon data: 2022-02-20 18:17:20 ERROR (MainThread) [custom_components.narodmon] [403] Неверный ключ

Screenshot 2022-02-20 at 19 10 17 Screenshot 2022-02-20 at 19 10 43

Limych commented 2 years ago

UPD. I found an error. I'm trying to fix it.

Limych commented 2 years ago

Fixed

Limych commented 2 years ago

Code are merged to main branch and second beta is published: https://github.com/Limych/ha-narodmon/releases

Limych commented 2 years ago

Published v2.0.0