I’m looking for a few weeks now to migrate to Hass.io.
The issue I’ve is that I’m using some X10 devices with a CM11a controller. As far as I know I need the Heyu package to get this working.
I want to know if there is an addon with Heyu for Hass.io? Or another way to get the CM11a working with Hass.io?
Maybe there is someone who can help me to make a start with this addon myself?
As follow-up to this, for a hassio installation you do need Heyu which is not available as an add-on. I tried to add the lines to my configuration.yaml but received the error:
2018-02-22 15:33:00 ERROR (MainThread) [homeassistant.components.light] Error while setting up platform x10
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 84, in async_setup
SLOW_SETUP_MAX_WAIT, loop=hass.loop)
File "/usr/lib/python3.6/asyncio/tasks.py", line 358, in wait_for
return fut.result()
File "/usr/lib/python3.6/asyncio/futures.py", line 245, in result
raise self._exception
File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/lib/python3.6/site-packages/homeassistant/components/light/x10.py", line 45, in setup_platform
x10_command('info')
File "/usr/lib/python3.6/site-packages/homeassistant/components/light/x10.py", line 33, in x10_command
return check_output(['heyu'] + command.split(' '), stderr=STDOUT)
File "/usr/lib/python3.6/subprocess.py", line 336, in check_output
**kwargs).stdout
File "/usr/lib/python3.6/subprocess.py", line 403, in run
with Popen(*popenargs, **kwargs) as process:
File "/usr/lib/python3.6/subprocess.py", line 709, in __init__
restore_signals, start_new_session)
File "/usr/lib/python3.6/subprocess.py", line 1344, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'heyu': 'heyu'
I have a great deal of X10 installed (probably 25 or more modules) and had it working great with google assistant and habridge (which is a phillips hue emulator) until google disabled local network hue access. I started looking for an alternative and came across home assistant. I initially loaded hass.io but could not get heyu installed due to the nature of the hass.io OS. I ended up installing home assistant hassbian. Followed the X10 guide and got it working along with google assistant support. I will tell you beforehand is was a bit of work, I had to register to use sdk with google as well as getting static IPs and https certificates working on Hassbian.
Thanks, I really like hass.io so I’m hoping a Heyu add-on will be made. I posted here about it. I just don’t know enough about converting shell script to bash.
I’m willing to pay for it so maybe I can try that route to see if someone can help us out.
His docker container is configured to run an x86 container. A pi is ARM and will never actually run that container. You would need an image built for a pi. Looking at his scripts, he is pointing to x86/64 scripts to pull down. You need something built for ARM
Ahh ok thanks for explaining. I’m going to see if someone wants to help me convert it to ARM then and I’ll offer to pay for it. Then maybe if the author allows it we could put it up for the public to enjoy. I posted a msg in the HA discord channel to see if there is forum category or proper place to post an offer like this. Thanks for your help.
Line 7: Adding the new Linux ARM download file link in Line 7
Line 8: Adding the new Linux ARM file’s SHA256 code at beginning (just assumed this? the new code seems longer than the previous one) and also adding new filename and the end of the line (replacing the previous ZIP file name)
Line 9: Removed “unzip” and changed to “tar xzf” and added new Linux ARM filename
Those were all the changes I made to the dockerfile. I assumed my Pi3 isn’t ARM 64, just ARM.
Thanks for your work Nitroedge, based on that I took out the problem causing the error and now have an installing heyu docker add-on for hass.io. Next step is testing if it acutally works and maybe add something for the config.
Anyway, here are my instructions to get an local docker add-on for heyu which at least will install.
Create a folder called heyu-addon in the /addons folder of your pi
Create a file called Dockerfile with the following content:
I am attemting to implement this and hot having much luck. So far…
SSH into the Pi, create the heyu-addon folder inside of /addons
create the Dockerfile with the content above and fixed using JSONLint.com, breaking the file apart before the line beginning with 4.
Then created the heyu-run.sh file, chmod a+x to make it executable.
No dice executing it, I get:
core-ssh:/addons/heyu-addon# ./heyu-run.sh
: No such file or directoryn/sh
./heyu-run.sh: line 2: $’\r’: command not found
./heyu-run.sh: line 34: syntax error near unexpected token elif' '/heyu-run.sh: line 34: elif [ “$REQUEST_METHOD” = “POST” ]; then
Trying to do some debugging on it now. Anybody got this working?