Comments (8)
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.
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.
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.
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.
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.
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.
How did this go @phallows ?
from ha-mqtt-iot.
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)
- Support SSL
- Check all device types for documentation quirks
- Validate scripts on multiple Desktop Environments and Display Servers
- system.sh needs sysstat package
- system.sh CPU usage does not update
- Add `update` MQTT type
- `Viadevice`/`viadevice` should instead be `ViaDevice`/`via_device`
- Default logging settings precludes logging errors when loading config.
- `camera_sensor.sh` not accurate when using Wireplumber and/or Pipewire. HOT 4
- Ensure all scripts are desktop agnostic HOT 1
- Use correct MQTT logger
- Add `text` entity type
- Program fails if `/etc/machine-id` is not available HOT 1
- Allow re-using program output in multiple devices
- Allow hot reloading the config file. HOT 1
- Bring back automatic device generation
- Code generation is broken
- Updates needed before 2024.2.0 HOT 2
- Looking for maintenance/help
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ha-mqtt-iot.