Git Product home page Git Product logo

Comments (8)

phallows avatar phallows commented on July 21, 2024 2

Looking into this a bit more, I can see a couple of possibilities. It might be failing on "initial connection", which would be related to SetConnectRetry (default false). Or it might be failing because it is writing during a suspend, which would be related to SetWriteTimeout (default no timeout).
I'm going to deploy these settings to machines for a few days and see if it makes a noticeable difference.

from ha-mqtt-iot.

W-Floyd avatar W-Floyd commented on July 21, 2024

I can reproduce the error message putting my computer to sleep, but it reconnects in some way. Perhaps I need to leave it asleep longer. Were there any more messages? How long did you leave it after resuming? There should be a 30-second keep-alive, perhaps we can try reducing that.

from ha-mqtt-iot.

pa-sowa avatar pa-sowa commented on July 21, 2024

It happens every time I put the computer to sleep for a longer time (ie. a few hours). It doesn't reconnect, neither within 30 seconds nor when I wait 30 minutes. There are no other messages in the log.

from ha-mqtt-iot.

W-Floyd avatar W-Floyd commented on July 21, 2024

Okay, thanks for the info. I'll see what I can do, started a new job last week so time is short.

from ha-mqtt-iot.

W-Floyd avatar W-Floyd commented on July 21, 2024

Sorry for not taking more of a look at this - I expect it might just be a matter of checking for a connection occasionally, and reconnecting if it goes down. If anyone wants to take a stab at it and make a PR, I'd be happy to see it.

Frankly, I haven't set this software up again since moving for my job, though I will in future. Until it bothers me, it'll probably keep being pushed down the line 😢

from ha-mqtt-iot.

dev-foo-bar avatar dev-foo-bar commented on July 21, 2024

May be a workaround. If you can implement an exit code we can use systemd to do the magic (simple restart).

from ha-mqtt-iot.

W-Floyd avatar W-Floyd commented on July 21, 2024

How did this go @phallows ?

from ha-mqtt-iot.

phallows avatar phallows commented on July 21, 2024

It seems to be working quite well, but I've got an issue with an unrelated part of my process that makes it hard to verify. I think its probably worth a PR so that others can test, I'll submit that as soon as I can

from ha-mqtt-iot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.