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.

Sensor Rain delay errors on startup

See original GitHub issue

The following appears in my home-assistant log upon every restart for the rain_delay_*_remaining and rain_delay_*_finishing for each device:

2020-05-25 14:03:44 ERROR (MainThread) [homeassistant.helpers.entity] Update for sensor.rain_delay_deck_finishing fails
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 470, in async_device_update
    await self.async_update()
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/template/sensor.py", line 224, in async_update
    self._state = self._template.async_render()
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/template.py", line 228, in async_render
    return compiled.render(kwargs).strip()
  File "/srv/homeassistant/lib/python3.7/site-packages/jinja2/environment.py", line 1090, in render
    self.environment.handle_exception()
  File "/srv/homeassistant/lib/python3.7/site-packages/jinja2/environment.py", line 832, in handle_exception
    reraise(*rewrite_traceback_stack(source=source))
  File "/srv/homeassistant/lib/python3.7/site-packages/jinja2/_compat.py", line 28, in reraise
    raise value.with_traceback(tb)
  File "<template>", line 1, in top-level template code
TypeError: unsupported operand type(s) for *: 'NoneType' and 'int'

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
sebrcommented, May 25, 2020

Those rain_delay_finishing and rain_delay_remaining sensor examples are a bit… fragile. They were indicative only.

However - I do have a python_script which creates and updates sensors to do this which I’ll package up into a release. Will need a day or two to publish a beta release.

1reaction
sebrcommented, Jul 16, 2020

@TheGardenMonkey I’m going to close this issue as the original startup errors have been fixed. I am aware of the limitation of the next watering script ignoring non-smart watering programs 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Orbit rain sensor and rain delay | OpenSprinkler
Hi all, I'm experimenting with a rain sensor and the rain delay and I have ... Only after a reboot from remote, the...
Read more >
Watering for 1 min or less with Rain Sensor installed
A quick fix is to hold down the “Rain Delay” button for about 5 seconds. SENS OFF should appear in the display indicating...
Read more >
Weather Station Error Codes on SmartLink - Support
This alert is generated when the weather station has failed to communicated with the controller. What might happen as a result of the...
Read more >
How can we help? - Rain Bird Smart Irrigation WiFi Timer
Establishing communication to the controller timed out. It attempted to connect to the controller; however, the controller did not respond within an expected ......
Read more >
7 Symptoms of a Bad Mass Air Flow Sensor
Shake out the dust. Blow out the intake tubing and install a new air filter to prevent future dust intrusion. · Use a...
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