Comments (8)
@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.
@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.
@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.
@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.
@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.
Thanks reporting back. I'm wondering why the author doesn't take a word here ?
from home-assistant-components.
@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.
@vietdht Please update component from github and try again. It should work.
from home-assistant-components.
Related Issues (12)
- 0.89 Xiaomi IR Climate stopped working HOT 3
- Error creating commands file HOT 1
- Suggestion: Custom Updater support
- Add compatibility fir latest releaseasw0.96 HOT 3
- Automatic mode temperature setting HOT 10
- Temp in climate component shows set temp instead of actual temp HOT 1
- Issue working with Appdaemon HEATY HOT 1
- Add this component to offial release HOT 1
- Restore state doesn't work HOT 4
- Remote IR switch HOT 1
- Remote IR Vaccum
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from home-assistant-components.