@nnemedi please, reboot HA after battery replace, if sensor will not work after 20 minutes, please reboot HA again, in case of error check sensor in official Broadlink APP
Yes, thank you. After battery replacing we need to reboot HA. I just shared my experience with unknown status, that my motion sensor was in unknow status no matter what I did with it until I replaced the batteries in it.
Does anybody have any idea how I can get rid of this error:
Logger: custom_components.broadlink_s1c.sensor
Source: custom_components/broadlink_s1c/sensor.py:273
Integration: broadlink_s1c (documentation, issues)
First occurred: 8:50:49 PM (2 occurrences)
Last logged: 8:50:49 PM
exception while getting sensors status: Traceback (most recent call last): File “/config/custom_components/broadlink_s1c/sensor.py”, line 259, in run current_status = self._hub.get_sensors_status() File “/usr/local/lib/python3.8/site-packages/broadlink/alarm.py”, line 37, in get_sensors_status ‘sensors’: [ File “/usr/local/lib/python3.8/site-packages/broadlink/alarm.py”, line 40, in ‘name’: sensor[4:26].decode().strip(’\x00’), UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xa0 in position 1: invalid start byte
exception while getting sensors status: Traceback (most recent call last): File “/config/custom_components/broadlink_s1c/sensor.py”, line 259, in run current_status = self._hub.get_sensors_status() File “/usr/local/lib/python3.8/site-packages/broadlink/alarm.py”, line 37, in get_sensors_status ‘sensors’: [ File “/usr/local/lib/python3.8/site-packages/broadlink/alarm.py”, line 40, in ‘name’: sensor[4:26].decode().strip(’\x00’), UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0x8e in position 4: invalid start byte
I’ve installed the https://github.com/nick2525/broadlink_s1c_s2c addon but for some reason some of my sensors and the alarm do not show up. I’m trying to find a solution for abou a week with no luck.
Could someone please help me? I can see the sensors that are missing in the error log but I don’t know how to fix it…
Heres the log:
2021-04-09 14:20:39 ERROR (MainThread) [homeassistant.components.sensor] Entity id already exists - ignoring: sensor.broadlink_s1c_garagem
2021-04-09 14:20:39 ERROR (MainThread) [homeassistant.components.sensor] Error adding entities for domain sensor with platform broadlink_s1c
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 322, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 474, in _async_add_entity
raise HomeAssistantError(f"Invalid entity ID: {entity.entity_id}")
homeassistant.exceptions.HomeAssistantError: Invalid entity ID: sensor.broadlink_s1c_hall_r/c
2021-04-09 14:20:39 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up broadlink_s1c platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 213, in _async_setup_platform
await asyncio.gather(*pending)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 322, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 474, in _async_add_entity
raise HomeAssistantError(f"Invalid entity ID: {entity.entity_id}")
homeassistant.exceptions.HomeAssistantError: Invalid entity ID: sensor.broadlink_s1c_hall_r/c
2021-04-09 14:24:45 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/config/custom_components/broadlink_s1c_s2c/sensor.py", line 168, in async_event_listener
yield from self.async_update_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 282, in async_update_ha_state
raise RuntimeError(f"Attribute hass is None for {self}")
RuntimeError: Attribute hass is None for <Entity Hall r/c: motion_detected>
2021-04-09 14:25:16 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/config/custom_components/broadlink_s1c_s2c/sensor.py", line 168, in async_event_listener
yield from self.async_update_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 282, in async_update_ha_state
raise RuntimeError(f"Attribute hass is None for {self}")
RuntimeError: Attribute hass is None for <Entity Hall r/c: no_motion>
Hall r/c it’s one of the sensors I cannot see in “Entities”.
I also would like to add the ALARM panel like this, but can’t figure that out…
@yonny24 very strange, I upgraded to last core and it works. Did you try to upgrade component with HACs or copy files? I upgraded component 4 days ago.