Skip to content

Disconnects exactly after one minute and never connects again #31

@juancgalvez

Description

@juancgalvez

I tried with node-red-contrib-sonoff-server and noticed that after exactly one minute the device times out and disconnects.

Then I installed your software and the same thing happens exactly one minute after the device connects for the first time, and never reconnects again.

This is what I get:

SONOFF Server Started On Port 1080
API Server Started On Port 1081
WS | Server is up 192.168.7.118:1443 to ::ffff:192.168.7.108:27428
REQ | WS | DEV | {"userAgent":"device","apikey":"22d634b7-6a4b-4253-be7d-7835fcc213ad","deviceid":"100000xxxx","action":"register","version":2,"romVersion":"1.2.0","model":"ITA-GZ1-GL","ts":206}
INFO | WS | Device 100000xxxx registered
RES | WS | DEV | {"error":0,"deviceid":"100000xxxx","apikey":"111111111-1111-1111-1111-111111111111"}
REQ | WS | DEV | {"userAgent":"device","apikey":"111111111-1111-1111-1111-11111111111","deviceid":"100000xxxx","action":"date"}
RES | WS | DEV | {"error":0,"deviceid":"100000xxxx","apikey":"111111111-1111-1111-1111-111111111111","date":"2018-05-24T21:23:42.314Z"}
REQ | WS | DEV | {"userAgent":"device","apikey":"111111111-1111-1111-1111-11111111111","deviceid":"100000xxxx","action":"update","params":{"switch":"off","fwVersion":"1.2.0"}}
RES | WS | DEV | {"error":0,"deviceid":"100000xxxx","apikey":"111111111-1111-1111-1111-111111111111"}
REQ | WS | DEV | {"userAgent":"device","apikey":"111111111-1111-1111-1111-11111111111","deviceid":"100000xxxx","action":"query","params":["timers"]}
RES | WS | DEV | {"error":0,"deviceid":"100000xxxx","apikey":"111111111-1111-1111-1111-111111111111","params":{}}
Connection closed: connection timed out (408)
Device 100000xxxx disconnected

I replaced my device's last four digits with xxxx.

What could be wrong?

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