Comments (7)
i have absolutely no idea how this can happen. i'm also pretty sure it is not related to the fhem plugin.
please verify in the logs:
- do device serial numbers stay the same?
- are there any other messages that look strange?
was there any update ?
from homebridge-fhem.
Serial numbers do not change.
I regularly update homebridge and the plugins, so yes, there were updates.
Today I updated the homebridge docker version to 1.3.4 and will check the behavior the next few days.
If it's still not working I will have to disable some other plugins to check the mutual influence.
from homebridge-fhem.
It happened again. After container restart all the fhem devices are gone. I restarted homebridge from the webgui and everything is back now.
Seems to be a difference if one restarts the whole docker container or just restart from inside homebridge.
I disabled the plugin "homebridge-fritz" because it's the only plugin which gives me errors in the log to see if this helps.
from homebridge-fhem.
Disabling the plugin "homebridge-fritz" didn't make any difference. After restarting the homebridge container my fhem devices are gone again.
But I think I now narrowed it down now.
My backupscript stops all docker containers to enable a consistent backup.
It seem like there passes too much time between starting homebridge and FHEM.
The homebridge log states:
[4/18/2021, 4:38:21 AM] [FHEM] longpoll error: Error: connect ECONNREFUSED 192.168.178.222:8083, retrys exhausted
And after this entry it doesn't try to connect to FHEM again.
I changed the order in which the containers will be restarted, positioning the start auf homebridge after FHEM.
This should do the trick.
@justme-1968 What is your timeout setting until the plugin stops to connect to FHEM? In my case the FHEM container is stopped at 4:30 and obviously after 8:21 minutes the plugin stops to retry the connection.
from homebridge-fhem.
good that you found it. there is no timeout if the connection had been established once. then the plugin will try indefinitely again. this woks without blocking homebridge.
but i had to make a change to the first connection attempt after startup as the homebridge config gut requirements say that a plugin is not allowed to block the homebridge startup. as the first gathering of fhem devices can not be done in the background as the fhem plugin uses the non dynamic api. so i had to limit the retries to a 20 second timeout. this applies only to the first connection after a restart.
if you keep the order so that fhem is started before homebridge this should never be a problem.
from homebridge-fhem.
@LightningRhino: also i have just added a "neverTimeout": true option to the config file that you can set. but keep in mind that this will block homebridge.
from homebridge-fhem.
Great. Thank you. When now everything is working I don't think I will need this. But good to know.
from homebridge-fhem.
Related Issues (20)
- Different names for multiple switches (subtypes)? HOT 3
- warning from the characteristic 'Saturation' HOT 17
- Installation procedure failure (version 0.5.29) HOT 2
- Homebridge-fhem Problem mit fhem Zugriff. HOT 4
- No reconnect after FHEM Server restart HOT 2
- homebridge-fhem with Homebridge 1.3.x does not work (for me) HOT 4
- Thermostat's dont't work anymore HOT 3
- longpoll error HOT 13
- No response with Mac OS Monterey HOT 1
- Status der Geräte updated nach einiger Zeit nicht mehr HOT 2
- This plugin slows down Homebridge. The read handler for the characteristic 'Current Relative Humidity' was slow to respond HOT 1
- Homebridge sometimes does not start with homebridge-fhem plugin active HOT 8
- Plugin settings in Homebridge UI overwrite manually created configuration HOT 3
- Option to reduce log output HOT 1
- Device state update is not working HOT 14
- For ProgrammableSwitchEvent the nocache=1 dosent work HOT 6
- History Type Energy not working HOT 1
- HMCCU-Geräte werden bei best. Konstellationen vergessen und später als neue Geräte wieder hinzugefügt HOT 1
- Thermostat übergeben OHNE Cooling/AUTO Funktion HOT 2
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 homebridge-fhem.