Smartir Stopped working with Broadlink RM mini 4c
See original GitHub issueHome Assistant version
Home Assistant 2022.3.5
SmartIR version
1.17.5
SmartIR configuration
climate:
- platform: smartir
name: "Ar Condicionado da Marcelle"
unique_id: "ar_condicionado_marcelle"
temperature_sensor: sensor.ble_temperature_a4c1386cd1d1
humidity_sensor: sensor.ble_humidity_a4c1386cd1d1
power_sensor: binary_sensor.estado_ar_marcelle_contact
device_code: 1241
controller_data: remote.marcelle_remote
Describe the bug
With the newer version of home assistant and Smartir, it stopped working with broadlink mini4c Whike didnt affect Broadlink rm4 pro. Both used to work great. After the new updates the mini4c stopped working, the rm4 pro wasn`t affected by the updates. At first i thought it was a problem with broadlink integration, so i created a button using template and added a code to turn on and off my air conditioner. It worked fine, so i discarded this possibity.
Here is the error in home assistant log when i try to use smartir integration withe mini4c controller:
Debug log
Logger: homeassistant.core Source: util/json.py:39 First occurred: 15 de março de 2022 17:15:36 (7 occurrences) Last logged: 02:24:15
Error executing service: <ServiceCall remote.send_command (c:3213c051fb6ab077574b19ec7ff558d9): entity_id=['remote.marcelle_remote'], command=['b64:JgBgAQABJJQTNxM3ExIVEBQSFBIUEhQ2FBEVNhM4EhIUEhQRFREUEhMSFBEVEBQSFBIUNxM4ExITOBI4ExITEhQ4EjgTOBMSFBEVEBURFBEVERQSExIUEhQRFBEUEhQRFREVERMSFBEUAAEHExEUEhMSFBITEhQSFBIUNxMRFBITEhQSExMTEhQSExIUERQSExIUERQSFBITExMSFBEUEhMSFBEUEhQSFBITEhQRFBITEhQRFBIUEhQSExIUERQSExIUERQSFBITExMSFBEUERQSFBEUEhQSExIUEhQ3EzcTEhQRFDgTEhMTFDcSAAEHExIUERQRFBIUEhMSFBIUERQSEzgSEhQSExIUEhQSExIUERQRFBITEhQSFBITEhQSFBEYDRQSExIUEhMSFBIUEhMSFBEUERQSFBITEhQSFBITEhQRFBITEhQSExIUEhQSFBEUNhQSExIUERQSFBIUERMADQUAAAAAAAAAAA=='], delay_secs=0.5, num_repeats=1, hold_secs=0.0>
Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/util/json.py”, line 33, in load_json return json.loads(fdesc.read()) # type: ignore[no-any-return] File “/usr/local/lib/python3.9/json/init.py”, line 346, in loads return _default_decoder.decode(s) File “/usr/local/lib/python3.9/json/decoder.py”, line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File “/usr/local/lib/python3.9/json/decoder.py”, line 355, in raw_decode raise JSONDecodeError(“Expecting value”, s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) The above exception was the direct cause of the following exception:
Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/core.py”, line 1654, in catch_exceptions await coro_or_task File “/usr/src/homeassistant/homeassistant/core.py”, line 1673, in _execute_service await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)( File “/usr/src/homeassistant/homeassistant/helpers/entity_component.py”, line 204, in handle_service await self.hass.helpers.service.entity_service_call( File “/usr/src/homeassistant/homeassistant/helpers/service.py”, line 668, in entity_service_call future.result() # pop exception if have File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 949, in async_request_call await coro File “/usr/src/homeassistant/homeassistant/helpers/service.py”, line 705, in _handle_entity_call await result File “/usr/src/homeassistant/homeassistant/components/broadlink/remote.py”, line 218, in async_send_command await self._async_load_storage() File “/usr/src/homeassistant/homeassistant/components/broadlink/remote.py”, line 197, in _async_load_storage self._flags.update(await self._flag_storage.async_load() or {}) File “/usr/src/homeassistant/homeassistant/helpers/storage.py”, line 114, in async_load return await self._load_task File “/usr/src/homeassistant/homeassistant/helpers/storage.py”, line 123, in _async_load return await self._async_load_data() File “/usr/src/homeassistant/homeassistant/helpers/storage.py”, line 141, in _async_load_data data = await self.hass.async_add_executor_job( File “/usr/local/lib/python3.9/concurrent/futures/thread.py”, line 58, in run result = self.fn(*self.args, **self.kwargs) File “/usr/src/homeassistant/homeassistant/util/json.py”, line 39, in load_json raise HomeAssistantError(error) from error homeassistant.exceptions.HomeAssistantError: Expecting value: line 1 column 1 (char 0) Additional context
Add any other context about the problem here.
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (6 by maintainers)
Top Related StackOverflow Question
Fixed. I had to delete a json file inside ./storage folder. the name was Broadcon_XXXXXXXXXXX.json. After that i restarted home assistant it worked again
I had the same Issue! I had to delete the Broadlink_xxxxxxx.json file and finally it started working! Thanks for reporting!