In some houses, wifi is off during the night. In this time, the HA log gets flooded with exceptions with the result “TimeoutError: [Errno 110] Connection timed out”. Maybe HA will be more robust if these exceptions can be catched.
Well, unless you shut down your router as well:
- Use HA with ethernet
- Don’t use wifi devices: Use Zigbee or EWave
Asking devs to handle disconnected connected homes is placing the expectations a bit high
If your wifi is off during the night (and assuming your not using Z-wave or zigbee) then also shutdown HA to prevent the errors from being logged.
Just because something is logged does not make it a bad thing. I have components that are cloud based (most are not) and I sometimes loose internet for days and I don’t get bothered by any errors. My wifi is always up, and I mean always, I have each router on a UPS just to keep them powered for the 15 seconds it takes my generator to start.
I assume you are turning off wifi to keep others off of it at night. There are other ways to accomplish this. I have internet access shutoff for all my kids devices at 2200 each night and restore at 0600 the next morning; no other devices are effected.
Totally disagree.
The software hit a condition where it can’t do what it was asked to do.
It should log that and move on. Also exactly what it’s doing now.
The only time I would expect it NOT to is if you could configure a period of time for the software where it was supposed to ignore said issue. (that won’t happen)
Otherwise as far as I’m concerned, NOT logging the state would be a defect because it would make troubleshooting near impossible.
Signed, software support professional.
That makes your reasons for posting what looks like a rant quite obscure.
You have a personal use case, you are a dev: Fix the code pertaining to your use-case…
I don’t know which use-case you refers to, apparently not “shutting down router”, so i guess some “time” configuration in the router( Which include all connected devices ) , for some reason … can’t be because night-time is preferable as “Update” time … saving money ? doubtful … preventing kids from “playing around” likely ( thou i think this falls under another category, than software behavior )
… but anyhow, i do believe that most, if not all Routers, have “Parents Control” ( Might be what you refers to ) , or do you have some other kind of automation that “turns off” the routers Wifi signal ? …Routers have (mine have) 2 Time schedule Options, 1: Block ALL, 2: Block individual Devices
… Anyhow i though “Standard” was running Wired, i do, my HA-system is Wired, thou i do have some wifi(Through Router) connected … but i still don’t see your use-case, apparently you also have some wifi device, beside the HA-system(for some reason)
… i can however agree that “some” developers should think about how often/how many Errors they throw… as i’ve noticed some HA-Users tend to “forget” to monitor their system, and don’t regularly “update” the system, before it crashes or runs on it’s knee, and have gigabyte-logfiles … most likely does same persons never look in their logs after they have Updated, Integrated or restarted
I have for many years worked with support, for a self-hosted server software, for larger companies, where 1 company it-engineer constantly reported failures, …1 case was that ( if he pulled out his tp-cable from his laptop, then the “Transaction” (he was in the middle of) towards the server was “Abrupted”) yeah, …And he didn’t get any information about it, not even when he plugged in his laptop again ( and logged in to the “Portal/Software”, and he found that unacceptable for their customers ( not knowing whats going on ) , beside the Transaction was rolled-back on the theirs Servers/DB, without notify him …
I know it’s far from your use-case, im sure you could “reduce” your errors by connecting HA “Wired” , and all other devices capable of running wired, and related to HA , and then consider “Parent Time Control” for specific devices … thou still im not sure which “Houses” with an automation-system, that per automatic have their wifi turned off by night
Repeat messages are useful in troubleshooting. I would want to know if the condition no longer exists. I do not expect it to be filtering. It’s not working as desired.
True, and when … at the same time also that HA should continue trying to “connect” , if an integration is configured to pull/push every minute, or ones in an hour, that be it … if you Know you will get errors(as very obviously in this use-case), it’s a simple task for a developer, to tail-out these (KNOWN) errors, which he cause him self by turning of wifi for his wife-controlled surveillance/automation system
So?
If you’re a software developer, just fork HA’s repository, ‘fix’ what you want, and create a pull request…
But to be honest, this doesn’t require fixing…
- HA should not be run over wifi
- Wifi doesn’t need to be switched off during the night (make access rules if needed)
The forum is not the place for this. You should post this on their github as a request.
No custom component dev is going to look at this thread and do something.
Besides, you provide no info on why the wifi cutout is causing issues.
If i cut my wifi nothing happens to my HA since i dont not have any Wifi devices.
So why is yours doing this?
Does HA not have a feature to stop updates of entities?
If so then an automation that stops them at a certain time and starts them later would solve some of the issues.