Launching Mochad in Raspbian Jessie/Stretch-Need some help please

Started by petera, October 17, 2017, 06:21:21 PM

Previous topic - Next topic

Tuicemen

I attempted to install this on my Pi 3b+ prior to a HA install first I installed mochad-0.1.16 as that's what the latest link pointed to B:(
once I finaly figured out the install sequence I couldn't get my CM15 to response so then I found and download and installed mochad-0.1.17 this still didn't work did a update... usual stuff still nothing in response to a test command.
checking the USB I discovered it was unplugged from the PI (not sure how or when that happened B:( tried again and still no response I figure I messed things up with two different versions of Mochad installed so Off to trying again with a fresh Debian install.
SO I have a few Questions
@petera
yYou stated there was a mochad-0.1.18 out there. do you have a download link for it?

For those that have Mochad working, Does the "mochad(version)" directory need to be renamed to just "mochad" or can the folder be left to what the tgz makes? I never tried this.
When you send the test command dose it matter from where?
>!
Please Read Topic:
General Forum Etiquette
Before you post!

lviper

I believe 17 is the latest version. It's what I used when I gave it a try. Here is a link to a site that I used to install it.
https://www.sigmdel.ca/michel/ha/x10/domoticz_install_04_en.html
and here is the project.
https://sourceforge.net/projects/mochad/

Tuicemen

Thanks lviper 17 was the latest I could find as well the instuctions are different from what I had found here http://x10linux.blogspot.com/2012/08/installing-mochad-on-raspberry-pi.html?m=1
This may have been my issue, as I never made a mochad folder to contain the mochad-10.1.17 folder.
Please Read Topic:
General Forum Etiquette
Before you post!

Tuicemen

 :)% Success!
not sure if the mochad  folder was the issue or my screw up else where but the link to the setup you supplied lviper worked.
I'll have to make a script to simplify this for the next time.
>!
Please Read Topic:
General Forum Etiquette
Before you post!

lviper

Quote from: Tuicemen on August 21, 2018, 02:06:58 PM
:)% Success!
not sure if the mochad  folder was the issue or my screw up else where but the link to the setup you supplied lviper worked.
I'll have to make a script to simplify this for the next time.
>!

Glad it worked for you. As you may know, mochad will see your security sensors. But as far as I can tell, the only way to act on them is by using mochad_dispatch and MQTT. I'm not sure where you are going with this, or if you are familuar with MQTT, but here is the link. I didn't go that far with it because I quickly figured out it wouldn't do what I wanted.

https://github.com/ChrisArgyle/mochad_dispatch

Tuicemen

Thanks I already use HomeGenie for seeing my Security sensors and it coupled with HA-Bridge and a Broadlink to send them.
Mochad was so I could look at other Pi Homea Automation options of which about 90% require it. ::) :'
Please Read Topic:
General Forum Etiquette
Before you post!

docbell

Quote from: Tuicemen on August 21, 2018, 02:06:58 PM
:)% Success!
not sure if the mochad  folder was the issue or my screw up else where but the link to the setup you supplied lviper worked.
I'll have to make a script to simplify this for the next time.
>!

Glad you have it working. One thing you might add to the recipes you are using is:

sudo systemctl enable mochad.service

This tells systemd to start mochad at boot time and restart it if it fails. The rest of your software (e.g., HomeGenie) may take care of this for you, but it can't hurt.

Tuicemen

thank docbell,
HomeGenie doesn't use Mochad, near as I can tell it accesses the libusb file directly.
However if I do decide to move to another software option (which I doubt) I'll keep this in mind.
Currently my only reason for installing this is to experiment with using a spare SD card.
Please Read Topic:
General Forum Etiquette
Before you post!