Hi, I have esphome ir blaster, i want to add it to smartir, but how i can learn the remote control ir codes, i know how to capture the remote codes using esphome log of the ir blaster, i understand that I need to create a json file and put the codes I capture, but the ir codes what format they should be ? esphome can give me raw codes and some other format, thanks.
Hi, I did the installation via HACS, but the log shows these errors:
This error originated from a custom integration.
Logger: homeassistant
Source: custom_components/smartir/media_player.py:214
integration: smartir (documentation, issues)
First occurred: 10:45:22 PM (39 occurrences)
Last logged: 10:51:38 PM
Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 1060, in _async_update_entity_states
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 959, in async_update_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1126, in _async_write_ha_state
state, attr, capabilities, shadowed_attr = self.__async_calculate_state()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1063, in __async_calculate_state
if state_attributes := self.state_attributes:
^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/media_player/__init__.py", line 1116, in state_attributes
if (value := getattr(self, attr)) is not None:
^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/smartir/media_player.py", line 214, in source
if self._on_by_remote:
^^^^^^^^^^^^^^^^^^
AttributeError: 'SmartIRMediaPlayer' object has no attribute '_on_by_remote'. Did you mean: '_on_remove'?
Can anyone help?
OK, thank for the confirmation. I was able to find and hopefully solve the issue. I wil release beta containing fix hopefully today. As I am not using media_player class I would welcome you to test the fix and report back. Thnak you.
Hi, sure thing. This is a bug, fix will be release today in beta. It is difficult for me to test media_player class, as I do not use it… so sorry for the issue. This happened during conversion of the integration from push to poll. Most of the bit changes are done, so I hope code base would stabilize a bit.
I’ve installed the latest beta version and the errors seem to have disappeared.
Thanks for the good work!
Hello again, I’m testing the media player and I’ve found a few more errors:
File "/config/custom_components/smartir/media_player.py", line 267, in async_turn_off
await self._send_command(self._commands["off"])
^^^^^^^^^^^^^^^^^^
AttributeError: 'SmartIRMediaPlayer' object has no attribute '_send_command'. Did you mean: 'send_command'?
Logger: custom_components.smartir.media_player
Source: custom_components/smartir/media_player.py:313
integration: smartir (documentation, issues)
First occurred: 3:16:34 PM (18 occurrences)
Last logged: 3:17:28 PM
Missing device IR code for 'volumeUp' command.
Thanks
Hello, it seems, that you are not testing latest beta… Please install it using HACS.
Hi, I’m testing version 1.17.15b4 installed via HACS.
I’m getting these errors:
This error originated from a custom integration.
Logger: custom_components.smartir.media_player
Source: custom_components/smartir/media_player.py:328
integration: smartir (documentation, issues)
First occurred: 7:28:25 PM (3 occurrences)
Last logged: 7:28:35 PM
name 'path' is not defined
Traceback (most recent call last):
File "/config/custom_components/smartir/media_player.py", line 328, in send_command
for idx in range(len(path)):
^^^^
NameError: name 'path' is not defined
Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/commands.py:241
integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 7:28:37 PM (1 occurrences)
Last logged: 7:28:37 PM
[140141317637888] Unexpected exception
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 241, in handle_call_service
response = await hass.services.async_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2741, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2784, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 977, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1049, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/config/custom_components/smartir/media_player.py", line 260, in async_turn_off
await self._send_command(STATE_OFF, [])
^^^^^^^^^^^^^^^^^^
AttributeError: 'SmartIRMediaPlayer' object has no attribute '_send_command'. Did you mean: 'send_command'?
Thanks
Hello, thank you for catching this, it is obvious error in the code. I just fixed this and another bug in the same function, I will release new beta ASAP.
Both fan and climate classes are now tested, so once you will test media_player I can prepare new release. Thank you.
1.17.15b5 is out
BTW: could you please log any further issue to the github? It will help me and other to track it faster, thank you for your help.
Hi. I’ve just tested the new version 1.17.15b5 with some media player commands and it’s working perfectly.
If I detect other problems I’ll register them on github.
Congratulations on your great work!
Hi maybe its a known issue but since last update from HA 2024.5.5 to 2024.6.1 im getting the following errors ( im using smartir with mqtt commands)
Detected blocking call to open inside the event loop by custom integration 'smartir' at custom_components/smartir/media_player.py,
line 75: with open(device_json_path) as j: (offender: /config/custom_components/smartir/media_player.py,
line 75: with open(device_json_path) as j:), please report it to the author of the 'smartir' custom integration Traceback (most recent call last): File "<frozen runpy>",
line 198, in _run_module_as_main File "<frozen runpy>",
line 88, in _run_code File "/usr/src/homeassistant/homeassistant/__main__.py",
line 223, in <module> sys.exit(main()) File "/usr/src/homeassistant/homeassistant/__main__.py", line 209, in main exit_code = runner.run(runtime_conf) File "/usr/src/homeassistant/homeassistant/runner.py",
line 190, in run return loop.run_until_complete(setup_and_run_hass(runtime_config)) File "/usr/local/lib/python3.12/asyncio/base_events.py", line 672, in run_until_complete self.run_forever() File "/usr/local/lib/python3.12/asyncio/base_events.py",
line 639, in run_forever self._run_once() File "/usr/local/lib/python3.12/asyncio/base_events.py",
line 1988, in _run_once handle._run() File "/usr/local/lib/python3.12/asyncio/events.py",
line 88, in _run self._context.run(self._callback, *self._args) File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py",
line 319, in async_setup_platform await self._platforms[key].async_setup(platform_config, discovery_info) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py",
line 303, in async_setup await self._async_setup_platform(async_create_setup_awaitable) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py",
line 363, in _async_setup_platform awaitable = create_eager_task(awaitable, loop=hass.loop) File "/usr/src/homeassistant/homeassistant/util/async_.py",
line 37, in create_eager_task return Task(coro, loop=loop, name=name, eager_start=True) File "/config/custom_components/smartir/media_player.py",
line 75, in async_setup_platform with open(device_json_path) as j
Same problem with climate:
Detected blocking call to open inside the event loop by custom integration 'smartir' at custom_components/smartir/climate.py, line 85: with open(device_json_path) as j: (offender: /config/custom_components/smartir/climate.py, line 85: with open(device_json_path) as j:), please report it to the author of the 'smartir' custom integration Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/usr/src/homeassistant/homeassistant/__main__.py", line 223, in <module> sys.exit(main()) File "/usr/src/homeassistant/homeassistant/__main__.py", line 209, in main exit_code = runner.run(runtime_conf) File "/usr/src/homeassistant/homeassistant/runner.py", line 190, in run return loop.run_until_complete(setup_and_run_hass(runtime_config)) File "/usr/local/lib/python3.12/asyncio/base_events.py", line 672, in run_until_complete self.run_forever() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 639, in run_forever self._run_once() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1988, in _run_once handle._run() File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, *self._args) File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 319, in async_setup_platform await self._platforms[key].async_setup(platform_config, discovery_info) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 303, in async_setup await self._async_setup_platform(async_create_setup_awaitable) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 363, in _async_setup_platform awaitable = create_eager_task(awaitable, loop=hass.loop) File "/usr/src/homeassistant/homeassistant/util/async_.py", line 37, in create_eager_task return Task(coro, loop=loop, name=name, eager_start=True) File "/config/custom_components/smartir/climate.py", line 85, in async_setup_platform with open(device_json_path) as j:
I think that maybe its a known issue because some other HACS components has been updated recently to fix this “blocking call” problem
Is anyone else facing this issue?
Hi, thank you very much for testing, I will release it today as 1.17.15
You have to now start separating original integration:
and the forked one:
in the fork all of those warnings are fixed now, tested and will be released shortly today in the latest release 1.17.15 - thanks to many new contributors.
Thank you very much for your work to keep the project alive! Just installed your fork right now
Hello, glad i found this thread and thank you for this integration !!
I am trying for the last 2 days to make it work for my AC which is not in the codes list.
I’m using a Broadlink RM4 mini. I set up the broadklink integration, the SmartIR integration and learned all the buttons from my remote using HA remote.learn service.
As a result I have a file generated by HA in the config/.storage directory.
The file looks like this:
{
"version": 1,
"minor_version": 1,
"key": "broadlink_remote_e816567d7ca4_codes",
"data": {
"AC": {
"coolfanauto 18": "JgBAAAABE4IQMQ8RDhMOEg8yDhMOEQ4TDxEOEw4SDhMOMw4RDhIPEg4SDxIOMw4yDxEQMQ8SDjMOEg4TDhEOEw4ADQU=",
"coolfanauto 19": "JgBAAAABFIIQMQ4SDxIPEQ8xDhMOEg4TDhIOEw4SDhMOMg4SDhMOEg4TDzEPEg0SDxIOMw4SDzIPEg4SDxEOMw4ADQU=",
"coolfanauto 20": "JgBAAAABE4IQMQ4TDhIOEw4zDhIPEA8SDhIPEg4SDxIPMg8RDhIOEg4TDzIOEg4zDhMNMw8RDjMPERARDjIPERAADQU=",
"coolfanauto 21": "JgBAAAABFIIPMg4SDhIPEQ4zDhIPEg4SDhMOEg4SDhIPMg4TDhIOEw4SDzEOMw8RDxIOMw4SDjIOEw4SDjMOMw4ADQU=",
"coolfanauto 22": "JgBAAAABEoMQMQ4SDxIPEQ8yDxIOEQ8SDhIPEg4SDhMOMw4RDhMOEg4TDjMOMw4yDhIPMg4SDzIPEQ4zDhIPEg4ADQU=",
"coolfanauto 23": "JgBAAAABE4MPMg4SDxIPEQ0zDhMPEQ4TDhIOEw8RDhIOMw4SDxIOEg4zDhIPEQ4SEBEOMw8REDEOEg4zDhIOMw8ADQU=",
"coolfanauto 24": "JgBAAAABEoMQMQ4SEBEPEQ8yDhMOEg0TDhIOEw8RDhMOMw8RDhIOEg4zDhIPEg4zDhEPMhARDjMOEhAwDzIQEQ4ADQU=",
"coolfanauto 25": "JgBAAAABE4MQM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
"autotemp2": "JgBAAAABE4MPMg4SDxEOEg8yDxIOEhARDhIPEQ4SDxIOMw4SDjMOMg4TDjMOEg4TDhIOMw4SDjMOEg4zDhIOEg8ADQU=",
"autotemp-1": "JgBAAAABE4IQMQ4TDhIOEw8yDhEOEw4SDhMOEg4SDxIOMg4SDzIPMhARDhIPEQ4zDhIOMw4TDjIOEg4TDhIPMg4ADQU=",
"autotemp-2": "JgBAAAABEoQPMg8RDxINEg8yEBEOEg8SDhIPEQ8REBEOMw4SDjMOMg8SDhIOEw4SDxIOMg4SDjMOEw4SDhMOEQ8ADQU=",
"dehumidificationfanauto": "JgBAAAABE4IPMg4TDxEOEw0zDhIPEg8RDxEPEg4SDxEOMw4SEBEOMw4yDhIOEw8RDhMOMw4SDjIOEw4zDjMOEg4ADQU=",
"dehumidificationfanlow": "JgBAAAABE4IQMQ8RDxIOEhAwDxIOEhARDhIPEg4SDxIOMg8RDhMOMw4yDhIOEw4SDhMOEg4TDhIOEg4SDhMOMw4ADQU=",
"dehumidificationfanmed": "JgBAAAABE4IQMg4RDhMOEg8yDxIOEg4TDRIOEw4SDxIOMw8RDxIOMg8yDxEOEw4SDhMNEg8yDxEPEg4SDzIPMQ8ADQU=",
"dehumidificationfanhigh": "JgBAAAABE4IRMQ0TDhIOEw4zDhIOEw4SDhIOEg4TDhIOMw8REBAOMw4zDxEPEg4SDxEOMw4SDxIOEg4zDhIOMw4ADQU=",
"on": "JgBAAAABFIIQMA8SDxEPEg4zDxEPEg0SDxIOEg4TDhIOEw8RDhMNEg8SDxEOMw8yDhMOMg8RDhIQEQ4zDjMOMg4ADQU=",
"off": "JgBAAAABE4IRMBARDhIPEg4zDhIPEQ4SDzIOMw4TDhIOEw4RDhMOEg4TDhIPEg4SDhMNMw8RDjMPEQ8SDhIPMQ8ADQU="
}
}
}
I have placed this file in the smartdir/custom_codes/climate, restarted HA .
and it doesnt work. I tried renaming, making a file like those code files that already exist, nothing works.
Can someone please explain what am i supposed to do with the code file generated by HA after learning the remote ?
thank you very much !
I just switched over to using the fork, restarted etc. Got this error on restart:
But all the docs show config via YAML still.
Do I simply remove smartir:
and add SmartIR again via the Integrations UI? I didn’t see this documented.
Especially given that clicking the link to setup the Integration bring about this:
(I’m on HA 2024.6.2)
smartir: in the configuration file is no longer needed, as you said that is a requirement in the “original” integration only.
This newest fork doesnt need that thats why is not documented
Thanks. I removed smartir:
and rebooted, all seems good so far but I’ll check functionality once I get home. Cheers. It was mainly the link to configure via the UI that threw me.
@litinoveweedle any idea please ? i’m using the new fork but the instructions are not for the less tech savvy . Thank you !
Save it as a .JSON file.
Place it in the custom_codes class climate subdirectory.
/
|-- custom_components/
| |-- smartir/
| |-- init.py
| |-- climate.py
|-- controller.py
| |-- fan.py
| |-- media_player.py
| |-- codes/
| |-- climate/
| |-- 1000.json
| |-- …
| |-- fan/
| |-- 1000.json
| |-- …
| |-- media_player/
| |-- 1000.json
| |-- …
| |-- custom_codes/
| |-- climate/
| |-- Your_file.json
| |-- fan/
| |-- 1000.json
| |-- …
| |-- media_player/
| |-- 1000.json
| |-- …