Coder Social home page Coder Social logo

constant error about hass-opensprinkler HOT 10 CLOSED

vinteo avatar vinteo commented on August 20, 2024
constant error

from hass-opensprinkler.

Comments (10)

vinteo avatar vinteo commented on August 20, 2024

Feels like a connection issue.

How often does the logs appear? It is appearing at regular times or randomly?
How strong is the WiFi signal to your opensprinkler device? Are there any dropouts?

If you haven't already try setting a static IP for your opensprinkler device using DHCP. Check the WiFi signals and maybe change WifFi channels.

from hass-opensprinkler.

madrose avatar madrose commented on August 20, 2024

I have tested the connection to the opensprinkler board, and I tested with a different Wifi link solutions, However the error did not go away. the board has fixed iP configured and i can access via browser anytime with no issue.
image

image

from hass-opensprinkler.

vinteo avatar vinteo commented on August 20, 2024

Does the error only happen on back_2 or all the stations? Is that station setup differently than the others?

I have never seen that error but I get the warning sometimes, especially on startup

from hass-opensprinkler.

madrose avatar madrose commented on August 20, 2024

this is affecting all stations, i just took a sample image.
I am upgrading the Pi and some other hardware I am using. I will monitor this and revert back with any update.

from hass-opensprinkler.

madrose avatar madrose commented on August 20, 2024

still getting random errors:
image
image
image

from hass-opensprinkler.

Pocke01 avatar Pocke01 commented on August 20, 2024

Im getting the same errors on all sensors.
My Opensprinkler is using Ethernet, and I have checked that I do not have any pocketless or anything between hass and OS. Hass is running on an Nuc.

from hass-opensprinkler.

madrose avatar madrose commented on August 20, 2024

I have upgraded the connection to my opensprinkler system and ensure the connectivity. tried accessing directly using the browser with no issues at all, however in HA the error keep coming back.

from hass-opensprinkler.

Kdemontf avatar Kdemontf commented on August 20, 2024

I see this is old, but open. I have the same issue I believe on HA 0.104.2, and recent versions. Running in Linux venv, OS V 2.3 - AC firmware 2.1.9. Direct network connection, static IP. The API responds consistantly to rest calls from browser, in 2 seconds or less. I see this in the logs:
Updating hass_opensprinkler binary_sensor took longer than the scheduled update interval 0:00:05 11:30 AM helpers/entity_platform.py (WARNING) - message first occurred at January 22, 2020, 8:51 AM and shows up 4400 times Updating hass_opensprinkler switch took longer than the scheduled update interval 0:00:05 11:30 AM helpers/entity_platform.py (WARNING) - message first occurred at January 22, 2020, 8:51 AM and shows up 3578 times Updating hass_opensprinkler sensor took longer than the scheduled update interval 0:00:10 11:30 AM helpers/entity_platform.py (WARNING) - message first occurred at January 22, 2020, 8:51 AM and shows up 3610 times

Note, I changed the update interval for the sensor, as you can see that did not resolve. It is timing out I think, not sure why. I can control all stations, but system is slow to report status. Any suggestions on troubleshooting this? I would like to keep it, but need to resolve. Thanks

from hass-opensprinkler.

Kdemontf avatar Kdemontf commented on August 20, 2024

More verbose error messages, is this an ssl error?
``
2020-01-23 12:01:54 WARNING (MainThread) [homeassistant.components.switch] Updating hass_opensprinkler switch took longer than the scheduled update interval 0:00:05
2020-01-23 12:01:54 WARNING (MainThread) [homeassistant.components.binary_sensor] Updating hass_opensprinkler binary_sensor took longer than the scheduled update interval 0:00:05
2020-01-23 12:01:54 ERROR (MainThread) [homeassistant.helpers.entity] Update for switch.grass_driveway_n_west fails
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.7/site-packages/urllib3/connectionpool.py", line 672, in urlopen
chunked=chunked,
File "/srv/homeassistant/lib/python3.7/site-packages/urllib3/connectionpool.py", line 421, in _make_request
six.raise_from(e, None)
File "", line 3, in raise_from
File "/srv/homeassistant/lib/python3.7/site-packages/urllib3/connectionpool.py", line 416, in _make_request
httplib_response = conn.getresponse()
File "/usr/lib/python3.7/http/client.py", line 1344, in getresponse
response.begin()
File "/usr/lib/python3.7/http/client.py", line 306, in begin
version, status, reason = self._read_status()
File "/usr/lib/python3.7/http/client.py", line 288, in _read_status
raise BadStatusLine(line)
http.client.BadStatusLine:
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.7/site-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/srv/homeassistant/lib/python3.7/site-packages/urllib3/connectionpool.py", line 720, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/srv/homeassistant/lib/python3.7/site-packages/urllib3/util/retry.py", line 400, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/srv/homeassistant/lib/python3.7/site-packages/urllib3/packages/six.py", line 734, in reraise
raise value.with_traceback(tb)
File "/srv/homeassistant/lib/python3.7/site-packages/urllib3/connectionpool.py", line 672, in urlopen
chunked=chunked,
File "/srv/homeassistant/lib/python3.7/site-packages/urllib3/connectionpool.py", line 421, in _make_request
six.raise_from(e, None)
File "", line 3, in raise_from
File "/srv/homeassistant/lib/python3.7/site-packages/urllib3/connectionpool.py", line 416, in _make_request
httplib_response = conn.getresponse()
File "/usr/lib/python3.7/http/client.py", line 1344, in getresponse
response.begin()
File "/usr/lib/python3.7/http/client.py", line 306, in begin
version, status, reason = self._read_status()
File "/usr/lib/python3.7/http/client.py", line 288, in _read_status
raise BadStatusLine(line)
urllib3.exceptions.ProtocolError: ('Connection aborted.', BadStatusLine('\x00À\x00@\x00\x00.1 200 OK\r\n'))

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/homeassistant/.homeassistant/custom_components/hass_opensprinkler/init.py", line 215, in status
response = requests.get(url, timeout=10)
File "/srv/homeassistant/lib/python3.7/site-packages/requests/api.py", line 75, in get
return request('get', url, params=params, **kwargs)
File "/srv/homeassistant/lib/python3.7/site-packages/requests/api.py", line 60, in request
return session.request(method=method, url=url, **kwargs)
File "/srv/homeassistant/lib/python3.7/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/srv/homeassistant/lib/python3.7/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/srv/homeassistant/lib/python3.7/site-packages/requests/adapters.py", line 498, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', BadStatusLine('\x00À\x00@\x00\x00.1 200 OK\r\n'))

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 279, in async_update_ha_state
await self.async_device_update()
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 461, in async_device_update
await self.hass.async_add_executor_job(self.update)
File "/usr/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/util/init.py", line 240, in wrapper
result = method(*args, **kwargs)
File "/home/homeassistant/.homeassistant/custom_components/hass_opensprinkler/switch.py", line 42, in update
self._is_on = self._station.status()
File "/home/homeassistant/.homeassistant/custom_components/hass_opensprinkler/init.py", line 218, in status
_LOGGER.error("No route to device '%s'", self._resource)
AttributeError: 'OpensprinklerStation' object has no attribute '_resource'
``

from hass-opensprinkler.

vinteo avatar vinteo commented on August 20, 2024

Please try the new release, if there is any issues please create a new issue.

from hass-opensprinkler.

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.