Giter VIP home page Giter VIP logo

Comments (5)

J-N-K avatar J-N-K commented on July 17, 2024

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.

owl770 avatar owl770 commented on July 17, 2024

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.

BigGeorgeTx avatar BigGeorgeTx commented on July 17, 2024

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.

owl770 avatar owl770 commented on July 17, 2024

@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.

stale avatar stale commented on July 17, 2024

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)

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.