GithubHelp home page GithubHelp logo

keitetran / broadlinkirtools Goto Github PK

View Code? Open in Web Editor NEW
22.0 22.0 28.0 1021 KB

Broadlink learn command helper.

Home Page: https://keitetran.github.io/BroadlinkIRTools/dist/#/

HTML 0.38% JavaScript 38.30% Vue 61.32%

broadlinkirtools's People

Contributors

keitetran avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

broadlinkirtools's Issues

cannot connect to broadlink

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

precision step

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

Error service not found

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

Publish unminified code

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.

Broadlink Service

Home assistant broadlink service has changed to broadlink.learn can you please update the code. Thanks

Home Assistant - API password deprecated

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.

Summary - Broken and Attempted fixes

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!
Screen Shot 2022-06-06 at 1 03 10 PM

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

  • How did HA return back the code earier
  • How can we get the same code now! Last option is always to parse the storage file located under .storage directory

Template render freezes if the temperature range is 16-30

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

Small issue with double quotes

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!

Connected but not receiving codes

Screenshot
Hi,

I have connected the tool to my HA version 0.102.0, but it get stuck trying to receive a command.
Please see screenshot attached.

Any idea ?

Thank you,

Simone

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.