Broadlink - Usar Universal Remote APP para obter IR Codes no HASS

Boas,

Descobri como retirar os codigos configurados na app Broadlink Universal Remote Android para usar no HASS.

Aqui vão os passos:

  • Instalar a app broadlink universal control

  • Adicionar device

  • Procurar community based Vodafone TV e testar ate um funcionar

  • Salvar dispositivo na conta e fechar app

  • Usar um file explorer e ir a /Android/data/cn.com.broadlink.econtrol*/cache/let/ircode/

  • Encontrará um ficheiro json com o seguinte formato:

{"status":0,"irDataList":[{"code":"2600bc000a07050b041b0609040b040b040b040b040b040b041604110416040b040b041b040a08000b920e09040b041c050904060a0a040a040b040b040b0416041104160607070a041b050a04000b940e09040b041b050a040a040b0708040b040b040b0416041004160509040b041b060904000b940e09040b051a050a040a040a050b040b040b040b0416050f0416040a0609041b060706000c2f0a090509041c0507070a040b0508071804160515050f0515040a040b041b060904000d05","function":"power","extend":"","type":0,"name":"开关","orderIndex":0},{"code":"2600b40008050a09041b050a0707050a0607070a040b0523050f0614041005100514060904000b900e07070a041c05090717050a040a040b040a0813050f0515050f050f0515050a04000b940a09040b051a050a040a0618040b040b040a0615050f0515050f04100614050a04000b900d09040b041b0609040b040b040b040b040b040a0416050f0614060e04110514060904000c260e09040b051a050a040b0618040b040b04160515050f0515050f0410051505000d05","function":"up","extend":"","type":0,"name":"上","orderIndex":0},{"code":"2600ba00090804070a1a0509040b040a0708040b040b040b0416060f0416060f050f0515050f05000b890e09040b041b06090408080a040b040b040b04080715051005140510050f0416050f05000b890e0906280609040b0509040b040b040b040a0416050f04160510050f0514060f05000b890e09040b041b0609040b040b040b040b040b040a041604110514060f050f0416050f05000c230a09040b051a050a040b0518040b040b04160614050f0416060e060f0415060f05000d05","function":"down","extend":"","type":0,"name":"下","orderIndex":0},{"code":"260090000909040b041b0618040a050a040b040b040b0416050f0614050f060f0415061406000b840d09040b041b0618040b0518040b040a0614060e04160510050f0515051406000b840d09040b051a050a040b0509040b040b040b040b0416050f0614050f060f0416061405000c1b0e09040a061a0518040b040b040a040b04160515050f0515050f050f0515051505000d05","function":"left","extend":"","type":0,"name":"左","orderIndex":0},{"code":"260070000909040b051a0609040b040a040b050a040a05090714050f0614050f04110514061a05000b7f0c0a040b051a050a040b040b040b040b040b040b0515050f0515050f060f0514061a05000c190909040a061a0518040b040b040a040b04160515050f0515050f04100515051a06000d05","function":"right","extend":"","type":0,"name":"右","orderIndex":0},{"code":"2600be00080a040b041c0509040b040b040b040b040b040b04150411051504110410041b060904000b8e0a090708041b0609040b040b040b040b040b040b04160411041604110411041b050a04000b8a1007040b041c0509040b050a040b040c040b040b0416060f041604110410041b060904000b8d0a0a040b041c0609040b040b040b040a040b040b0416050f0416050f050f041c050904000b8a0e090409071a0607070a040b0708040b040b04160614041105140410060f041c050a04000d05","function":"ok","extend":"","type":0,"name":"ok","orderIndex":0},{"code":"260058000001209312131113143611141212131212131113123812371213113912371139113812381113133712131114121311131114111312381312113811391437163211381138130005310001274b12000c5d0001254a13000d05","function":"volume_up","extend":"","type":0,"name":"音量+","orderIndex":0},{"code":"260058000001209213121213113813121213121311141113123812371114113812381138133712371238123713121114121311131213121312131212123811381238123812371139110005340001254b13000c5f0001234a14000d05","function":"volume_down","extend":"","type":0,"name":"音量-","orderIndex":0},{"code":"260098000809040b041b0508070a040b0708050a040a040b0713050f0416050f050f0510050708000b940d070706091a050a050a04080809040b040b040b041604100416041004100411050904000b960d09040b041b050a040b040b0708050a040a040b0515050f0416050f0410060f050906000c2c0a09040a051b050a040a0609040b050a040a05150515050f0416050f050f0411050904000d05","function":"menu","extend":"","type":0,"name":"菜单","orderIndex":0},{"code":"26009600080a040b041b0518040b040b040b040b040b04160410041605150509040b041b06000b890c0a040b041b050a040b040a040b040b040b040b0416050f041605150509040b041c05000b890c0a040b041b040b040b040b040b040b040b040b0416050f041605150509040b041b06000c1d0d09040b041b07080708040a040b040b040b04160614041004160515050a040a071905000d05","function":"back","extend":"","type":0,"name":"返回","orderIndex":0},{"code":"260058000001209311131213123811131213121311141113123811381213123811381238113812381237121311141137121411141113121311141138123811141138113911391039110005340001254b12000c5c0001264b12000d05","function":"mute","extend":"","type":0,"name":"静音","orderIndex":0}],"irInfo":{"cityid":"","providerid":"","irServeVersion":"","brandid":"","irId":194319,"countryId":"","provinceId":"","matchTreeVersion":"","irsource":"UserShared"}}

Cumprimentos,
HP

4 Curtiram

Ou para obter os códigos de cada aparelho podemos usar o programa “Broadlink Manager”. A documentação no site do Home Assistant recomenda:

Link: https://sourceforge.net/projects/broadlink-manager/

1- Instale o Broadlink Manager a partir deste link acima.
2- Abra o aplicativo e clique em “scan” para ativar seu dispositivo de broadlink.
3- Clique em “Learn New Command”, seu Broadlink vai piscar a luz para aprender novo comando. Então use o controle infra-vermelho. Vai aparecer no Broadlink Manager o código.
4- O “OnRawData Base64” é o código a ser usado com o Home Assistant.

1 Curtiu

A vantagem da minha solução é que consegue ter acesso ao user library do broadlink.


Copyright © 2017-2021. Todos os direitos reservados
CPHA.pt - info@cpha.pt


FAQ | Termos de Serviço/Regras | Política de Privacidade