HomeGenie Forum

General Category => General Discussion => Topic started by: dutchie on April 21, 2014, 11:51:50 AM

Title: Razberry
Post by: dutchie on April 21, 2014, 11:51:50 AM
Is there anyone who managed to get a Razberry working with HG?

If I want to include a node the red led on the Razberry is lit (I think it should be this way) but the operation always fails (timed out). The red led keeps lit until I click "exclude node".
So it seems like the Razberry freezes.
Title: Re: Razberry
Post by: d-home78 on April 22, 2014, 10:20:46 PM
I was faced to the same situation : time out happens and the red led stays on. But the device was enroled when I check the list of modules in configuremaintenancemodules clean up. That was with r333.
Now, with the latest release (r364), it is worse : after few hours, Razberry is asleep : the "get" and "set" actions doesn't activate Razberry and I have to disable/enable Razberry to restart and avoid the ugly "NA%" message.
Title: Re: Razberry
Post by: dutchie on April 22, 2014, 11:49:53 PM
I'm on r368 now and still can't add a node.
After 3 try-outs it freezes again
 :(
Title: Re: Razberry
Post by: Gene on April 23, 2014, 06:18:38 PM
Guys Razberry is not tested. It was working with older release as reported by some user in the sourceforge forum.
Just wondering if you add nodes using some other software do the rest work with HG (eg. controlling nodes)?
So, is it just the node add/remove not working?

Cheers,
g.
Title: Re: Razberry
Post by: Gene on April 24, 2014, 03:37:06 PM
Hi dutchie,

did you try this?

http://www.hobbytronics.co.uk/raspberry-pi-serial-port (http://www.hobbytronics.co.uk/raspberry-pi-serial-port)

if there is a terminal enabled by the system on the ttyAMA0 port, this may interferer with other software that are trying to use it.


Cheers,
g.
Title: Re: Razberry
Post by: dutchie on April 24, 2014, 08:48:57 PM
Guys Razberry is not tested. It was working with older release as reported by some user in the sourceforge forum.
Just wondering if you add nodes using some other software do the rest work with HG (eg. controlling nodes)?
So, is it just the node add/remove not working?

Cheers,
g.

I know it is not tested (I even have doubts about the product itself), I asked here because I was curious.
I tried other sofrware:
1. Z-wave; hard to install and get it working. I had it running, because of it was middle of night I went to bed and the next days the server wasn't reachable anymore so no devices added.
2. Freedomotic; had troubles with the JDK install, never managed to set it up.
3. Domoticz with open-zwave; Couldn't find any add node button, I was advised to install the dev version. While compiling the dev version I got errors (something with kernel).

So I don't have any devices in the network through the PI. I already ordered an aeon z-stick (I have to get my z-wave back in use again before my wife gets upset).
I'm not familiar with linux (also no real programming experience) so I can only play around with the Raz to get it working. I don't know what to do to really test it.

So is the Raz crappy overall, is my Raz crappy, or is it me due inexperience  ;D
Title: Re: Razberry
Post by: dutchie on April 24, 2014, 08:55:51 PM
Hi dutchie,

did you try this?

[url]http://www.hobbytronics.co.uk/raspberry-pi-serial-port[/url] ([url]http://www.hobbytronics.co.uk/raspberry-pi-serial-port[/url])

if there is a terminal enabled by the system on the ttyAMA0 port, this may interferer with other software that are trying to use it.


Cheers,
g.


I read about that on some other sites, I even had a tool to enable or disable it with a simple command. I discovered that on my PI it is not standard enabled, but if it is enabled the red led on the Raz won't lit up if I want to add a node. So it seems to be true.
Title: Re: Razberry
Post by: mvdarend on April 25, 2014, 09:27:17 AM
I received my Raspberry Pi and Razberry yesterday and set them up in the evening (including switching off the port)

Today I should receive my Z-wave switches (and an Aeon z-stick just in case), I'll let you know if it works for me.
Title: Re: Razberry
Post by: mvdarend on April 26, 2014, 07:53:51 AM
Unfortunately, I cannot get the Razberry to pair with the devices, the Z-stick pairs with the wall switch (the fibaro Roller shutter is giving me problems though)

I haven't tried pairing through the Razberry interface though, might try that later.
Title: Re: Razberry
Post by: tischan on April 26, 2014, 11:07:19 AM
Last version that I had Razberry working on was the 324 it brook when I was upgrading to 345 and do not work with the latest 370.

For the 370 it do not work when adding a z-wave module/node to a group. Due to the fact that you only get the HomeAutomation.HomeGenie.Automation and HomeAutomation.PhilipsHue module/nodes in the list.

So installing works fine adding a node in the interface screen also no problem.

Title: Re: Razberry
Post by: Gene on April 26, 2014, 11:15:57 AM
So, correct me if I'm wrong, the only problem is that after adding a node HG won't refresh the list of available Z-Wave modules?
What happen if you disable and re-enable the Z-Wave interface from the Configure->System page?
Does it update the modules list then?

Cheers,
g.
Title: Re: Razberry
Post by: tischan on April 26, 2014, 11:24:23 AM
Yes, the list got updated. I could added it and it works.

Checked a lot of thing but never tried the standard "turn it on and off".  :D

Thanks!
Title: Re: Razberry
Post by: Gene on April 26, 2014, 11:29:42 AM
All right, glad to see it's working with this trick.
I was finally able to understand and locate the bug, so fixed it and the modules list will now get updated right after a node add operation.
I think I will be replacing later on today the r370 files on sf.net with this little fix.

Thanks!
g.
Title: Re: Razberry
Post by: dutchie on April 26, 2014, 11:33:54 AM
Installing r370 manaually now (there is no update through system)
Title: Re: Razberry
Post by: Gene on April 26, 2014, 11:40:44 AM
Hi dutchie,

to get this working, you have to give me some time to upload r370 files with the fix =)
Otherwise, you have to enable/disable the z-wave interface after any node add/remove operation, in order to get the modules list refreshed.
I'm packing the .deb file first so you can download it soon.
I'll post a message here in a couple of minutes to let you know, so you can test and report.

Cheers,
g.
Title: Re: Razberry
Post by: dutchie on April 26, 2014, 11:42:52 AM
Hi dutchie,

to get this working, you have to give me some time to upload r370 files with the fix =)
Otherwise, you have to enable/disable the z-wave interface after any node add/remove operation, in order to get the modules list refreshed.
I'm packing the .deb file first so you can download it soon.
I'll post a message here in a couple of minutes to let you know, so you can test and report.

Cheers,
g.

Take your time Gene, it is just my curiosity
Title: Re: Razberry
Post by: Gene on April 26, 2014, 11:51:58 AM
r370 deb, tgz and exe are now updated with the fix.
For the Raspberry image it will take some more time to upload.

Cheers,
g.
Title: Re: Razberry
Post by: dutchie on April 26, 2014, 12:12:52 PM
Well thanks for the quick fix Gene.
But I think it is about time to throw my Raz in the trashcan.
I still can't add nodes, even with the latest version, switching things on and off, rebooting....
Operations always fail and nodes don't show up anywhere  >:(
Title: Re: Razberry
Post by: Gene on April 26, 2014, 12:16:34 PM
Dunno... perhaps tischan can give you further help, since he has got the Razberry working.

Cheers,
g.
Title: Re: Razberry
Post by: tischan on April 26, 2014, 04:56:00 PM
I write down some note what I have done an post them in the thread.
Title: Re: Razberry
Post by: dutchie on April 26, 2014, 04:58:33 PM
I write down some note what I have done an post them in the thread.

Thx looking forward to it!
 ;D
Title: Re: Razberry
Post by: tischan on April 26, 2014, 05:55:33 PM
Ok, wrote down a little more than I thought added background and my goal with the setup. I did this quickly (was away for whiel between the posts :) ) so the English and structure might not be the best. But better to share a first version then not share at all.

HomeGenie and Razberry setup

Goal with the first set up is:
Be able to control lights in my home in different ways:

Be able to control the lights remotely outside of your own network.

Next steps are (not decided in which order):


Links

HomeGenie hompage: http://www.generoso.info/homegenie/index.html (http://www.generoso.info/homegenie/index.html)
HomeGenie forum: https://sourceforge.net/p/homegenie/discussion (https://sourceforge.net/p/homegenie/discussion)
HomeGenie download: http://sourceforge.net/projects/homegenie/files/ (http://sourceforge.net/projects/homegenie/files/)
(choose the file with the word raspi in it)

Razberry homepage: http://razberry.z-wave.me/ (http://razberry.z-wave.me/)

Win Disk Imager: https://sourceforge.net/projects/win32diskimager/ (https://sourceforge.net/projects/win32diskimager/)
SDformatter: https://www.sdcard.org/downloads/formatter_4/eula_windows/ (https://www.sdcard.org/downloads/formatter_4/eula_windows/)


Get the image of HomeGenie on a SD memory card from a Windows computer (this can probably be done several ways but this worked for me):

Prepare the Razberry for the Homegenie installation:

Log in to your Razberry

Configure your Razberry with HomeGenie so can start adding nodes (devices)

Add node

Create group

Add node to a group
Title: Re: Razberry
Post by: tischan on April 26, 2014, 05:57:11 PM
Ahh, something went wrong with the list but looks readable still.

Hope it helps. I will continue when I added the other step in my list of thing that I want to do.
Title: Re: Razberry
Post by: dutchie on April 26, 2014, 06:24:08 PM
Thx tischan.

The only difference in your installation and mine is that you used the image from Gene and I used raspbmc-image.

Problem in my scenario is that adding a node is not possible; operation always fails.
The red led lits (it means the Raz is in learning mode) but the opration is always a failure and sometimes the red led stays on (Raz freezes?).

When I click exclude node the operation also fails but I do notice when I push the button of the device the red led immediatly switches off.

The logfile only shows one line with
 add node number http get
Title: Re: Razberry
Post by: mvdarend on April 27, 2014, 08:56:49 AM
I spent yesterday afternoon playing around with this, but I could not get it to work fully.

After 3 or 4 tries I managed to 'see' the Z-wave wall switch in HomeGenie, but only after putting the switch and razberry in very close proximity to each other. Getting the Node Information continually gave me a timeout error, I tried switching the Z-wave interface off/on and also reboot the Pi a few times, but it still wouldn't work.

I thought that maybe the razberry antenna was the culprit so I soldered a new antenna to the Razberry board (http://blog.ecufix.com/2013/11/increasing-z-wave-distance-for-razberry.html). But this didn't help, getting Node Information kept giving me a timeout, (sometimes very quickly by the way, I would click 'Get' and the timeout error would appear within half a second.)

On a whim, I opened the 'official' Razberry interface on the Pi, to my surprise the switch and all of its parameters could be seen here, so the Razberry does work. Could it be that the Razberry software is causing a conflict? Do I first have to disable the Razberry software?

Unpairing also seems to work OK from HomeGenie, although it does still give a timeout. Afterward I managed to pair the switch to the Z-stick again and all went well.
Title: Re: Razberry
Post by: Gene on April 27, 2014, 02:03:11 PM
Hi guys,

I made some fixes and added more logging to the Z-Wave library.
I cannot guarantee this will also fix problems you're having, but at least there will be more infos about what's going on.
Also a "Discovery" button has been added to the Z-Wave interface options.

To update, use the Update Check function from Configure->Maintenace.

Hope this helps!

Cheers,
g.
Title: Re: Razberry
Post by: mvdarend on April 27, 2014, 06:37:14 PM
Thanks for your efforts Gene! I've updated, but unfortunately I won't be able to test it until next weekend. I'm driving the family a little crazy at the moment  ;D
Title: Re: Razberry
Post by: dutchie on April 27, 2014, 07:27:38 PM

On a whim, I opened the 'official' Razberry interface on the Pi, to my surprise the switch and all of its parameters could be seen here, so the Razberry does work. Could it be that the Razberry software is causing a conflict? Do I first have to disable the Razberry software?


I can't imagine you can have z-way server and HG running simultaniously. At least I can't I have to stop one and start the other.

Still no success with both of them (z-way V1.50rc3 HG RC371). I can see some sleeping nodes in the z-way server but they might be dummies from their demo. There is no detailed info about them. In z-wayserver the red led does nothing when I include or exclude node  :(.

Do you have a z-way.log or a z-way-server.log? (My z-way.log is dated 26-04-2014 and mentions something about serial port gone. The z-way-server.log is dated from today and as noob I can't find any errors in there).
Title: Re: Razberry
Post by: dutchie on April 28, 2014, 10:40:23 AM
This morning played around with the original z-way.
Somehow I managed to add a node, it is a sleeping one.
Can't get it awake.
It seems like every action I take (forcing device info, (re)include, exclude) the serial port vanishes; it takes a hard reboot (unplug/replug power) to get it back working again.
Title: Re: Razberry
Post by: dutchie on May 04, 2014, 07:58:36 PM
I give up on the Razberry.
Somehow the serial port is unstable (kernel related?)
Title: Re: Razberry
Post by: mvdarend on May 06, 2014, 07:07:35 AM
I've given up on the Razberry as well for now. I'll have another try when I've more time.
Title: Re: Razberry
Post by: mvdarend on May 19, 2014, 07:21:58 AM
I couldn't let it go, so I ordered a second Raspberry Pi to test the Razberry with. Testing with the 'production' Pi was annoying the wife  8)

I have a little more experience now with Z-wave, so I properly broke the association of my test device (A wall controller) with the Aeon stick.

It actually seemed to go well, but somehow HomeGenie 'lost' the device after association, here are the steps I took:

(note: I did this on Saturday, so some details may be slightly incorrect)

- Loaded pre-installed HomeGenie Image (r370 then updated to r372)
- Activated Z-Wave
- Put the wall controller into association mode
- Clicked on 'Add Node'
- HomeGenie found the device immediately, Yay! :)
- Device got the ID node 5

So far so good, but after this I couldn't find the controller when adding to Groups and Modules, I did see a device with Node id 0 (zero) but after adding that I couldn't configure it.

I rebooted the Pi, and tried again, but now I couldn't see any Z-Wave devices at all. Disabled / re-Enabled the Z-wave device, Disabled -> reboot -> Enable also didn't work.

Unfortunately, I forgot to retrieve the logs after doing this, I reloaded the Pi with another piece of sotware (Domoticz) and that seemed to find the device OK, but I didn't test it any further.

Could someone tell me the location of the Z-wave log files? (Or is it the normal log file location?) I'll try again this weekend and upload the logs if anyone wants them.

*Edit: Forgot to add that I upgraded to r372

Title: Re: Razberry
Post by: Gene on May 19, 2014, 01:04:01 PM
http://www.homegenie.it/forum/index.php?topic=217 (http://www.homegenie.it/forum/index.php?topic=217)
Title: Re: Razberry
Post by: tischan on June 02, 2014, 09:20:32 PM
Version 1.00 beta r370 still works for me with Razberry and Fibaro devices.

So it can work but there looks to be problematic.
Title: Re: Razberry
Post by: thaui on February 03, 2015, 07:30:56 PM
Have to say that from all tested home automation builds homegenie is the best. It works right out of the box and my first tests are positiv. Did some tests with zway, openremote and domoticz. All of them had very strange issues or you need to spend a lot of time before you see the first results. I hope homegenie will be continuously developed. Than each euro of donation is worth to support the work.
Title: Re: Razberry
Post by: gbremmer on November 21, 2015, 02:18:45 PM
For people who also are having trouble with Razberry (Z-Wave) after installing Wheezy or other distribution do the following:

Step 1: Disable Serial login
Wheezy

Raspbian allows you to login using the serial port. To use the Sleepy Pi we need to disable this. To do this, we need to edit /etc/inittab.

In an LXTerminal window type:

$ sudo nano /etc/inittab

Scroll down the bottom and you will find the lines:

#Spawn a getty on Raspberry Pi Serial line
T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100

You need to comment the last line out (i.e. disabling it) with a “#” and save it, so that it results in:

#Spawn a getty on Raspberry Pi Serial line
#T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100

Jessie

Raspbian Jessie no longer has the /etc/inittab file and replaces it instead with a mechanism called systemd and you use a tool called systemctl to enable / disable services.

In a terminal type the following commands:

sudo systemctl stop [email protected]
sudo systemctl disable [email protected]

Step 2. Disable Boot info

When Raspbian boots up it outputs boot information to the serial port and hence streams it to the Sleepy Pi (which is not particularly interested in it). To disable this we need to edit the /boot/cmdline.txt in LXTerminal:

$ sudo nano /boot/cmdline.txt

It will look something like:

dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p6 rootfstype=ext4 elevator=deadline rootwait

Delete the “console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 “ parts so that you are left with:
- See more at: http://spellfoundry.com/sleepy-pi/setting-arduino-ide-raspbian/#sthash.yMBpmkLQ.dpuf (http://spellfoundry.com/sleepy-pi/setting-arduino-ide-raspbian/#sthash.yMBpmkLQ.dpuf)


source= http://spellfoundry.com/sleepy-pi/setting-arduino-ide-raspbian/ (http://spellfoundry.com/sleepy-pi/setting-arduino-ide-raspbian/)
Title: Re: Razberry
Post by: [email protected] on November 22, 2015, 02:41:01 PM
if people aren't happy doing the editing of config files, then

sudo raspi-config

go to advanced.

then choose serial and disable serial login iirc should do the same :)