I tried to setup the doorbird component but I can´t get it to work. I´m always seeing this error in the log:
2017-09-25 21:04:17 ERROR (MainThread) [homeassistant.setup] Error during setup of component doorbird
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.4/site-packages/doorbirdpy/__init__.py", line 35, in ready
code = json.loads(content)["BHA"]["RETURNCODE"]
File "/usr/lib/python3.4/json/__init__.py", line 312, in loads
s.__class__.__name__))
TypeError: the JSON object must be str, not 'bytes'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/setup.py", line 194, in _async_setup_component
component.setup, hass, processed_config)
File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
value = future.result()
File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
raise self._exception
File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/doorbird.py", line 32, in setup
status = device.ready()
File "/srv/homeassistant/lib/python3.4/site-packages/doorbirdpy/__init__.py", line 37, in ready
except json.decoder.JSONDecodeError:
AttributeError: 'module' object has no attribute 'JSONDecodeError'
What could be wrong in my configuration?
doorbird:
host: 192.168.2.36 (my local ip)
username: hurz
password: hurz
The doorbird camera is working fine now but I´m having issues with the doorbird ringing sensor.
This is the error message that is logged:
2017-10-28 09:43:05 ERROR (MainThread) [homeassistant.helpers.entity] Update for binary_sensor.doorbell_ringing fails
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 204, in async_update_ha_state
yield from self.async_device_update()
File "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 309, in async_device_update
yield from self.hass.async_add_job(self.update)
File "/usr/lib/python3.6/asyncio/futures.py", line 331, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.6/asyncio/tasks.py", line 244, in _wakeup
future.result()
File "/usr/lib/python3.6/asyncio/futures.py", line 244, in result
raise self._exception
File "/usr/lib/python3.6/concurrent/futures/thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/lib/python3.6/site-packages/homeassistant/util/__init__.py", line 306, in wrapper
result = method(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/homeassistant/components/binary_sensor/doorbird.py", line 60, in update
self._state = self._device.doorbell_state()
File "/usr/lib/python3.6/site-packages/doorbirdpy/__init__.py", line 162, in doorbell_state
return int(content.split("=")[1]) == 1
ValueError: invalid literal for int() with base 10: '"1.0" encoding'