Skip to content
This repository was archived by the owner on Sep 4, 2025. It is now read-only.
This repository was archived by the owner on Sep 4, 2025. It is now read-only.

slow response with Version: 1.2.3 #22

@avico78

Description

@avico78

After 2 years with v1.1 I try to upgrade to latest ,
I also update AD to latest .

1.It is much slower (click on telegram --> getting result takes more than 20 sec)
i.e - when i click on "state person " - i see in the log it fetching from HA hundreds of entities not related to person .
very small example from debug:


2022-10-01 11:41:14.768606 INFO TelegramBot: DEBUG: TelegramBot: _get_state_filtered: adding: persistent_notification.notification_114
2022-10-01 11:41:14.787023 INFO TelegramBot: DEBUG: TelegramBot: _get_state_filtered: persistent_notification.notification_115
2022-10-01 11:41:14.819108 INFO TelegramBot: DEBUG: TelegramBot: _get_state_filtered: adding: persistent_notification.notification_115
2022-10-01 11:41:14.845368 INFO TelegramBot: DEBUG: TelegramBot: _get_state_filtered: persistent_notification.notification_116
2022-10-01 11:41:14.857502 INFO TelegramBot: DEBUG: TelegramBot: _get_state_filtered: adding: persistent_notification.notification_116
2022-10-01 11:41:14.866491 INFO TelegramBot: DEBUG: TelegramBot: _get_state_filtered: persistent_notification.notification_117
2022-10-01 11:41:14.886148 INFO TelegramBot: DEBUG: TelegramBot: _get_state_filtered: adding: persistent_notification.notification_117
2022-10-01 11:41:14.925392 INFO TelegramBot: DEBUG: TelegramBot: _get_state_filtered: persistent_notification.notification_118
2022-10-01 11:41:14.947845 INFO TelegramBot: DEBUG: TelegramBot: _get_state_filtered: adding: persistent_notification.notification_118
2022-10-01 11:41:14.960707 INFO TelegramBot: DEBUG: TelegramBot: _get_state_filtered: persistent_notification.notification_119
2022-10-01 11:41:14.976491 INFO TelegramBot: DEBUG: TelegramBot: _get_state_filtered: adding: persistent_notification.notification_119
2022-10-01 11:41:15.039052 INFO TelegramBot: DEBUG: TelegramBot: _get_state_filtered: persistent_notification.notification_120
2022-10-01 11:41:15.075520 INFO TelegramBot: DEBUG: TelegramBot: _get_state_filtered: adding: persistent_notification.notification_120
2022-10-01 11:41:15.091380 INFO TelegramBot: DEBUG: TelegramBot: _get_state_filtered: persistent_notification.notification_121
2022-10-01 11:41:15.105078 INFO TelegramBot: DEBUG: TelegramBot: _get_state_filtered: adding: persistent_notification.notification_121
2022-10-01 11:41:15.139891 INFO TelegramBot: DEBUG: TelegramBot: _get_state_filtered: persistent_notification.notification_122
2022-10-01 11:41:15.201828 INFO TelegramBot: DEBUG: TelegramBot: _get_state_filtered: adding: persistent_notification.notification_122
2022-10-01 11:41:15.257305 INFO TelegramBot: DEBUG: TelegramBot: _get_state_filtered: persistent_notification.notification_123
2022-10-01 11:41:15.268834 INFO TelegramBot: DEBUG: TelegramBot: _get_state_filtered: adding: persistent_notification.notification_123
2022-10-01 11:41:15.290334 INFO TelegramBot: DEBUG: TelegramBot: _get_state_filtered: persistent_notification.notification_124
2022-10-01 11:41:15.300345 INFO TelegramBot: DEBUG: TelegramBot: _get_state_filtered: adding: persistent_notification.notification_124
2022-10-01 11:41:15.335800 INFO TelegramBot: DEBUG: TelegramBot: _get_state_filtered: persistent_notification.notification_125
2022-10-01 11:41:15.361040 INFO TelegramBot: DEBUG: TelegramBot: _get_state_filtered: adding: persistent_notification.notification_125
2022-10-01 11:41:15.400425 INFO TelegramBot: DEBUG: TelegramBot: _get_state_filtered: persistent_notification.notification_126

This not happened with v1.1

i suspect it related with how filtering list working in new version but not sure as i use exactly same configuration in the app.yaml

Actually when click on "get log" or "get error log" it hangs for ~1 min

2.How does the Waze location works?
It doesn't appear in menu and Person location doesn't return with any calculation of routing .

  1. from time to time i see error in the error.log
requests.exceptions.ConnectionError: HTTPConnectionPool(host='192.1.168.113', port=8123): Max retries exceeded with url: /api/error_log (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7aca47bf10>: Failed to establish a new connection: [Errno 110] Operation timed out'))

I see in v1.2.3 there's need to add a token to apps.yaml- where exactly it's needed?
I added the token and ha_url - but keep getting this errors .
I enter to the AD docker and manage to
execute curl - so not sure where this error coming:

from inside the AD docker:

/usr/src/app
curl -X GET -H "Authorization: Bearer MyLongLiveTokenString \
        -H "Content-Type: application/json" \
        http://homeassistant:8123/api/error_log

# getting result successfully 

2022-10-01 11:52:49.706 INFO (MainThread) [homeassistant.components.automation.dahua_vto_all_events] Dahua VTO All Events: Running automation actions
2022-10-01 11:52:49.709 INFO (MainThread) [homeassistant.components.automation.dahua_vto_all_events] Dahua VTO All Events: Executing step call service
2022-10-01 11:52:50.729 INFO (SyncWorker_3) [homeassistant.components.linksys_smart.device_tracker] Checking Linksys Smart Wifi

apps.yaml

TelegramBot:
  module:                   TelegramBot
  class:                    TelegramBot
  debug:                    True
  extend_system:            "binary_sensor.updater"
  filter_blacklist:    
   - "light.dcede305_a5afe582"
   - "light.9c9aec1d_a4871501"
   - "light.45690a88_c9b8dc22"
   - "light.c7f7c676_a53ca2bd" 
   - persistent_notification 

  routing:
    waze:
      region:               IL
      avoid_toll_roads:     True

  hass:
    token: 'sOmeToKeN'
    ha_url: http://192.1.168.113:8123  

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinghelp wantedExtra attention is needed

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions