ShellyForHASS Problem

Hi

I keep getting my automations stopping working due to this error:

and Ive no idea what to do about it - any help would be appreciated.

Logger: pyShelly
Source: helpers/entity.py:695
First occurred: 9:46:56 PM (2174 occurrences)
Last logged: 10:41:47 PM

Error update device status: E8DB84D3D257-2 SHDM-2, ‘NoneType’ object has no attribute ‘add_job’, Traceback (most recent call last): File “/usr/local/lib/python3.9/site-packages/pyShelly/block.py”, line 290, in _update_status_info dev.raise_updated(force_update_devices) File “/usr/local/lib/python3.9/site-packages/pyShelly/base.py”, line 46, in raise_updated callback(self) File “/config/custom_components/shelly/device.py”, line 58, in _updated self._update_ha_state() File “/config/custom_components/shelly/device.py”, line 51, in _update_ha_state self.schedule_update_ha_state(True) File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 695, in schedule_update_ha_state self.hass.add_job(self.async_update_ha_state(force_refresh)) AttributeError: ‘NoneType’ object has no attribute ‘add_job’
Error receiving CoAP UDP, ‘NoneType’ object has no attribute ‘add_job’, Traceback (most recent call last): File “/usr/local/lib/python3.9/site-packages/pyShelly/coap.py”, line 187, in _loop self._root.update_block(device_id, device_type, File “/usr/local/lib/python3.9/site-packages/pyShelly/init.py”, line 359, in update_block block.update_coap(data, ipaddr) File “/usr/local/lib/python3.9/site-packages/pyShelly/block.py”, line 114, in update_coap self.raise_updated() File “/usr/local/lib/python3.9/site-packages/pyShelly/base.py”, line 46, in raise_updated callback(self) File “/config/custom_components/shelly/block.py”, line 73, in _updated self._update_ha_state() File “/config/custom_components/shelly/block.py”, line 65, in _update_ha_state self.schedule_update_ha_state(True) File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 695, in schedule_update_ha_state self.hass.add_job(self.async_update_ha_state(force_refresh)) AttributeError: ‘NoneType’ object has no attribute ‘add_job’
Error update device status: E8DB84D78730 SHDM-2, ‘NoneType’ object has no attribute ‘add_job’, Traceback (most recent call last): File “/usr/local/lib/python3.9/site-packages/pyShelly/block.py”, line 290, in _update_status_info dev.raise_updated(force_update_devices) File “/usr/local/lib/python3.9/site-packages/pyShelly/base.py”, line 46, in raise_updated callback(self) File “/config/custom_components/shelly/device.py”, line 58, in _updated self._update_ha_state() File “/config/custom_components/shelly/device.py”, line 51, in _update_ha_state self.schedule_update_ha_state(True) File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 695, in schedule_update_ha_state self.hass.add_job(self.async_update_ha_state(force_refresh)) AttributeError: ‘NoneType’ object has no attribute ‘add_job’
Error update device status: E8DB84D78730-1 SHDM-2, ‘NoneType’ object has no attribute ‘add_job’, Traceback (most recent call last): File “/usr/local/lib/python3.9/site-packages/pyShelly/block.py”, line 290, in _update_status_info dev.raise_updated(force_update_devices) File “/usr/local/lib/python3.9/site-packages/pyShelly/base.py”, line 46, in raise_updated callback(self) File “/config/custom_components/shelly/device.py”, line 58, in _updated self._update_ha_state() File “/config/custom_components/shelly/device.py”, line 51, in _update_ha_state self.schedule_update_ha_state(True) File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 695, in schedule_update_ha_state self.hass.add_job(self.async_update_ha_state(force_refresh)) AttributeError: ‘NoneType’ object has no attribute ‘add_job’
Error update device status: E8DB84D78730-2 SHDM-2, ‘NoneType’ object has no attribute ‘add_job’, Traceback (most recent call last): File “/usr/local/lib/python3.9/site-packages/pyShelly/block.py”, line 290, in _update_status_info dev.raise_updated(force_update_devices) File “/usr/local/lib/python3.9/site-packages/pyShelly/base.py”, line 46, in raise_updated callback(self) File “/config/custom_components/shelly/device.py”, line 58, in _updated self._update_ha_state() File “/config/custom_components/shelly/device.py”, line 51, in _update_ha_state self.schedule_update_ha_state(True) File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 695, in schedule_update_ha_state self.hass.add_job(self.async_update_ha_state(force_refresh)) AttributeError: ‘NoneType’ object has no attribute ‘add_job’
Traceback (most recent call last):
File “/usr/local/lib/python3.9/site-packages/pyShelly/init.py”, line 384, in _update_loop
block.check_available()
File “/usr/local/lib/python3.9/site-packages/pyShelly/block.py”, line 197, in check_available
self.force_all_update()
File “/usr/local/lib/python3.9/site-packages/pyShelly/block.py”, line 192, in force_all_update
dev.raise_updated(True)
File “/usr/local/lib/python3.9/site-packages/pyShelly/base.py”, line 46, in raise_updated
callback(self)
File “/config/custom_components/shelly/device.py”, line 58, in _updated
self._update_ha_state()
File “/config/custom_components/shelly/device.py”, line 51, in _update_ha_state
self.schedule_update_ha_state(True)
File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 695, in schedule_update_ha_state
self.hass.add_job(self.async_update_ha_state(force_refresh))
AttributeError: ‘NoneType’ object has no attribute ‘add_job’

1 Like

Why are you using shellyforhass? The home assistant integration works fine.

I’ve got exactly the same issue. I thought I did not have Shellyforhass, as I have the Shelly Integration installed, however I see there is a Shelly tab on the left and opening that up shows the Shellyforhass menu & settings so clearly I da have it.
How do I remove ShellyforHass?
TIA

We all have the shelly integration, it is built in to HA.

You can remove it via HACS if you installed it that way. Or using rm

Thanks. You learn something new every day!

I’ll give that a try.