Skip to content

Unexplained 'disconnect due to inactivity' Redux #113

@bj-github

Description

@bj-github

Re #27 , #95 : I seem to get the Status=1000: 'disconnected due to inactivity.' when I send an ON/OFF state change request to my "TRETAKT Smart plug" (V "1", Firmware "2.4.4"). In addition to seeing an on_pong event every minute, I also tried adding an explicit

dirigera_hub.get( route = "/route/<gatewayId>" )

query of the "DIRIGERA Hub for smart products" (V "P2.5", Firmware "2.815.2") at regular intervals inside the on_pong handler.. That doesn't seem to stop this, regardless of how close to the ON/OFF trigger it occurs.

The problem for me is that having the Hub drop out at that time means I don't see the outlet's state change event. The "close" happens before it, and it's gone by the time the SystemD restarts my gateway monitoring service. (For now I resort to sending a "current state" notification during that restart.)

Hoping that this extra data point might help you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions