Skip to content

Websocket to Camect Home was closed #5

Description

@epleypa

Getting lots of repeat websocket errors related to init.py

/usr/local/lib/python3.7/site-packages/camect/init.py
WARNING (Thread-3) [camect] Websocket to Camect Home was closed.

Connection looks like it gets successfully established and then shutoff by Camect after loading. Logs below when connection is working:

2020-01-02 21:39:49 INFO (Thread-3) [camect] Connecting to Camect Home at 'wss://192.168.1.253:443/api/event_ws' ...
2020-01-02 21:39:50 DEBUG (Thread-3) [websockets.protocol] client - state = CONNECTING
2020-01-02 21:39:50 DEBUG (Thread-3) [websockets.protocol] client - event = connection_made(<asyncio.sslproto._SSLProtocolTransport object at 0x71a8b210>)
2020-01-02 21:39:50 DEBUG (Thread-3) [websockets.protocol] client - state = OPEN
2020-01-02 21:39:52 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=camect, service=change_op_mode>
2020-01-02 21:40:01 INFO (MainThread) [homeassistant.setup] Setup of domain camect took 12.0 seconds.
2020-01-02 21:40:01 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=camect>
2020-01-02 21:40:09 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event platform_discovered[L]: service=load_platform.camera, platform=camect, discovered=['REDACTED', 'REDACTED', 'REDACTED']>
2020-01-02 21:40:09 INFO (MainThread) [homeassistant.components.camera] Setting up camera.camect
2020-01-02 21:40:12 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=REDACTED
2020-01-02 21:40:35 DEBUG (Thread-3) [websockets.protocol] client ! failing WebSocket connection: 1006 
2020-01-02 21:40:35 DEBUG (Thread-3) [websockets.protocol] client x closing TCP connection
2020-01-02 21:40:35 WARNING (Thread-3) [camect] Websocket to Camect Home was closed.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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