keitetran / broadlinkirtools Goto Github PK
View Code? Open in Web Editor NEWBroadlink learn command helper.
Home Page: https://keitetran.github.io/BroadlinkIRTools/dist/#/
Broadlink learn command helper.
Home Page: https://keitetran.github.io/BroadlinkIRTools/dist/#/
Hi, Mr.Anh
Good job man
Can you add a precision step with 2 options?, My AC has "precision": 0.5 and I can't use your code to make *.json .
Thanks
Hi, There are small issue with the tool, it's leading the problem to my Hass that the climate was not appeared on the dashboard.
The error "Temperature only accept the number" also throw.
Please make small change on your tool, that when generate the file .json, remove double quotes on "maxTemperature": "30" to "maxTemperature": 30 (integer).
Happy coding!
hi,
i'm trying to get my ac codes from your app.
i manage to connect to hassio and set the token and broadlink rm pro address.
i get the codes but when i click the learn icon i get an error message
ERROR
'ip of boardlink'
i can't understand what is wrong.
your help will be appreciated.
thanks
mor
Only the "OFF" command is provided by default. "ON" is not and this is an issue for remotes where ON/OFF are not the same command.
As of HA 0.115 update the broadlink integration no longer uses broadlink.learn.
Instead remote.learn_command is used.
Hi, i run HA internally without https.
Is there anyway to run your tool locally?
What password i need enter? I test longlive token and user password. Auth is fail.
Hello,
Every time I click to learn a command I get the message "error, service not found".
What does it mean and how do I fix it?
Thank you
Just wondering, with HA deprecating the API password functionality, and with it about to be removed (not sure when, but they keep on promising that it will disappear very soon) do you have a plan for how this might work in the future.
I used this tool to capture my A/C codes for all temperature, modes, etc. It took about 20 minutes. Without this tool it would have taken me hours upon hours, so I would hate to see it disappear - it is truly amazing.
Tried in chrome and firefox, in both cases js enters endless loop. When I break it I get stack trace:
Error: Script terminated by timeout at:
get@https://keitetran.github.io/BroadlinkIRTools/vendor.js:7:7014
vn/hn.get@https://keitetran.github.io/BroadlinkIRTools/vendor.js:7:27540
sendCmdTempList@https://keitetran.github.io/BroadlinkIRTools/main.js:1:5580
19/</pn.prototype.get@https://keitetran.github.io/BroadlinkIRTools/vendor.js:7:26003
19/</pn.prototype.evaluate@https://keitetran.github.io/BroadlinkIRTools/vendor.js:7:27160
bn/<@https://keitetran.github.io/BroadlinkIRTools/vendor.js:7:29072
setupComponent/</</<@https://keitetran.github.io/BroadlinkIRTools/main.js:1:7916
setupComponent/</<@https://keitetran.github.io/BroadlinkIRTools/main.js:1:7885
setupComponent/<@https://keitetran.github.io/BroadlinkIRTools/main.js:1:7823
It is really hard to follow changes in your minified code and not possible to contribute fixes to your repo. Also hard to verify that your code doesn't send private data to your server.
Home assistant broadlink service has changed to broadlink.learn can you please update the code. Thanks
As this tool was broken for new versions of HA,
Tried to change the WebSocket API and the commands to work with the new versions :
sendBroadlinkLearnCmd(targetKey) {
store.state.socket.send(JSON.stringify({
id: store.state.socketId++,
type: "call_service",
service: "learn_command",
domain: "remote",
service_data: {
command: targetKey,
command_type: "ir",
device: "remote.corridor_pro_controller_remote",
timeout: 10
},
target: {
entity_id: "remote.corridor_pro_controller_remote"
}
}));
},
Sadly, the new learn_command
does not give back, it only stores the same into the file. I confirmed this via the source code in HA Core's Broadlink integration: Function async_learn_command, Line
Screenshot after the change! Command is sent successfully, but the response is just the notification!
Even earlier the HA's remote.py's learn command function did not return anything, but based on this project, I think, we are expecting an event type of state changed with the irCode let irCode = message.replace("Received packet is: ", "");
Perma Link to the function
As of now, only thing that HA send back is
{
"id": 70,
"type": "event",
"event": {
"event_type": "state_changed",
"data": {
"entity_id": "persistent_notification.learn_command",
"old_state": null,
"new_state": {
"entity_id": "persistent_notification.learn_command",
"state": "notifying",
"attributes": {
"message": "Press the 'cool_auto_19' button.",
"title": "Learn command",
"friendly_name": "Learn command"
},
"last_changed": "2022-06-06T16:55:16.622753+00:00",
"last_updated": "2022-06-06T16:55:16.622753+00:00",
"context": {
"id": "01G4WZ2BWEB9TXFT4CMG6R21M2",
"parent_id": null,
"user_id": null
}
}
},
"origin": "LOCAL",
"time_fired": "2022-06-06T16:55:16.622753+00:00",
"context": {
"id": "01G4WZ2BWEB9TXFT4CMG6R21M2",
"parent_id": null,
"user_id": null
}
}
}
I wonder
.storage
directoryA 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.