HomeGenie Forum
General Category => General Discussion => Topic started 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.
-
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.
-
I'm on r368 now and still can't add a node.
After 3 try-outs it freezes again
:(
-
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.
-
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.
-
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
-
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.
-
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.
-
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.
-
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.
-
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.
-
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!
-
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.
-
Installing r370 manaually now (there is no update through system)
-
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.
-
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
-
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.
-
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 >:(
-
Dunno... perhaps tischan can give you further help, since he has got the Razberry working.
Cheers,
g.
-
I write down some note what I have done an post them in the thread.
-
I write down some note what I have done an post them in the thread.
Thx looking forward to it!
;D
-
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:
- Turn on and off one light/lamp through a web interface that can be accessed from a web browser on a computer, tables or phone
Turn on and off several lights through a web interface that can be accessed from a web browser on a computer, tables or phone with a push of one button
Turn on and off one or several lights depending on sunrise/sunset
Turn on and off one or several lights depending on a set schedule, turn off the lamp after 2 hour it have been turned on or always at 23:00
Turn on and off one or several lights depending on sunrise/sunset and a schedule. For example, turn on lamp 30 min before sunset and turn off at 2:00
Be able to control the lights remotely outside of your own network.
Next steps are (not decided in which order):
- Automatic watering of the garden
First step is to be able to control a valve that leads water to underground irrigation tubing such as: http://www.dreamgardens.se/bevattningssystem/bevattningsslang-deepdrip-100-m.html (http://www.dreamgardens.se/bevattningssystem/bevattningsslang-deepdrip-100-m.html)
Second to have moisture sensors that trigger the valve
Third check if it going to rain then wait even if moisture sensor tell to open valve
Control awnings and blinds if sunny outside.
First step control it remotely
Second control it based on sensor input from Wind and Light
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):
- Download HomeGenie image
Download Win Disk Imager
Download SDformatter
Unzip downloaded HomeGenie image to a new folder
Install SDformatter
Format your SD card with SDformatter
Unzip Win Disk Imager
Start Win Disk Imager as admin (right click and and choose that option)
In WinDisk choose the unziped HomeGenie image to be written to the SD card
The card is now ready to be used by the Razberry
Prepare the Razberry for the Homegenie installation:
- Connect the unpowered Raspberry Pi to you network
Add the z-wave card according to the Raspberry Pi according to the guide sent by z-wave
Add the SD card to the Razberry
Power up your Razberry
Wait 1-2 minutes then continue (you should see the diffrent lights in the RasPi blink when you power it on)
Log in to your Razberry
- Log in to your switch/router and check the IPadress that your Razberry received
If needed set a fixed IPadress to your Razberry in you switch/router
Enter the IPadress of Razberry in a webbrowser on the same network
Configure your Razberry with HomeGenie so can start adding nodes (devices)
- From the main menu go to Configure->System and Interfaces
Enable ZWave interface
Change devices port to /dev/
Add node
- From the main menu go to Configure->System and Interfaces
Under Zwave Common tasks press add node
When the pop-up comes up activate the device for network inclusion. (For me switch the lamp on and off, fibaro dimmer and switch)
If working the pop-up give the information that is done and provides you with an number
Create group
- From the main menu go to Configure->Groups and modules
Press the add group in the bottom right corner
Enter the name of the group in the pop-up and press ok
Add node to a group
- Choose the group that you want to add the node to
Press actions group in the bottom right corner
Press add module in the pop-up
Click the drop down menu in the new popup
There should be a section called HomeAutomation.Zwave under there your node should be listed, choose it and click add
If the section called HomeAutomation.Zwave do not exist try in the Configure->System and Interfaces to first disable and then enable the Zwave part.
If the device is not shown in the HomeAutomation.Zwave section redo the Add node part
You device should be added to the group
Click on the added node and click setup in the pop-up
Click get under Node Informations this might take a 1 min to retrive the Manufacturer Specific
Go back in the browser and click on the added node and add the name that you want the node to have, click update when done
Now you can test that it work from the control part of the HomeGenie
-
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.
-
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
-
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.
-
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.
-
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
-
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).
-
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.
-
I give up on the Razberry.
Somehow the serial port is unstable (kernel related?)
-
I've given up on the Razberry as well for now. I'll have another try when I've more time.
-
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
-
http://www.homegenie.it/forum/index.php?topic=217 (http://www.homegenie.it/forum/index.php?topic=217)
-
Version 1.00 beta r370 still works for me with Razberry and Fibaro devices.
So it can work but there looks to be problematic.
-
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.
-
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/)
-
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 :)