Git Product home page Git Product logo

Comments (1)

PRProd avatar PRProd commented on May 24, 2024 1

Hello @CountParadox!

You'll be happy to know that the ability to do this is already included in the current version of Firemote!

In November of 2022, version 1.8.0 was released with new functionality which allows you to override any standard remote button with a Home Assistant script. A few months later, In March of this year, version 2.0.3 was released which added the ability to use the card's YAML config to send a custom service call without the need for a separate script! Both of these options are still included in the latest version of Firemote.

Full documentation for how this works can be found in the README.md file under the Button Overrides heading.

In your case, I would imagine that adding something like this to your Firemote card's YAML config would do the trick:

button_overrides:
  power-button:
    service: { CHANGE THIS TO THE APPROPRIATE NAME OF YOUR IR BLASTER SERVICE CALL }
    target:
      entity_id: { CHANGE THIS TO THE ENTITY ID OF YOUR IR BLASTER }
    data:
      { YOUR PROPERTY } : { YOUR VALUE }

I'm unable to properly guess the exact details of your situation since I don't have your IR blaster, so everything above in between the { BRACKETS } will need to be figured out by you.

Alternatively, you could always build a script that does what you need, and add something like this to your card's YAML config:

button_overrides:
  power-button:
    script: { THE NAME OF YOUR SCRIPT }

Hopefully this answers your questions. If not, please let me know and I'll be happy to help!

-Doug

from ha-firemote.

Related Issues (20)

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.