Skip to content

Integration loosing my callback methods after some time #17

@wojciechczyz

Description

@wojciechczyz

The problem

After few days my Home Assistant suddenly "looses" callbacks that were exposed by net-daemon intergration.
I am exposing 4 methods such as:

[HomeAssistantServiceCall]
public async Task OpenDoor1(dynamic data)
{...}

they are working happilly dozen of times for few days and then they simply disappear.
When trying to call them from my scripts I get:

Service not found for call_service at pos 1: Unable to find service netdaemon.mutuumairlockapp_opendoor1

When going to:
Developer tools > Services

I stiill see:
NetDaemon - Entity_Create
NetDaemon - Entity_Remove
NetDaemon - Entity_update
NetDaemon - register_service
NetDaemon - reload_apps

but my callbacks are gone.

Restarting NetDaemon docker container solves problem, till next time it occurs.

System health

System Health

version core-2021.5.0
installation_type Home Assistant Container
dev false
hassio false
docker true
virtualenv false
python_version 3.8.9
os_name Linux
os_version 4.19.118
arch aarch64
timezone Europe/Madrid
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Lovelace
dashboards 1
resources 0
views 1
mode yaml

Traceback/Error logs

Additional information

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions