X10 Community Forum

💬General Category => Mac/Linux & Open Source and the X10 Home => Raspberry Pi, Arduino & other SBC => Topic started by: mike on August 19, 2018, 04:36:15 PM

Title: OPENhabPI -- next gen to AHP?
Post by: mike on August 19, 2018, 04:36:15 PM
folks, consider this for AHP update.

Here is my expience so far...

Check out OpenHab.org

Has interfaces to 1,000's of hardware devices - yes, including CM11 and CM15 X10...  Many running on Rasberry Pi's...  Built in Alexa control I understand (we got one for last Christmas but REFUSE to turn it on - privacy you know).  Folks are using it with IFTTT and Stringify to interface to cell phones, cameras, camera alert messages, etc., etc...

Buy Pi zero W, $10, Arduino.com  $5 shipping in a few days.

Make 16gb bootable raspbian memory card with simple instructions here:
https://www.openhab.org/docs/installation/openhabian.html#quick-start

DO NOT USE SEPARATE USB POWER CONNECTION!  I AND OTHERS HAVE BURNED OUT THE PI THIS WAY - NOT NEEDED!

I used a powered USB hub I had hanging around.  Plugged in computer (to get power), mouse, keyboard, my phone to charge while working, and the Pi.  Plug in mini HDMI to display if you have one to watch the installation process!

Nothing is SUPPOSED to be required except the mem card you made and usb to power it! 

I found I wanted to see what was happening so plugged in the display.

I figured my network security settings would not let it navigate to the internet thru my wireless network to complete the automatic setup of OpenHab program, and I was correct.  So off to the further detailed instructions mentioned in the quick start link above:  it says "If you encounter any setup problem, please continue here" and took me to more details to fix my wifi password entry issue...

NOW they tell me!!:

For the setup on Wi-Fi, you'll need to make your SSID and password known to the system before the first boot. The following steps are needed:

    Flash the system image to your micro SD card as described, do not remove the SD card yet
    Access the first SD card partition from the file explorer of your choice (e.g. Windows file explorer)
    Open the file openhabian.conf in a text editor
    Uncomment and fill in wifi_ssid="My Wi-Fi SSID" and wifi_psk="password123"
    Save, Unmount, Insert, Boot
    Continue with the instructions for the Raspberry Pi

OK.  Since the first install on mem card went so well, I am going to START OVER and do this!  Display shows it asking for some username...   I'm going back and doing it automatic!

WOW!   Did I say WOW yet??  WOW!!!   It installed on Pi, it is off to internet downloading stuff!!!

OMG.  I do not believe this...  Even an Orangutan could do this!  I sure hope this pans out and is worth it!  Object to me is to replace AHP with a server that is accessible to all computers in my network...

2 hours later I am back at computer...   Wow.  server is on and running on my network!  I have no clue what to do with it, but it seems to have guidance and wants me to pick certain install stuff... I will later tonight. 

So far so good...

using my IP scanner on my network, I immediately see 192.168.0.15 as OpenHABpi!  Server is not available yet as it is still downloading updates and things from the internet!  Been 30 minutes or so... 

I clicked on the IP address again with :8080- at end and it comes uP!!!   hOLY CRAP!!

THIS IS HOW HOME AUTOMATION SHOULD WORK!!! (sorry HG)  It even picked port 8080 instead of 80 like some other HG programs that won't work out of the gate because that port is used on most computers that do work.

I'm off to do 17 other things around the farm.  Will return in a couple hours to see what has happened.

It seems to have installed;  I can easily connect over network..  NO clue what I can do with it, but it is  a start...   more later...

I would be thrilled if others in our X10 community would try this!  Between us all, we could make it go good!

More later




Title: Re: OPENhabPI -- next gen to AHP?
Post by: Tuicemen on August 19, 2018, 05:17:35 PM
It is nice to see the OpenHab image works with the Zero W.
I've been contiplating trying other open source software for X10 but there are no images for the 3B+ of anything (yet)
I most likely will try this on my Zero W in the city in the fall.
Title: Re: OPENhabPI -- next gen to AHP?
Post by: mike on August 19, 2018, 08:12:04 PM
seems to me it said for zero, some other ones, and also 3b...

I did not mean to post this yet - I was going to put it in pi group like yo suggested...  how did i get this here?  haha!  Hope this does not mean I have Alzheimers!  But now that it is here I will add to it as I go!
Title: Re: OPENhabPI -- next gen to AHP?
Post by: mike on August 19, 2018, 08:21:23 PM
https://www.openhab.org/docs/installation/rasppi.html

Pretty sure all these pi B's mean it works with them too.  there is only 1 install mem card image so it seems it should work for your 3B too...
Title: Re: OPENhabPI -- next gen to AHP?
Post by: mike on August 19, 2018, 08:23:07 PM
neat part it installed by itself, updated itself, and the server works across my network INSTANTLY with not hassle, unlike HomeGenie
Title: Re: OPENhabPI -- next gen to AHP?
Post by: Tuicemen on August 19, 2018, 09:13:16 PM
The GitHub downloads page does state the latest version does support the 3B+  :)%
I didn't find Homegenie a hassle to setup but you were setting it up on Windows so it isn't a good comparison.
If the current image does truely support the 3B+ it hould be an easy go and worth the attempt. ;)
from what I've read you need mochad for X10 support and OpenHab doesn't include that by default.
Title: Re: OPENhabPI -- next gen to AHP?
Post by: HA Dave on August 19, 2018, 10:00:32 PM
Check out OpenHab.org

…... CM15 X10...  Many running on Rasberry Pi's...  Built in Alexa control I understand (we got one for last Christmas but REFUSE to turn it on - privacy you know).
………..For the setup on Wi-Fi, you'll need to make your SSID and password known to the system before the first boot. The following steps are needed:

Do I understand this correctly? You refuse to use an American based product... because you're "privacy". Yet you post on the Internet and are willing to share your vital security data with.... who? based where?
Title: Re: OPENhabPI -- next gen to AHP?
Post by: petera on August 20, 2018, 08:28:17 AM
The GitHub downloads page does state the latest version does support the 3B+  :)%
I didn't find Homegenie a hassle to setup but you were setting it up on Windows so it isn't a good comparison.
If the current image does truely support the 3B+ it hould be an easy go and worth the attempt. ;)
from what I've read you need mochad for X10 support and OpenHab doesn't include that by default.

Not difficult to add Mochad manually if that's the only hurdle to using it. Simple copy/paste commands and you're good to go. http://x10linux.blogspot.com/2012/08/installing-mochad-on-raspberry-pi.html?m=1
Title: Re: OPENhabPI -- next gen to AHP?
Post by: Tuicemen on August 20, 2018, 08:37:39 AM
The GitHub downloads page does state the latest version does support the 3B+  :)%
I didn't find Homegenie a hassle to setup but you were setting it up on Windows so it isn't a good comparison.
If the current image does truely support the 3B+ it hould be an easy go and worth the attempt. ;)
from what I've read you need mochad for X10 support and OpenHab doesn't include that by default.

Not difficult to add Mochad manually if that's the only hurdle to using it. Simple copy/paste commands and you're good to go. http://x10linux.blogspot.com/2012/08/installing-mochad-on-raspberry-pi.html?m=1
yep realize that. And that isn't a problem if that is indeed required. The Idea of a image(my opinion ) is to include all installers into one package. This may or may not be present in the image most info is for manual installs. We'll have to see what Mike experiences.
Title: Re: OPENhabPI -- next gen to AHP?
Post by: mike on August 20, 2018, 09:11:45 AM
Check out OpenHab.org

…... CM15 X10...  Many running on Rasberry Pi's...  Built in Alexa control I understand (we got one for last Christmas but REFUSE to turn it on - privacy you know).
………..For the setup on Wi-Fi, you'll need to make your SSID and password known to the system before the first boot. The following steps are needed:

Do I understand this correctly? You refuse to use an American based product... because you're "privacy". Yet you post on the Internet and are willing to share your vital security data with.... who? based where?

You got it.                 

In addition, I assume you mean sharing my network pw to the internet?  Guess I really wrote that bassackwards...  For any computer to get onto a secure network, you need to sign into it from that computer with your password...  Not sure how this is giving everyone vital security data.
Title: Re: OPENhabPI -- next gen to AHP?
Post by: HA Dave on August 20, 2018, 09:43:00 AM
Don't get me wrong.... when all I knew or had was X10 lights controlled with a PalmPad… I thought it was awesome. But I can't imagine a modern setup that doesn't include AI (and I have a pretty good imagination). The Chinese government, the US government, and many corporations (Amazon included) are each (and possibility cooperatively) trying to construct the human algorithm. They want to know how to get people to want to do.... what they want them to do... or buy.

Since you're posting on-line, and you have electric at home (Home Automation)….. your actions are already in the mix. A fear that someone at Amazon is listening to your private conversations..... isn't rational. It is actually MORE likely a Chinese national is listening.... through your TV. And a certain guarantee the American government is listening.

As a matter of fact.... the Americans Human Algorithm Project is so advanced.... that the previous administration knew months in advance of the last election that Hillary Clinton was a shoe-in. Which makes me wonder.... if all this 'listening" isn't more about secretly moving tax dollars into insiders pockets. 
Title: Re: OPENhabPI -- next gen to AHP?
Post by: Tuicemen on August 20, 2018, 09:54:55 AM
with the lattest release stating it supports the 3B+ I downloaded the image last night and attempted a install this morning.
All looked good till it came to updating repositories and packages then the dreaded Failed message B:(  :(
Initial setup reports errors and exited.
I guess the image hasn't been updated for the 3B+ (yet)
Title: Re: OPENhabPI -- next gen to AHP?
Post by: mike on August 20, 2018, 02:50:12 PM
Tuicemen, Dang!  Double dang!

Dave, my TV has no internet connection.  As conservative as we are, if Alexa were to eavesdrop at our house my wife and I would both have any guns, kitchen knives, bats that we MIGHT own  - not saying we do own anything of the sort - confiscated, and we would be political prisoners hid away with no trial, not charged with anything, just put away someplace like the Bundies...  No thanks.      MAGA
Title: Re: OPENhabPI -- next gen to AHP?
Post by: petera on August 20, 2018, 03:59:27 PM
with the lattest release stating it supports the 3B+ I downloaded the image last night and attempted a install this morning.
All looked good till it came to updating repositories and packages then the dreaded Failed message B:(  :(
Initial setup reports errors and exited.
I guess the image hasn't been updated for the 3B+ (yet)

Try the following

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

Quite possible the package is missing dependencies. This should remedy this problem. Just post back and let us know. You may also be missing a repository but the system usually tells us this. Could you do a screen cap after you tried this.
Title: Re: OPENhabPI -- next gen to AHP?
Post by: Tuicemen on August 20, 2018, 04:10:22 PM

Try the following

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

Quite possible the package is missing dependencies. This should remedy this problem. Just post back and let us know. You may also be missing a repository but the system usually tells us this. Could you do a screen cap after you tried this.
To Late  B:( I reinstalled the Debian stretch and will try the manual install, will report back on success.
Title: Re: OPENhabPI -- next gen to AHP?
Post by: petera on August 20, 2018, 04:24:08 PM

Try the following

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

Quite possible the package is missing dependencies. This should remedy this problem. Just post back and let us know. You may also be missing a repository but the system usually tells us this. Could you do a screen cap after you tried this.
To Late  B:( I reinstalled the Debian stretch and will try the manual install, will report back on success.

Argh........the dist-upgrade command usually picks up and resolves problems like this.

I used OpenHAB a while back on a Ubuntu server but found it was missing a lot of what I was looking for. I've now noticed someone has come up with a particular binding I was looking for so I'll give it a spin on the Pi at some stage this week and test drive it.
Title: Re: OPENhabPI -- next gen to AHP?
Post by: mike on August 20, 2018, 04:25:53 PM
meanwhile down on the farm, I have a solid and upto date pi/openHab.    Unfortunately I have no clue what to do with it yet!   hahaha!   I have not had tie to figure out what the server page can do for me or how to set it up.  So far, it seems to me they did a bang up job making a self contained bootable memory card that works out of the box for those of us with older pi designs...   HG came preconfigured with stuff so I could see what it does right away and could emulate what was already there with MY stuff...   wish openHAB came with a single example file so I had a clue what to do next!   I have not made time to figure out how to config this puppy;  I found no 1,2,3 config setup yet.

..
Title: Re: OPENhabPI -- next gen to AHP?
Post by: Tuicemen on August 20, 2018, 04:34:56 PM


Argh........the dist-upgrade command usually picks up and resolves problems like this.

I used OpenHAB a while back on a Ubuntu server but found it was missing a lot of what I was looking for. I've now noticed someone has come up with a particular binding I was looking for so I'll give it a spin on the Pi at some stage this week and test drive it.
If I remember it never went to a input option even after rebooting and logging in. ::) :' Oh well moving onward! ;)
Title: Re: OPENhabPI -- next gen to AHP?
Post by: petera on August 20, 2018, 06:55:22 PM


Argh........the dist-upgrade command usually picks up and resolves problems like this.

I used OpenHAB a while back on a Ubuntu server but found it was missing a lot of what I was looking for. I've now noticed someone has come up with a particular binding I was looking for so I'll give it a spin on the Pi at some stage this week and test drive it.
If I remember it never went to a input option even after rebooting and logging in. ::) :' Oh well moving onward! ;)

I'm installing OpenHabian now. I did all the pre config in advance of powering up the Pi3B+. No ethernet cable required and already SSH ready. Just watching the configuration screen from an iPad and all looks good so far.

The image install does make it a lot easier for a new user. Let's see how quickly I can get X10 up and running on it now before I retire to bed.

Looks interesting at first glance. If this goes to plan this will be platform 7 I've got X10 working on with the Raspberry Pi.
Title: Re: OPENhabPI -- next gen to AHP?
Post by: Tuicemen on August 20, 2018, 07:24:06 PM
Hope you get farther then me!
I got lost doing the manual install needless to say It never got installed! Got a "thank you, hope you found what your looking for!" message though rofl  ::) :' :(
Title: Re: OPENhabPI -- next gen to AHP?
Post by: petera on August 20, 2018, 08:12:03 PM
Hope you get farther then me!
I got lost doing the manual install needless to say It never got installed! Got a "thank you, hope you found what your looking for!" message though rofl  ::) :' :(

Have the server up and running. Bindings are the buzzword in OpenHab. Yes it shows bindings for both CM11 and CM15. To be honest it doesn't look to be the friendliest of platforms I've used so far. I will try both X10 options at some stage but unfortunately the binding I was originally looking for to control my security panel is only in a beta stage and needs loads more work so OH won't be sitting on top of my league.
Title: Re: OPENhabPI -- next gen to AHP?
Post by: petera on August 21, 2018, 06:58:37 AM
Ok got X10 working in OpenHab by adding Mochad from the usual source. Instead of writing a review I've attached the following link which I feel sums up my experience. https://smarthome.university/your-smart-home-platform-home-assistant-vs-openhab/

It's definitely suited to the more seasoned user and as its Java based, to get the most out of it you really need a little knowledge in the Java environment. On the other hand you can get up and running in Home Assistant with X10 with with the minimum of effort.

Title: Re: OPENhabPI -- next gen to AHP?
Post by: mike on August 21, 2018, 08:47:21 AM
Hope you get farther then me!
I got lost doing the manual install needless to say It never got installed! Got a "thank you, hope you found what your looking for!" message though rofl  ::) :' :(

Yes, I found the binding for the x10 last night but did not get a chance to install it yet.  The scripts using it looked pretty straightforward.

So you have said you tried 7? home automation programs so far?  Would you mind telling them and which ARE ranking as top 3, in order?
Title: Re: OPENhabPI -- next gen to AHP?
Post by: petera on August 21, 2018, 09:18:52 AM
Hope you get farther then me!
I got lost doing the manual install needless to say It never got installed! Got a "thank you, hope you found what your looking for!" message though rofl  ::) :' :(

Yes, I found the binding for the x10 last night but did not get a chance to install it yet.  The scripts using it looked pretty straightforward.

So you have said you tried 7? home automation programs so far?  Would you mind telling them and which ARE ranking as top 3, in order?

Open source
--------------
1) Home Assistant
2) Home Genie
3) Domoticz
4) OpenHAB
5) LinuxMCE

All run on Raspberry Pi with CM11 and CM15

Closed source (Commercial)

1) Home Seer 3 Pro
2) Vera (Doesn't run on Raspberry Pi

Also run X10 CM11 and CM15

In summary, for open source easy to get up and running Home Assistant. Home Genie would be a close second.

For closed source Home Seer3 full version. This version is not cheap but with the full licence you can use it on any platform you choose and mix and match platforms including the Raspberry. They sell a unit called HomeTroller Zee S2 but you are very restricted to what you can use on it.

Vera I would not recommend at all
Title: Re: OPENhabPI -- next gen to AHP?
Post by: mike on August 21, 2018, 09:28:24 AM
THANKS!  But Home Assistant only says Heyu supports old serial CM11 not CM15?
Title: Re: OPENhabPI -- next gen to AHP?
Post by: petera on August 21, 2018, 10:44:08 AM
THANKS!  But Home Assistant only says Heyu supports old serial CM11 not CM15?

https://www.home-assistant.io/components/mochad/
Title: Re: OPENhabPI -- next gen to AHP?
Post by: mike on August 22, 2018, 02:57:20 PM
Hey Petera,

Do you recall from your testing on those top 5 programs if any will command CM15 to SEND X10 RF security code signals?  Like to ARM or DISARM our SC1200?
Title: Re: OPENhabPI -- next gen to AHP?
Post by: Tuicemen on August 22, 2018, 03:33:12 PM
I don't believe any can send the required RF security signal. However since you have a Broadlink RM Pro you could simple send the command to HA-Bridge which would then tell the broadlink to send the correct RF code. HA-Bridge has several Home Automation program helper files
 >!
Title: Re: OPENhabPI -- next gen to AHP?
Post by: mike on August 22, 2018, 03:39:10 PM
I realize I can do it with additional hardware (RM) & software (HA-bridge), and do have it set up and working on my unreliable windows based HG setup.  I just wondered if any of the other programs incorporated that in their 'bridge' programs.  I see no reason they do not since they are talking to the CM15 anyway and it has the capability to send that RF.

I think I am seeing this OpenHAB does not have the integration HG had;  ie., it is appearing EVERY little thing one would want to have it do requires writing C code command snippets.  Not my cup of tea. 

Unless Petera has answer that one of the others natively can command the CM15 to send security RF, I may give in and go back to trying to set up HG on the pi to see if that gets an acceptable level of server starting over a network;  my recollection is even on Pi many folks have trouble making HG server come up in a browser and that is flat not acceptable to me.
Title: Re: OPENhabPI -- next gen to AHP?
Post by: petera on August 22, 2018, 03:59:55 PM
I realize I can do it with additional hardware (RM) & software (HA-bridge), and do have it set up and working on my unreliable windows based HG setup.  I just wondered if any of the other programs incorporated that in their 'bridge' programs.  I see no reason they do not since they are talking to the CM15 anyway and it has the capability to send that RF.

I think I am seeing this OpenHAB does not have the integration HG had;  ie., it is appearing EVERY little thing one would want to have it do requires writing C code command snippets.  Not my cup of tea. 

Unless Petera has answer that one of the others natively can command the CM15 to send security RF, I may give in and go back to trying to set up HG on the pi to see if that gets an acceptable level of server starting over a network;  my recollection is even on Pi many folks have trouble making HG server come up in a browser and that is flat not acceptable to me.

I've no requirement to use X10 security codes but from what I've read it really is not feasible to send them without adding in 3rd party hardware as Tuicemen mentioned. I use a professional security panel which integrates nicely with my home automation setup.
Title: Re: OPENhabPI -- next gen to AHP?
Post by: Tuicemen on August 22, 2018, 07:45:03 PM
my recollection is even on Pi many folks have trouble making HG server come up in a browser and that is flat not acceptable to me.
I believe those using the GUI on their PI, (as I do at my off grid place) were the ones having issues that way.
I've yet to have an issue pulling up the HG web page from another device. However I'm not using a BE version build, which also may be a factor.