Script to generate Broadlink IR code yaml from irdb or lirc configs

I’ve written a script which takes the path to a device on irdb (, converts the codes to the correct format and outputs HomeAssistant yaml:

As the resulting yaml is quite long I suggest using one file per remote, putting those in a directory and including all of them using !include_dir_merge_named - example in the readme.

edit added lirc config parsing too