Page 1 of 2

Webserver - Z-Way

Posted: Fri Apr 03, 2015 1:03 pm
by Sem;colon
Hello everyone,

This plugin is another plugin for connecting a Z-Way server (RaZberry) to EventGhost to control Z-WAVE devices.
The biggest difference to the other Z-Way plugin is, that this plugin is not using MQTT, but the webserver plugin for the communication.
It's also a little more intelligent than the other plugin.

it currently supports the following commandClasses:
37:SwitchBinary,
38:SwitchMultilevel,
48:SensorBinary,
49:SensorMultilevel,
50:Meter,
51:SwitchColor,
64:ThermostatMode,
67:ThermostatSetPoint,
91:CentralScene,
128:Battery

Feel free to test it!
Feedback is welcome!

Changelog:
v0.42.0:
- Added support for CentralScene
- Added support for Battery
- Some feedback events may have changed a bit
v0.40.1:
- Configures it's own instance of the WebServer plugin now, no need to add the Webserver plugin to your config anymore to use this plugin!
- Plugin configuration dialog changed (if you do an update, you should open it and configure the new settings)
- Some feedback events may have changed a bit

v0.32:
- Some bug fixes
- The plugin is now in the .egplugin format
v0.30:
- Supports the latest Z-Way update
- Added support for SwitchColor (Multicolored LED Bulbs)
- Added support for Thermostates
- Created a proper installation manual
- Fixed some bugs
- Some Command names changed (you may need to recreate some actions)
- Feedback events changed (you will need to reassign all events you used from this plugin)
v0.11:
- Extended documentation as it didn't apply for z-way two
- Fixed Bug: Didn't work if SSL was used with the webserver plugin
v0.10:
- Added support for SwitchMultilevel (Dimmer)
- Added support link
- Feedback events changed a bit

Re: Webserver - Z-Way

Posted: Sun Apr 12, 2015 7:07 pm
by Sem;colon
New Version!

v0.1:
- Added support for SwitchMultilevel (Dimmer)
- Added support link
- Feedback events changed a bit

Re: Webserver - Z-Way

Posted: Wed Jul 01, 2015 8:38 pm
by Sem;colon
New version!

v0.11:
- Extended documentation as it didn't apply for z-way two
- Fixed Bug: Didn't work if SSL was used with the webserver plugin

Re: Webserver - Z-Way

Posted: Thu Jul 16, 2015 12:50 pm
by Phil
Hi
I just tried to get this to work as I lost my mqtt settings again in the razberry update but I get this error when trying to connect:

13:46:37 Webserver - Z-Way ERROR: Host "Z-Way-Home" can't be added!(connection not possible)

this is on port 8083 (where I log onto the Z-wave smart home interfact)

Could you also explain the field in the setup - file that should be request....? ive just left this as /empty as I didnt know what is meant.


thanks

Phil

Re: Webserver - Z-Way

Posted: Thu Jul 16, 2015 4:35 pm
by Sem;colon
Hello Phil,

did you follow the screenshots I put into that folder for installing the plugin on Razberry side?
(copying the eg.js file and registering it in the HA interface) ?

did you restart the raspberry (or at least the z-way service) after the configuration?


The parameter on the plugin specifies the file that is requested on your EG webserver with post requests that come from the razberry plugin. (it has to request something)
This can be any file, but the smaler the better.
"/empty" may not exist in your webserver, if you remove the entry and leave it blank it will request the index, which should always work.
So if you are unsure, just write nothing in that box. (and remove what's in)
In my config I use a file called "empty" which is an empty file, I may have set this as default parameter, but intantionaly I wanted to leave it blank.

Re: Webserver - Z-Way

Posted: Fri Jul 17, 2015 9:09 am
by Phil
Hi
Sorry, completely missed those instruction files!
However, I seem to now be on a newer version than either 1 or 2 and the module section no longer is an option.
There is however an app section which looks like it could be interesting, maybe the z-way part could be turned into an app. For the moment it looks like I need to add the 'load custom javascript' app which allow me to add the script.

I'll have a play, thanks.

Re: Webserver - Z-Way

Posted: Fri Jul 17, 2015 4:32 pm
by Sem;colon
Hello Phil,
you're right, mine changed as well... (strange, last time I looked it was different)
Here is a screenshot!
z-way new.PNG

Re: Webserver - Z-Way

Posted: Thu Dec 31, 2015 10:56 am
by Sem;colon
New version!

v0.30:
- Supports the latest Z-Way update
- Added support for SwitchColor (Multicolored LED Bulbs)
- Added support for Thermostates
- Created a proper installation manual
- Fixed some bugs
- Some Command names changed (you may need to recreate some actions)
- Feedback events changed (you will need to reassign all events you used from this plugin)

Re: Webserver - Z-Way

Posted: Fri Jan 15, 2016 2:29 pm
by gus
Hi!
trying to make this plugin to work, but having the same problems that Phil had:

15:26:51 Webserver - Z-Way ERROR: Host "Z-Way1" can't be added!(connection not possible)

I think I've followed the instructions.

Program Version: 0.4.1.r1694

Regards Rickard

Re: Webserver - Z-Way

Posted: Fri Jan 15, 2016 9:54 pm
by Sem;colon
Hi Gus, which version of z-way are you using?
Can you send me some screenshots how you configured the add host action in eventghost and the js script on z-way side?
Thank you!

Re: Webserver - Z-Way

Posted: Sat Jan 16, 2016 10:54 am
by gus
Thank's for your reply.

Se attached pictures

Re: Webserver - Z-Way

Posted: Sat Jan 16, 2016 10:56 am
by gus
Settings in EG

Re: Webserver - Z-Way

Posted: Sat Jan 16, 2016 11:16 am
by gus
I think I solved it!

I was fault trace with tcpdump on the RPI, and I saw that there was no incomming traffic.
So, back to EG, under Plugin Webserver, this settings needed to be checked:
14.jpg


12:15:34 Z-Way.Debug.Z-Way1 u"connected!"
12:15:34 Z-Way.Z-Way1 [u'SwitchMultilevel', [u'20', u'0', u'38'], 0, u'%']
12:15:34 Z-Way.Z-Way1 [u'SwitchMultilevel', [u'20', u'0', u'38'], 0, u'%']



Yey!!

Re: Webserver - Z-Way

Posted: Sat Jan 16, 2016 1:02 pm
by Sem;colon
Cool! Yes, that looks much better. :)
But I don't know why it didn't work without that checkbox, as it's not checked in my configuration...

Re: Webserver - Z-Way

Posted: Fri Jan 22, 2016 9:01 am
by Phil
Hi
Just updated my z-wave software and the load custom javascript file option has gone. There is now a load custom javascript code for z-wave application option which looks very different. Just had a quick look but havent yet figured how to get it going.
Would it maybe be worth submitting the code to the raZberry people to see if they would add it as an add in in its own right?