I can’t find any solution for this.
I need this to control my soundbar with Google Assistant.
Every time my voice command use only half command:
Volume up 6 is then volume up 3
Volume up 4 is volume up 2
…
I connected 2 traditional air conditioners to Home Assistant, via Broadlink and SmartIR, they work well. Now I’m trying to add a third one (same as the others…), but I can’t get it to turn on, only turn off…
I attach my configuration:
smartir:
climate:
- platform: smartir
Name: Kitchen air conditioner
unique_id: cucina_ac
device_code: 1128
controller_data: remote.broadlink_rm4_cucina_remote
power_sensor: binary_sensor.ac_power
- platform: smartir
Name: Conditioner studio
unique_id: office_ac
device_code: 1128
controller_data: remote.broadlink_rm4_pro_remote
power_sensor: binary_sensor.ac_power
- platform: smartir
name: Living room air conditioner
unique_id: salotto_ac
device_code: 1128
controller_data: remote.broadlink_mini
power_sensor: binary_sensor.ac_power
Can you help me??
all 3 use the same power_sensor? Maybe that’s what’s wrong
Is this integration still maintained?
The last release is one year old, the last commit is from 8 months ago, and there are more than a hundred open issues and more than a hundred pull requests that seem unanswered.
If the original author can no longer maintain it, I’m willing to step in, or maybe someone else who has already worked on the code can.
The integration uses deprecated code that will be removed in January, so without an update it will stop working for HA 2025.1.
EDIT:
So I just found this fork which seems to be the most up to date one.
I’ll contribute to it, and new users shoulkd be directed there
the first two work well, with the same power sensor (how can I change it?).
The third air conditioner does not turn on, but only turns off.
The integration is the only one I know of, are there alternatives to using Broadlink?
instead of “binary_sensor.ac_power” you need to put the sensor that indicates whether that specific AC is on or off.
Maybe it doesn’t turn on because it thinks it’s already on.
If you don’t have a sensor for that AC, just remove the power_sensor line.
If binary_sensor.ac_power is not specific to any of your AC units, you should remove it from all 3 of them, as at most it will cause confusion.
Also, try upgrading to litinoveweedle’s fork, that may fix your issue.
Here’s my config for reference:
climate:
- platform: smartir
name: AC menjador
unique_id: ac_menjador
device_code: 1522 #1523
controller_data:
remote_entity: remote.ir_menjador
controller_type: Broadlink
delay_secs: 0.5
num_repeats: 1
temperature_sensor: sensor.ikea_of_sweden_vindstyrka_temperature
humidity_sensor: sensor.ikea_of_sweden_vindstyrka_humidity
power_sensor: binary_sensor.ac_menjador_power
power_sensor_delay: 60
power_sensor_restore_state: true
In my case, binary_sensor.ac_menjador_power is a binary_sensor template helper over the power measured by a shelly PM, the template looks like this:
{{ states('sensor.shellypmminig3_5432046a0f10_power') | float > 3 }}
So when the power is above 3 W, it’s ON, below that it’s OFF.
To avoid error messages because no default is given with the above template add a default like float(0)
to that template:
- platform: template
sensors:
ac_menjador:
friendly_name: "AC menjador"
value_template: "{{ states('sensor.shellypmminig3_5432046a0f10_power')|float(0) > 3 }}"
Looks like the original repository is being updated again, so now we have two live forks…
People need to keep in mind which one they are using and adjust their configs to suit, as they arent compatible with each-other.
Also, does anybody know a way to use the Climate functions in SmartIR with temperature increments when using the climate.dosomething actions?
I’m sending commands to HA via Nodered to climate.set_temperature like this {"temperature":"24","hvac_mode":"cool"}
but I’d like to also control the temperature with an increment and decrement by sending it a 1 or -1 without writing a script to do that. I cant see anything in the code for that directly, though there are some temp_step variables that seem to be for thermostat controls, rather than my AC’s simpler setup.
Hi guys, my smartir stopped working today and I’m getting this error
Platform error ‘fan’ from integration ‘smartir’ - cannot import name ‘SUPPORT_SET_SPEED’ from ‘homeassistant.components.fan’ (/usr/src/homeassistant/homeassistant/components/fan/init.py)
Platform error ‘fan’ from integration ‘smartir’ - cannot import name ‘SUPPORT_SET_SPEED’ from ‘homeassistant.components.fan’ (/usr/src/homeassistant/homeassistant/components/fan/init.py)
Platform error ‘fan’ from integration ‘smartir’ - cannot import name ‘SUPPORT_SET_SPEED’ from ‘homeassistant.components.fan’ (/usr/src/homeassistant/homeassistant/components/fan/init.py)
Platform error ‘fan’ from integration ‘smartir’ - cannot import name ‘SUPPORT_SET_SPEED’ from ‘homeassistant.components.fan’ (/usr/src/homeassistant/homeassistant/components/fan/init.py)
Platform error ‘fan’ from integration ‘smartir’ - cannot import name ‘SUPPORT_SET_SPEED’ from ‘homeassistant.components.fan’ (/usr/src/homeassistant/homeassistant/components/fan/init.py)
How do I fix this?
Have you updated SmartIR to the latest 1.17.13, released 2 weeks ago?
Hey guys,
I’ve been using SmartIR for a few years already with no issue, understanding its limitations, however now it’s time for a small improvement…
I have a Daikin AC unit driven by a Broadlink IR blaster. It works perfectly with one limitation - it doesn’t auto-turn-on/off the AC based on the actual temperature vs the target one.
I see in the code that this functionality simply isn’t there, so it makes sense
Am i missing something here ? is there a quick solution (config param that I forgot to set) ?
Do i have to alter the climate.py to add a few conditions to make that happen ?
Do I need to use another integration “over” the climate entity in HA that sends the power on/off command through SmartIR to the AC unit based on the temp ?
Thanks.
LE: I see that litinoveweedle’s fork (which is actually a reimplementation…) seems to have this behavior… I’ll give it a try
I am using zigbee2mqtt with Smartir and ufo-r11.
Commands are not being send to the IR unit from the Smartir card.
Commads successfully send from the zigbee2mqtt console.
In the log I see that the command was sent but the unit does not repeat it.
My code:
`climate:
- platform: smartir
name: AC1
unique_id: AC1
device_code: 333
controller_data: zigbee2mqtt/IRRemote2/set`
the 333.json file was converted from base64 to raw and the commamds in it are correct.
I created the codes for the Philco PH9000QFM, where can I post them to contribute to the project?
On the Github repo
Is there a way to convert codes for e. g. Broadlink to codes for e. g. ESPhome without relearning all the IR-Keys? Can somebody point me to instructions?
Thanks.
Which fork do you suggest we use? I was using the official original, but wondering if I should use the other?
My fan remote has DIP switches to configure which fan it is controlling. Possible to add support for that?
I think you will find that the codes being sent out by the remote are different when you change those DIP switches, so there is nothing to add support for, you simply need to learn the codes again once you change the switches.
Or Convert SmartIR Broadlink commands to Tuya for the Tuya Zigbee IR blasters.
My Daikin Aircon unit supports separate horizontal and vertical swing modes. Have I implemented it correctly?
"swingModes": [
"Off",
"Vertical",
"Horizontal",
"Both",
],
I’m wondering as I had learnt everything with both swing on only (so no option to change). I’m now relearning every command with all swing options (meaning 4x commands) and before I make it live, I want to make sure I’m correct, given the recent home assistant climate swing changes