Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add debug information for issue with getting hass from the gateway #259

Merged
merged 4 commits into from
Aug 15, 2024

Conversation

mdeweerd
Copy link
Owner

No description provided.

@mdeweerd mdeweerd merged commit 5221f32 into main Aug 15, 2024
8 checks passed
@zziibb
Copy link

zziibb commented Oct 8, 2024

Hello everyone,

Does not know if this helps but I am encountering errors with the following code running in zha_toolkit v1.1.21 / HA 2024.10 :

action: zha_toolkit.attr_read
data:
  ieee: sensor.capteur_teleinfo_courant
  cluster: 65382
  attribute: 512
  manf: 16721
  use_cache: false
  event_done: zha_done
  state_id: sensor.capteur_teleinfo_ltarf
  allow_create: true

Here is the error :

Exécuté : 8 octobre 2024 à 10:33:59
Erreur : Could not get hass from <zha.application.gateway.Gateway object at 0x7f0ab78ec500>.Attributes available ['__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getstate__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_async_device_joined', '_async_device_rejoined', '_async_initialize', '_await_and_log_pending', '_background_tasks', '_cancel_cancellable_timers', '_device_availability_checker', '_device_init_tasks', '_devices', '_emit_group_gateway_message', '_event_tasks', '_find_coordinator_device', '_global_listeners', '_groups', '_handle_event_protocol', '_listeners', '_reload_task', '_tracked_completable_tasks', '_untracked_background_tasks', 'application_controller', 'async_add_executor_job', 'async_add_zha_job', 'async_block_till_done', 'async_create_background_task', 'async_create_task', 'async_create_zigpy_group', 'async_device_initialized', 'async_fetch_updated_state_mains', 'async_from_config', 'async_initialize', 'async_initialize_devices_and_entities', 'async_remove_device', 'async_remove_zigpy_group', 'async_run_zha_job', 'async_update_device', 'config', 'connection_lost', 'coordinator_zha_device', 'create_platform_entities', 'create_task', 'device_initialized', 'device_joined', 'device_left', 'device_removed', 'devices', 'emit', 'get_application_controller_data', 'get_device', 'get_group', 'get_or_create_device', 'get_or_create_group', 'global_updater', 'group_added', 'group_member_added', 'group_member_removed', 'group_removed', 'groups', 'handle_message', 'load_devices', 'load_groups', 'loop', 'on_all_events', 'on_event', 'once', 'radio_concurrency', 'radio_type', 'raw_device_initialized', 'shutdown', 'shutting_down', 'state', 'track_task'].
Résultat :
params:
  domain: zha_toolkit
  service: attr_read
  service_data:
    ieee: sensor.capteur_teleinfo_courant
    cluster: 65382
    attribute: 512
    manf: 16721
    use_cache: false
    event_done: zha_done
    state_id: sensor.capteur_teleinfo_ltarf
    allow_create: true
  target: {}
running_script: false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants