question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

hourly sensor unavailable

See original GitHub issue

v. 0.0.22 removed integration, removed component, restart, added component, restart, added integration -> hourly sensor unavailable:

image

log:

2020-05-30 13:10:17 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up smart_irrigation platform for sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 186, in _async_setup_platform
    await asyncio.gather(*pending)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 295, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 446, in _async_add_entity
    entity.async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 297, in async_write_ha_state
    self._async_write_ha_state()  # type: ignore
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 320, in _async_write_ha_state
    state = self.state
  File "/config/custom_components/smart_irrigation/sensor.py", line 308, in state
    self._state = self.update_state()
  File "/config/custom_components/smart_irrigation/sensor.py", line 286, in update_state
    self.precipitation = self.get_precipitation(data)
  File "/config/custom_components/smart_irrigation/sensor.py", line 410, in get_precipitation
    retval = self.rain + self.snow
TypeError: unsupported operand type(s) for +: 'float' and 'str'

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:17 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
ciechomplcommented, May 30, 2020

update to .23 , HA restart nad hourly sensor works 😃 … even without full component reinstall … thx

1reaction
ciechomplcommented, May 31, 2020

so far so good 😃 closing

Read more comments on GitHub >

github_iconTop Results From Across the Web

Utility Meter total_increasing not working as expected
Created a Utility Meter sensor to count all the received seconds from a sensor and show a daily summary.
Read more >
Sensor Malfunction - Brinks Home Security
Common reasons a sensor will go into Failure or Malfunction are: The battery in the sensor is dead. The sensor is too far...
Read more >
Inacceptable huge default "sensor unavailable time" of 24 hours
Problem: Once sensors do not provide any updates, it takes deCONZ full 24 hours (!!!) to categorize them as “unavailable”.
Read more >
Issues with sensors not working consistantly in Environment ...
In sensor: Loading the sensors only works 25% of the time. ... Any ideas on how to get this to work consistantly ?...
Read more >
Aeon multi sensor 6 - not working properly? Help!
Battery powered is not real-time and based on a polling interval. Looking at my logs temp and humidity tends to be hourly unless...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found