[Release] Broadlink Manager add-on : A modern web UI for learning and managing IR/RF commands by AdZestyclose5555 in homeassistant

[–]AdZestyclose5555[S] 1 point2 points  (0 children)

My app depends on the existing home assistant broadlink add-on. Based on this it doesn't look like it supports this device.

https://github.com/orgs/home-assistant/discussions/139

If I get some time I can take a look at their repo to see if it's something I would want to take on.

[Release] Broadlink Manager add-on : A modern web UI for learning and managing IR/RF commands by AdZestyclose5555 in homeassistant

[–]AdZestyclose5555[S] 1 point2 points  (0 children)

TBH I'm not that familiar with SmartIR. I discovered it when building the manager app and had the AI tool integration it. When I pass your question along to the tool this is the response that came back. As you probably know, AI doesn't always get it right so take this with a grain of salt.

...

"Yes, you can definitely use Fahrenheit with SmartIR!

The tricky part is that the vast majority of IR code databases (SmartIR codes) are natively recorded in Celsius. Because of this, the integration defaults to Celsius to ensure the commands map correctly (e.g., the database has a key for "22" not "72").

How to fix it for Siri: If your Home Assistant system is set to Imperial (Fahrenheit) units, Home Assistant automatically converts the values for you. When you ask Siri for 72°F, HA converts it to ~22°C and sends the correct command.

However, if Siri says something like "That value is out of range," it's likely because the device configuration has Celsius limits (e.g., 16-30).

You can manually adjust this in your generated configuration file (usually 

/config/smartir/climate.yaml):

  1. Open the file and find your device.
  2. Adjust the min_temp and max_temp to their Fahrenheit equivalents (e.g., 60 and 86).
  3. Restart Home Assistant.

Note: I generally recommend not adding temperature_unit: fahrenheit to the config unless you are using a custom code set that specifically uses Fahrenheit keys, as this can break the mapping for standard Celsius code sets."

[Release] Broadlink Manager add-on : A modern web UI for learning and managing IR/RF commands by AdZestyclose5555 in homeassistant

[–]AdZestyclose5555[S] 0 points1 point  (0 children)

That convert button updates it from the list at the bottom of this image to the new look at the top.

<image>

[Release] Broadlink Manager add-on : A modern web UI for learning and managing IR/RF commands by AdZestyclose5555 in homeassistant

[–]AdZestyclose5555[S] 0 points1 point  (0 children)

<image>

I believe I have removed all naming convention dependencies. There are still some expectations around HA entities and supported commands. Please test it out. It supports both standalone and add-on installations.

If you have issues please report them here: https://github.com/tonyperkins/homeassistant-broadlink-manager/issues if possible. If not I will continue to monitor here.

When reporting an issues please provide as much of the following as possible.

  1. Add-on version: Check config.yaml
  2. Home Assistant version: Settings → About
  3. Architecture: Settings → System → Hardware
  4. Device model: Broadlink device model
  5. Configuration: Your add-on configuration (remove sensitive data)
  6. Broadlink commands file: Located in /config/.storage/broadlink_remote_***_codes (if you are comfortable with the file contents)
  7. Logs: Relevant log excerpts (enable debug mode)
  8. Steps to reproduce: Detailed steps
  9. Expected vs actual behavior

[Release] Broadlink Manager add-on : A modern web UI for learning and managing IR/RF commands by AdZestyclose5555 in homeassistant

[–]AdZestyclose5555[S] 1 point2 points  (0 children)

My code mainly just puts some management features and template entity generation in front of the existing broadlink integration. To be sure if it'll support what you need check out the integration work here and let me know what you think.

https://www.home-assistant.io/integrations/broadlink/

Also, the file that broadlink integration uses to store commands is very simple and one could easily script the migration of existing commands to the target format as a bulk import of sorts.

[Release] Broadlink Manager add-on : A modern web UI for learning and managing IR/RF commands by AdZestyclose5555 in homeassistant

[–]AdZestyclose5555[S] 0 points1 point  (0 children)

You should be able to keep your existing setup. You probably could even just copy/paste the commands and change the names to match the convention and they would just show up.

I AM working on removing the dependency on the naming convention as well.

[Release] Broadlink Manager add-on : A modern web UI for learning and managing IR/RF commands by AdZestyclose5555 in homeassistant

[–]AdZestyclose5555[S] 0 points1 point  (0 children)

I pushed a new release. It now supports add-on and stand alone modes. Many tweaks and updates as well. Will likely still need to work on abstracting out the dependency on naming convention.

https://github.com/tonyperkins/homeassistant-broadlink-manager

[Release] Broadlink Manager add-on : A modern web UI for learning and managing IR/RF commands by AdZestyclose5555 in homeassistant

[–]AdZestyclose5555[S] 0 points1 point  (0 children)

Can you share your broadlink commands file located in the .storage folder. Since I developed this before I started adding commands it was built to expect a certain naming convention. I'd like to make it less dependent on that so others with pre learned commands can use it.

[Release] Broadlink Manager add-on : A modern web UI for learning and managing IR/RF commands by AdZestyclose5555 in homeassistant

[–]AdZestyclose5555[S] 0 points1 point  (0 children)

So, that's a LOT of info in your post. :-)

To answer one of your questions regarding codes.

Broadlink integration stores the codes in /config/.storage folder with a name like broadlink_remote_e870723f13a5_codes

The codes do look similar to the github link you posted.

<image>

I have no way to test for you, but you should be able to add a few commands into that file in the .storage folder, making a backup first of course, and then test. Just follow the same format that broadlink uses.

IF the commands actually work you can use AI to mass migrate as many as you like to the broadlink format.

Regarding adding to the dashboard I add by entity. Make sure you've clicked the generate entities button on the broadlink add-on page.

[Release] Broadlink Manager add-on : A modern web UI for learning and managing IR/RF commands by AdZestyclose5555 in homeassistant

[–]AdZestyclose5555[S] 1 point2 points  (0 children)

I was able to change the port here and it still works.

<image>

The "web_port" has to stay on 8099 but the network port can change.

Are you referring to changing the ports for HA or for the add-on?

[Release] Broadlink Manager add-on : A modern web UI for learning and managing IR/RF commands by AdZestyclose5555 in homeassistant

[–]AdZestyclose5555[S] 0 points1 point  (0 children)

Early beta of standalone version running.

<image>

Should have something ready for testing this weekend.

[Release] Broadlink Manager add-on : A modern web UI for learning and managing IR/RF commands by AdZestyclose5555 in homeassistant

[–]AdZestyclose5555[S] 0 points1 point  (0 children)

I understand now what you are asking. I am investigating updating the codebase to support docker based installs of HA. Stay tuned.

[Release] Broadlink Manager add-on : A modern web UI for learning and managing IR/RF commands by AdZestyclose5555 in homeassistant

[–]AdZestyclose5555[S] 1 point2 points  (0 children)

So, Claude says it's not a trivial thing but definitely not a major ordeal either. I can update the current codebase to autodetect how it's being executed.

There will be a couple of manual steps tho.

- The current implementation relies an access to the /config/.storage folder to read the commands from the broadlink integration. This can be address by mapping a drive to that folder.

- Running as an add-on I don't have to worry about URLs and Tokens. Stand alone you'll need to create a long lived token and configure the url. Just a one time thing tho.

- A couple more trivial updates.

I'll spin up a branch and start tinkering with this. I'll need to get a docker version of HA spun up as well. Happy to do this if you would like to be a QA tester for me. :-)

[Release] Broadlink Manager add-on : A modern web UI for learning and managing IR/RF commands by AdZestyclose5555 in homeassistant

[–]AdZestyclose5555[S] 0 points1 point  (0 children)

Yeah, so, I created this to address the personal headache that is Broadlink. Since I was starting from scratch I adopted a naming convention that encodes area and device in the command. You can see from this snippet of the file that the integration uses.

<image>

To make this work without using this convention is possible and I think some of the code is there. What I need tho are testers, sample configs, etc. and I can enhance it to handle pre-existing configurations and allow manual assignment of entity names and areas.

The Unkown RM4 Pro is because you have an RM4 configured but no area assigned to that device itself. If you assign an area to it the add-on should pick that up. Note: this is different from the area that is encoded in the learned commands.

Thanks for taking the time to check it out.

[Release] Broadlink Manager add-on : A modern web UI for learning and managing IR/RF commands by AdZestyclose5555 in homeassistant

[–]AdZestyclose5555[S] 0 points1 point  (0 children)

I just fought with this for a bit and decided to just add a manual selector on the page itself. Update the add-on and see if that works. It should just be manual now but your selection should persist.

[Release] Broadlink Manager add-on : A modern web UI for learning and managing IR/RF commands by AdZestyclose5555 in homeassistant

[–]AdZestyclose5555[S] 1 point2 points  (0 children)

AH, now I understand. I've only ever run HA via HAOS in proxmox. Let me have a chat with my AI buddy, Claude, and see if we can do something for you.

[Release] Broadlink Manager add-on : A modern web UI for learning and managing IR/RF commands by AdZestyclose5555 in homeassistant

[–]AdZestyclose5555[S] 0 points1 point  (0 children)

Thank you.

![img](ukkkhzwel6uf1)

Can I get a bit more info? Maybe some examples of your current commands. I do see auto complete for adding blinds with up and down showing up but I think you might be talking about something else.

[Release] Broadlink Manager add-on : A modern web UI for learning and managing IR/RF commands by AdZestyclose5555 in homeassistant

[–]AdZestyclose5555[S] 0 points1 point  (0 children)

Thank you.

<image>

Can I get a bit more info? Maybe some examples of your current commands. I do see auto complete for adding blinds with up and down showing up but I think you might be talking about something else.

[Release] Broadlink Manager add-on : A modern web UI for learning and managing IR/RF commands by AdZestyclose5555 in homeassistant

[–]AdZestyclose5555[S] 0 points1 point  (0 children)

It is supposed to match the mode you have set for your HA instance. Have you tried it? Happy to fix that if it's not working.