Comments (5)
I think raising the log level to INFO (which should be the default) is enough to prevent flooding your logs. IMO the binding is behaving correctly here: the connection is broken for at least three retries, i.e. at least 30s. If this is timespan is increased, you'll probably experience issues with proper response from the device.
from addons.
The log level was only at TRACE whilst I investigated why the switches were dropping OFFLINE intermittently. It is back at DEFAULT now. I agree that increasing the number of pings is probably a bad idea. I need to find out the root cause of why they are dropping off the network for > 30 seconds.
Regarding the other issue Connection reset by peer
(perhaps I shouldn't have combined them in the one post) - given the device is re-discovered within 0.056 seconds (in this example), would it make sense for the binding to at least have one go at reconnecting before taking the device OFFLINE? Would that be possible and is it a good idea?
from addons.
Iām seeing the same things with a Tuya device:
2022-07-24 14:47:23.152 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'tuya:tuyaDevice:800061668caab5005de9' changed from OFFLINE to ONLINE 2022-07-24 14:47:23.161 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'tuya:tuyaDevice:800061668caab5005de9' changed from ONLINE to OFFLINE 2022-07-24 14:47:28.173 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'tuya:tuyaDevice:800061668caab5005de9' changed from OFFLINE to ONLINE 2022-07-24 14:47:28.181 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'tuya:tuyaDevice:800061668caab5005de9' changed from ONLINE to OFFLINE 2022-07-24 14:47:30.596 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'LocalTime_Date' changed from 2022-07-24T14:48:50.686-0500 to 2022-07-24T14:49:50.688-0500 2022-07-24 14:47:33.193 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'tuya:tuyaDevice:800061668caab5005de9' changed from OFFLINE to ONLINE 2022-07-24 14:47:33.203 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'tuya:tuyaDevice:800061668caab5005de9' changed from ONLINE to OFFLINE 2022-07-24 14:47:38.222 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'tuya:tuyaDevice:800061668caab5005de9' changed from OFFLINE to ONLINE 2022-07-24 14:47:38.233 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'tuya:tuyaDevice:800061668caab5005de9' changed from ONLINE to OFFLINE 2022-07-24 14:47:43.240 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'tuya:tuyaDevice:800061668caab5005de9' changed from OFFLINE to ONLINE 2022-07-24 14:47:43.248 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'tuya:tuyaDevice:800061668caab5005de9' changed from ONLINE to OFFLINE 2022-07-24 14:47:48.263 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'tuya:tuyaDevice:800061668caab5005de9' changed from OFFLINE to ONLINE 2022-07-24 14:47:48.268 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'tuya:tuyaDevice:800061668caab5005de9' changed from ONLINE to OFFLINE 2022-07-24 14:47:54.356 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'tuya:tuyaDevice:800061668caab5005de9' changed from OFFLINE to ONLINE 2022-07-24 14:47:54.377 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'tuya:tuyaDevice:800061668caab5005de9' changed from ONLINE to OFFLINE
I have seen it with a different device from time to time.
from addons.
@BigGeorgeTx I saw something similar in #366. I worked around it by forcing the switch to have a fixed IP address in my router (the problem appeared when, for some reason, the switch changed its IP address). Might be worth a try.
from addons.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
from addons.
Related Issues (20)
- Problems in OH4 HOT 6
- Notification for Fire TV not working HOT 1
- Tuya Binding not starting properly in 4.0M1 HOT 1
- GenericEventTrigger does not work in v4
- Math transformation services disappeared HOT 1
- Basic-profiles transformation services disappeared HOT 2
- DP 17 add_ele updates not being received HOT 4
- [tuya] Reconnect issues HOT 14
- Commands not effecting Tuya Smart Plug HOT 7
- [tuya] IllegalArgumentException: Unknown color format
- Adding json to JSON 3rd party addon results in stacktrace for openHAB 4.1.1 HOT 1
- door sensor HOT 1
- [tuya] API readings are OK but direct connection to thermostats fails with connection refused message HOT 7
- Request support for unbranded LED Controller model iH001 HOT 1
- [tuya] Polling issue with Energy Meter/Switch TAXNELE TXCB2-TWM HOT 1
- Smart lock online but no item updates. HOT 1
- One socket-channel through which it is possible to send a command and receive a response from the device.
- [telenot] no success with discovery HOT 10
- Everything is up and running - can't delete tuya project online though HOT 1
- Feature request: force cloud connection for specific device 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 addons.