Git Product home page Git Product logo

Comments (8)

vietdht avatar vietdht commented on September 26, 2024

@bind_hass def send_command(hass, command, entity_id=None, device=None, num_repeats=None, delay_secs=None)
has been remove from /remote/__init__.py
So I try to add it again and it works, don't know if there is any official fix?

from home-assistant-components.

thundergreen avatar thundergreen commented on September 26, 2024

@vietdht where di u change this? Which file. Mine is also broken after updating to 0.80.0

Could you please make a step by tep guide how u fixed it.. i can'T find the code snippet u posted.

from home-assistant-components.

vietdht avatar vietdht commented on September 26, 2024

@thundergreen
I installed HA on raspian, for me, it located at /srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/remote/__init__.py
you can add below code at line 71

@bind_hass
def send_command(hass, command, entity_id=None, device=None,
                 num_repeats=None, delay_secs=None):
    """Send a command to a device."""
    data = {ATTR_COMMAND: command}
    if entity_id:
        data[ATTR_ENTITY_ID] = entity_id

    if device:
        data[ATTR_DEVICE] = device

    if num_repeats:
        data[ATTR_NUM_REPEATS] = num_repeats

    if delay_secs:
        data[ATTR_DELAY_SECS] = delay_secs

    hass.services.call(DOMAIN, SERVICE_SEND_COMMAND, data)

from home-assistant-components.

thundergreen avatar thundergreen commented on September 26, 2024

@vietdht Not sure if this component has been fixed with latest commits? Could the author please give a Statement ;) I need it urgently as I will get another nice feature in a further Beta 0.80.x fir this I need this running as well ;)

from home-assistant-components.

vietdht avatar vietdht commented on September 26, 2024

@thundergreen latest commit seems not work for me, it's broken at init steps.
Keep using my alternative solution :( with 0.80.1

from home-assistant-components.

thundergreen avatar thundergreen commented on September 26, 2024

Thanks reporting back. I'm wondering why the author doesn't take a word here ?

from home-assistant-components.

thundergreen avatar thundergreen commented on September 26, 2024

@vietdht Custom component broke again with latest release 0.84.1. I will not upgrade as I need this component urgently. DO you have an idea whats going on this time? Using the workaround doesn'T seem to work anymore.

Cheers

from home-assistant-components.

Anonym-tsk avatar Anonym-tsk commented on September 26, 2024

@vietdht Please update component from github and try again. It should work.

from home-assistant-components.

Related Issues (12)

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.