molexx / irdb2broadlinkha Goto Github PK
View Code? Open in Web Editor NEWScript to scrape IR codes from irdb or parse lirc configs, convert them to Broadlink and output HASS' yaml
License: Apache License 2.0
Script to scrape IR codes from irdb or parse lirc configs, convert them to Broadlink and output HASS' yaml
License: Apache License 2.0
When attempting to run the following command:
./irdb2broadlinkha.bash frigidaire/WF-RG63.lircd.conf prfx_
I get the following errors:
pronto2broadlink.py found at 'irdb2broadlinkha-work/pronto2broadlink.py'.
irptransmogrifier found at 'irdb2broadlinkha-work/irptransmogrifier'.
path 'frigidaire/WF-RG63.lircd.conf' ends in .conf, assuming a lirc conf, downloading file...
downloading lirc config from 'https://sourceforge.net/p/lirc-remotes/code/ci/master/tree/remotes/frigidaire/WF-RG63.lircd.conf?format=raw' to 'irdb2broadlinkha-work/lircd.conf'...
downloaded lirc config to 'irdb2broadlinkha-work/lircd.conf'.
converting lirc config to irp using irptransmogrifier...
irp created.
function: 'KEY_POWER', code: '0x10AF8877', comment: ''.
running irptransmogrifier for 'KEY_POWER', code: '0x10AF8877'...
Parameter F = 279939191 is outside of the allowed domain: 0..0
pronto:
Traceback (most recent call last):
File "irdb2broadlinkha-work/pronto2broadlink.py", line 44, in <module>
pulses = pronto2lirc(pronto)
File "irdb2broadlinkha-work/pronto2broadlink.py", line 7, in pronto2lirc
if codes[0]:
IndexError: list index out of range
BroadlinkHex:
writing yaml entry for 'prfx_KEY_POWER' (sanitized: 'prfx_key_power')...
'prfx_key_power':
friendly_name: "prfx_KEY_POWER"
command_on: ''
function: 'KEY_LEFT', code: '0x10AF20DF', comment: ''.
running irptransmogrifier for 'KEY_LEFT', code: '0x10AF20DF'...
Parameter F = 279912671 is outside of the allowed domain: 0..0
pronto:
Traceback (most recent call last):
File "irdb2broadlinkha-work/pronto2broadlink.py", line 44, in <module>
pulses = pronto2lirc(pronto)
File "irdb2broadlinkha-work/pronto2broadlink.py", line 7, in pronto2lirc
if codes[0]:
IndexError: list index out of range
BroadlinkHex:
writing yaml entry for 'prfx_KEY_LEFT' (sanitized: 'prfx_key_left')...
'prfx_key_left':
friendly_name: "prfx_KEY_LEFT"
command_on: ''
function: 'KEY_UP', code: '0x10AF708F', comment: ''.
[...]
done looping around buttons.
With the relevant error seeming to be the title of this issue. The stdout which would redirect to a file just has a bunch of entries like this:
'prfx_key_left':
friendly_name: "prfx_KEY_LEFT"
command_on: ''
$ ./irdb2broadlinkha.bash motorola/VIP_1510.lircd.conf vip_1510_ > t.yaml
(...)
function: 'KEY_POWER', code: '0xF7F6', comment: '# Was: power'.
running irptransmogrifier for 'KEY_POWER', code: '0xF7F6'...
Cannot not use --irp together with named protocols
Use "IrpTransmogrifier help" or "IrpTransmogrifier help --short"
for command syntax.
pronto:
Traceback (most recent call last):
File "irdb2broadlinkha-work/pronto2broadlink.py", line 44, in <module>
pulses = pronto2lirc(pronto)
File "irdb2broadlinkha-work/pronto2broadlink.py", line 7, in pronto2lirc
if codes[0]:
IndexError: list index out of range
BroadlinkHex:
writing yaml entry for 'vip_1510_KEY_POWER' (sanitized: 'vip_1510_key_power')...
'vip_1510_key_power':
friendly_name: "vip_1510_KEY_POWER"
command_on: ''
done looping around buttons.
Hello,
Is it also possible to convert all existing remotes from irdb and lirc to yaml ?
If not could you change the code so it loops through every remote listed ?
Because I would like to put this script on my VPS and let it generate the yaml files for all existing remotes in those databases and then upload them to github for everyone to use.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.