With 3 Broadlink devices?
Add every Broadlink device through the Broadlink Integration one by one.
Settings → Devices & Services → Add Integration → Broadlink
With 3 Broadlink devices?
Add every Broadlink device through the Broadlink Integration one by one.
Settings → Devices & Services → Add Integration → Broadlink
ok I have already added them but how can I use them with smartir?
Check for the entities of the newly added Broadlink devices. Add those to configuration.yaml like this:
smartir:
climate:
- platform: smartir
name: AC Cameretta
unique_id: ac_cameretta
device_code: <device code for model of Cameretta AC>
delay: 0.5
controller_data: <remote.broadlink_entity_1>
temperature_sensor: <sensor.temperature_1>
humidity_sensor: <sensor.humidity_1>
power_sensor: <binary_sensor._1>
- platform: smartir
name: AC Cucina
unique_id: ac_cucina
device_code: <device code for Cucina AC>
delay: 0.5
controller_data: <remote.broadlink_entity_2>
temperature_sensor: <sensor.temperature_2>
humidity_sensor: <sensor.humidity_2>
power_sensor: <binary_sensor._2>
- platform: smartir
name: AC Salotto
unique_id: ac_saloto
device_code: <device code for Salotto AC>
delay: 0.5
controller_data: <remote.broadlink_entity_3>
temperature_sensor: <sensor.temperature_3>
humidity_sensor: <sensor.humidity_3>
power_sensor: <binary_sensor._3>
Change all inbetween < …> to your actual sensors/devices/entities!
After you have done the above, check the new configuration:
Developer Tools → Check configuration
before restarting HA!
Btw, by configuring:
delay: 0.5
within the configuration block as above you don’t need to add delays like
- delay:
hours: 0
minutes: 0
seconds: 2
milliseconds: 0
within your automations for SmartIR if you have configured multiple hvac-actions with your automations.
delay: 0.5
(or whatever delay time you set here) defines a 0.5 seconds delay for that device inbetween multiple hvac commands thus those delay:
-settings within your atomations are not needed.
thanks it seems that this is fine you just have to try that all the coders turn on
Hi. This integration sounds like something i need to control my dump, IR controlled fans/air purifiers.
But i read the SmartIR documentation and im struggling to wrap my head around it.
Ive already have learned the relevant IR comamnds via
"data": {
"Homedics AR-29": {
"fan_speed": "JgBgAAABJpMTExQSFBIUExMTExMTExMTFDcTNxQ3EzcUNxM3FDcTNxQSFBIUExM3ExMUEhQTExMTNxQ3EzcUEhQ3EzcUNxM3FAAE/gABLEkUAAxPAAEoShQADE8AASpKFAANBQAAAAAAAA==",
"oscillation": "JgBYAAABJpMUEhQTExMTExMTFBIUEhQTEzcTNxQ3EzcUNxM3FDcTNxQSFBMTExMTFBIUEhQSFBMTNxQ3EzcUNxM3FDcTNxQ3EwAE/wABLUkUAAxQAAErSxIADQUAAAAAAAAAAAAAAAAAAA==",
"power": "JgBYAAABJ5IVERQSFRIUEhMTFREVEhMTEzcUNxQ3EzcUNxM3FDcTNxQTExMUEhQSFTYTExMTFBIUNxM3FTYTNxQSFTYTNxQ3EwAE/wABK0oTAAxNAAErSRQADQUAAAAAAAAAAAAAAAAAAA==",
"timer": "JgBYAAABJZQTExMTExMUEhQSFBMTExMTEzcUNxM3FDcTNxQ3EzcUNxMTFBIUNxM3FBMTExMTExMUNxU1FBIUExM3FDcTNxQ3EwAFAAABLUgUAAxRAAEqShMADQUAAAAAAAAAAAAAAAAAAA==",
"uvc_light": "JgBoAAABJpMVEhQSFBIVEhQSFBIUExQSEzcUNhQ3EzcUNxM3FDcTNxQTExMTNxQTExIUExMTExMTNxQ3FBITNxQ3EzcUNxM3FAAE/wABKkoUAAxPAAErSBQADFMAASZJEwAMUAABKkoTAA0FAAAAAAAAAAAAAAAAAAA="
},
All the buttons switch between states (2 or 3), when the fan is turned on it remembers previous settings.
But how can i do a SmartIR definition file out of it? I cannot find any documentation about the format of SmartIR code definition files.
Even if i create a definition file, how can i use it before its merged? Looking at the Github it takes some time to have a PR merged.
And last but not least, i dont really understand why SmartIR has own IR definitions? Couldnt it just use IR codes which already have been learned in the broadlink/other integration, or have IR codes defined in the config?
All the buttons switch between states (2 or 3), when the fan is turned on it remembers previous settings. But how can i do a SmartIR definition file out of it? I cannot find any documentation about the format of SmartIR code definition files.
I just grabbed an existing file and changed the codes.
Even if i create a definition file, how can i use it before its merged? Looking at the Github it takes some time to have a PR merged.
Do a pull request, then just copy the file to your HA locally. That’s fairly easy when you run HA Core, but should be possible on any HA install. I have instructions about 10 - 20 posts above.
And last but not least, i dont really understand why SmartIR has own IR definitions? Couldnt it just use IR codes which already have been learned in the broadlink/other integration, or have IR codes defined in the config?
It is what it is, I guess.
Thanks for this example, still trying to learn how everything works and I didn’t realize that the SmartIR plug in creates a “climate” service. Had been trying to figure out how to access this for days and just about had given up.
Trying to fix my installation but HA gives me a unique_id error (This entity does not have a unique ID) when I add a thermostat card.
climate:
- platform: smartir
name: Thermopompe
unique_id: thermopompe
device_code: 1500
controller_data: remote.broadlink_remote
temperature_sensor: sensor.temperature
humidity_sensor: sensor.humidity
Thermostat card has this:
type: thermostat
entity: climate.thermopompe
What am I missing?
Have a look at my config above, post 1218 or so, not far above. Do you have “smartir:” in your config separate to the “climate:”? When and where are you seeing that error - in the UI, in the logs, etc?
Look-up the referring entity through Developer Tools. Is it really "climate.thermopompe"
?
Yes I do
smartir:
climate:
- platform: smartir
name: Thermopompe
unique_id: thermopompe
device_code: 1500
controller_data: remote.broadlink_remote
temperature_sensor: sensor.temperature
humidity_sensor: sensor.humidity
I see the error when I add the thermostat card in the UI. I load the card, then upper right 3 dot, then settings.
The thermostat card give me only this options. Shouldn’t supposed to offer only choice that are available?
Check with Developert Tools → States → climate.thermopompe
Does this correctly reflect the state of the entity climate.thermopompe ?
As a sample how a working climate entity should look like:
I believe I found the issue. The device_code 1500 is a new file I am setting currently. Looks like something is wrong because when I reverted it to 1129 ( the closest to my model) it worked.
@Vassilis Are you looking to add new codes to your repository? I have most or the IR codes to control an Amazon Fire TV 55" Omni Series 4K UHD smart TV, hands-free with Alexa
SKU number 4K55M600A
I believe at minimum these codes should be compatible with Fire TV 4-Series and Fire TV Omni Series because those use the same remote. There are IR codes that work with other Amazon Fire streaming devices if you add an IR receiver. I don’t know if any of these codes work with those devices yet.
All below tested with Amazon Fire TV 55" Omni Series 4K UHD smart TV, hands-free with Alexa
SKU number 4K55M600A
"firetv": {
"power": "JgBQAAABJpISEBI2EhASEBIQEhASEBIQEjYSEBI2EjYSNhI2EjYSEBIQEjYSNhIQEhASEBI2EhASNhIQEhAPORI2EjYSEBI2EgAFSwABJkoSAA0FAAAAAAAAAAA=",
"volumeup": "JgBQAAABJJURFBA4ERQSExATERQQFBETETkTERE5EDgUNRE5FDURFBISERMROBQ1ERQQFBETERQTNhE4ERMRFBA5FDURORM2EAAFQwABKEcRAA0FAAAAAAAAAAA=",
"volumedown": "JgBQAAABKJERFBE4ERMUERAUEBQRFBAVEDgRFRI2ETgROBQ1ETkUEBE5ExEQFBE4FDURFRIRERQTERE5EDgUERAVEDgTNxE4EQAFQwABJUoRAA0FAAAAAAAAAAA=",
"mute": "JgBQAAABJpMTERM2ExETERMRExETERMREzgSERM2EzYTNhM2EzYTERMRExETNhM2ExETERM2ExETNhM2ExEQFBM2EzYTERM2EwAFQAABJ0kTAA0FAAAAAAAAAAA=",
"up": "JgBQAAABKJETERM2ExESEhMRExETERMREzYTERM2EzYTNhM2EzYTERMREhITERM2ExETERM2ExETNhM2EzYTERM2EzYSEhM2EwAFQAABKEgTAA0FAAAAAAAAAAA=",
"down": "JgBQAAABJZQTEhE4EBQRExMSExETEREUETgRFBE4EjcTNhE4FDYRExM2ERQSNxM2ERMRFBE4EhMRExI3EBQRExE5ETgTEhI3EgAFQgABJEsRAA0FAAAAAAAAAAA=",
"left": "JgBQAAABKJAUDxA4ERITDxMRDhMTERIPEzYRERM1EDgQOQ85ETcTEA8UETYSNhM2DxQSEBM1EBQOORERExEPEw85EDgTEA85EAAFQgABJkoTAA0FAAAAAAAAAAA=",
"right": "JgBQAAABKJARFBI3ERMRExAUExESExAUEDkQFBE4ETgRORI2EzYRExE5ERMRExE4ERQSExA4ERMQFRA4ETgRExE5EjcSEhE4EAAFQwABKEgRAA0FAAAAAAAAAAA=",
"menu": "JgBQAAABJ5ESEBI2EhASEBIQEhASEBIQEjYSEhI2EjYSNhI2EjYSEBI2EhASNhIRERASEBI2EhASEBI2EhASNhI2EjYSEBI2EgAFTgABKEgSAA0FAAAAAAAAAAA=",
"back": "JgBQAAABJ5MSEBI2EhASEBIQEhASEBIQEjYSEBI2EjYSNhI2EjYSEBI2EhASNhI2EhASEBUPEhASEBI2EhASEBI2EjYSNhI2DwAFQgABKEkRAA0FAAAAAAAAAAA=",
"previous": "JgBQAAABJZUTERM2ExETERMRExETERMREzYTERM2EjcTNhM2EzYTERMREzYTNhMREzYTERMRExETNhMRExETNhMREzYTNhM2EwAFQAABJ0kTAA0FAAAAAAAAAAA=",
"next": "JgBQAAABKJESEBI2EhASEBIQEhAPExIQEjYSEBI2EjYSNhI2EjYSEBI2EjYSNhIQEjYSEBIQEhASEBIQEhASNhIQEjYSNhI2EgAFQAABKEgSAA0FAAAAAAAAAAA=",
"play": "JgBQAAABJpISEBI2EhASEBIQEhASEBMPEzYSEBI2ETcSNhI2EjYSEBI2EjYSEBI2EjYSEBI2EhAPExIQEjYSEBIQEjYSEBI2EgAFQAABJ0kSAA0FAAAAAAAAAAA=",
"enter": "JgBQAAABJ5MSERM2ExETERMRExETERMREzYTERM2EjcTNhM2EzYTERMREzYTERM2ExETERM2ExETNhISEzYTERM2EzYTERM2EwAFQQABJ0gTAA0FAAAAAAAAAAA=",
"guide": "JgBQAAABJJQSEBI2EhASEBIQEhASEBIQEjYSEBI2EjYSNRM2EjYSEBIQEhASNhIQEjYRERIQEhASNhI2EhASNhIQEjUTNhI2EgAFQAABKEgSAA0FAAAAAAAAAAA=",
"channeldown": "JgBQAAABKJISEBI2EhASEBIQEhASEBIQEjYSEBI2DzkSNhI2EjYSEBIQEjYSEBI2EjYSEBI2EhASNhIQEjYSEBIQEjYSEBI2EgAFUgABKEgSAA0FAAAAAAAAAAA=",
"channelup": "JgBQAAABJ5ITERI3ExETERMRExETERMREzYTERM2EzgTNhM1FDYTERM2EzYTNhM2ExETERMRExETERMSEhETERM2EzYTNhM2EwAFQQABJ0gTAA0FAAAAAAAAAAA="
MISSING:
Microphone
Home
Settings
Recent
Those json-files can be a real PITA. Always wise to validate after editing before putting them into use.
hello all,
i have 4 RM4mini and 4 old Haier ACs.
1320, 1321 and 1322 codes are not working for me.
since there are no available codes, can someone tell me how to learn these codes?
i can control ACs via mobile Broadlink application…
is there a learn script available for ACs ?
Go to HA developer tools. Under the services tab use the learn service.
There is also a windows app and Android app.
broadlink manager does not seem to support rm4mini
in android i know only the official broadlink app…
as far as i saw, learning an AC remote is a big trouble, 5 modes * 15 temperatures, plus all other buttons…
I find it easier using HA. The UI makes it pretty easy. Then I open up the .storage directory in the config directory and copy the entire file with all the codes. There will be a file for each Broadlink blaster if you have multiple. Make sure to grab the right one ot just grab them all. Then open up the copy of the files. Don’t edit the original files! I do but you do as I say and not as I do. lol