-
-
Notifications
You must be signed in to change notification settings - Fork 29.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Skybell Task Exception #11975
Comments
I'm having the same issue, the camera component is working fine, but the binary_sensor.skybell_front_door_button is not loading. Looks like others are having a similar problem: Maybe skybell broke something? I'm currently running 0.62.1 |
Same problem here! |
same issue here
and it seems the actual push button sensor does not work |
This error still persists even with the last upgrade. :( It is just spamming the logs continuously. 2018-02-11 15:58:12 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.6/asyncio/tasks.py", line 180, in _step
result = coro.send(None)
File "/usr/src/app/homeassistant/helpers/entity.py", line 220, in async_update_ha_state
device_attr = self.device_state_attributes
File "/usr/src/app/homeassistant/components/binary_sensor/skybell.py", line 85, in device_state_attributes
attrs['event_date'] = self._event.get('createdAt')
AttributeError: 'NoneType' object has no attribute 'get'
2018-02-11 15:58:18 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.6/asyncio/tasks.py", line 180, in _step
result = coro.send(None)
File "/usr/src/app/homeassistant/helpers/entity.py", line 220, in async_update_ha_state
device_attr = self.device_state_attributes
File "/usr/src/app/homeassistant/components/binary_sensor/skybell.py", line 85, in device_state_attributes
attrs['event_date'] = self._event.get('createdAt')
AttributeError: 'NoneType' object has no attribute 'get'
2018-02-11 15:58:24 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.6/asyncio/tasks.py", line 180, in _step
result = coro.send(None)
File "/usr/src/app/homeassistant/helpers/entity.py", line 220, in async_update_ha_state
device_attr = self.device_state_attributes
File "/usr/src/app/homeassistant/components/binary_sensor/skybell.py", line 85, in device_state_attributes
attrs['event_date'] = self._event.get('createdAt')
AttributeError: 'NoneType' object has no attribute 'get'
2018-02-11 15:58:30 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.6/asyncio/tasks.py", line 180, in _step
result = coro.send(None)
File "/usr/src/app/homeassistant/helpers/entity.py", line 220, in async_update_ha_state
device_attr = self.device_state_attributes
File "/usr/src/app/homeassistant/components/binary_sensor/skybell.py", line 85, in device_state_attributes
attrs['event_date'] = self._event.get('createdAt')
AttributeError: 'NoneType' object has no attribute 'get' |
As a temp measure, I just commented out the offending line. You can add this to your custom_component directory to at least get rid of all the spammy errors. |
This may be related. I have 2 Skybell HD Doorbells. Issue Found: Camera, Both motion sensors, and first Skybell button sensor confirmed working. |
Hi @jshank, I'm using docker and I cannot find the correct folder. Could you tell me which was the folder you installed the file in? Thanks |
@jolaca01 I am using Docker as well. I was very pleased to find that creating a custom_components/binary_sensor directory under my configuration folder worked to override the offending component. I have my configuration folder mapped below. the full path is ./config/custom_components/binary_sensor/skybell.py (the modified version). I reloaded home assistant and it picked up the new file.
|
Yes. Same here. My docker yaml file can be found here as well. The custom component works perfectly for me. |
Thank you so much, @jshank and @CCOSTAN . I have created the folder ./config/custom_components/binary_sensor/ and placed the modified skybell.py inside. However, after restarting the home assistant container I still get this message once or twice per minute:
Sorry but what I think I didn't get was the part @jshank told about mapping the folder. Should I include this?:
...inside my configuration.yaml?? or where? The problem is that I really don't know what I need to do in docker in order to get the new folder and file recognised. Thank you for bearing with me, sorry guys. This is my container configuration: Thanks again!! |
@jolaca01 that is a different error message than this patch addresses. The file that @CCOSTAN modified only fixes the |
@jolaca01 - What @jshank said. :) You don't need to worry about the took too long messages. If you really want to get rid of those, you can add in a logger.yaml file. Here's mine : |
Thank you again!! @jshank, that's the exact path I've used: the path I was talking about was from inside the container, but indeed, it is actually located in docker/homeassistant/custom_components/binary_sensor/skybell.py |
@CCOSTAN - would you please confirm where I can grab your modified skybell.py please? The original link you posted is not working. Thanks! |
@GaryOkie - It was in my repo (https://github.com/CCOSTAN/Home-AssistantConfig#logo) but I got rid of it at one point after an update. I no longer have this issue with the latest versions of HA. |
@CCOSTAN - That's interesting you no longer have this issue. I just installed a new Skybell HD a few days ago with Hass.io version 66.1, and don't recall seeing any errors either, but I may not have even looked at the log since the add-on was working fine. I've updated to Hass.io 67.0 and am getting the following errors. Aren't they the errors your patched skybell.py addressed, or is it something different now?
(This error repeats approximately every 30 seconds) |
I think this is something new. I haven't jumped to 0.67 yet though. |
Just an FYI that I have submitted a new bug report on this: #13922 Looks like this particular error has cropped up in other components and fixed. MisterWil just confirmed he has duplicated the problem after updating to hassio 67 and will ensure it is fixed. |
Home Assistant release (
hass --version
):0.62
Python release (
python3 --version
):3.6
Component/platform:
skybell / docker
Description of problem:
Getting this traceback every few seconds or so .. But the component seems to work.
Expected:
no tracebacks.
Traceback (if applicable):
Additional info:
The text was updated successfully, but these errors were encountered: