Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Webserver - Z-Way

Questions and comments specific to a particular plugin should go here.
Sem;colon
Plugin Developer
Posts: 625
Joined: Sat Feb 18, 2012 10:51 am
Location: Germany

Webserver - Z-Way

Post 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
Attachments
Webserver - Z-Way.zip
v0.42.0
(492.24 KiB) Downloaded 19 times
Webserver - Z-Way.zip
v0.40.1
(346.96 KiB) Downloaded 141 times
Webserver - Z-Way.zip
v0.32
(349.33 KiB) Downloaded 145 times
Webserver - Z-Way.zip
v0.30
(167.36 KiB) Downloaded 175 times
Webserver - Z-Way.zip
v0.11
(1019.45 KiB) Downloaded 198 times
Last edited by Sem;colon on Fri Jan 27, 2017 9:37 pm, edited 9 times in total.
If you like my work, Image me a drink :wink:
Sem;colon
Plugin Developer
Posts: 625
Joined: Sat Feb 18, 2012 10:51 am
Location: Germany

Re: Webserver - Z-Way

Post by Sem;colon »

New Version!

v0.1:
- Added support for SwitchMultilevel (Dimmer)
- Added support link
- Feedback events changed a bit
If you like my work, Image me a drink :wink:
Sem;colon
Plugin Developer
Posts: 625
Joined: Sat Feb 18, 2012 10:51 am
Location: Germany

Re: Webserver - Z-Way

Post 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
If you like my work, Image me a drink :wink:
Phil
Experienced User
Posts: 111
Joined: Tue Apr 15, 2014 10:42 am
Location: Merseyside, UK

Re: Webserver - Z-Way

Post 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
Sem;colon
Plugin Developer
Posts: 625
Joined: Sat Feb 18, 2012 10:51 am
Location: Germany

Re: Webserver - Z-Way

Post 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.
If you like my work, Image me a drink :wink:
Phil
Experienced User
Posts: 111
Joined: Tue Apr 15, 2014 10:42 am
Location: Merseyside, UK

Re: Webserver - Z-Way

Post 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.
Sem;colon
Plugin Developer
Posts: 625
Joined: Sat Feb 18, 2012 10:51 am
Location: Germany

Re: Webserver - Z-Way

Post 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
If you like my work, Image me a drink :wink:
Sem;colon
Plugin Developer
Posts: 625
Joined: Sat Feb 18, 2012 10:51 am
Location: Germany

Re: Webserver - Z-Way

Post 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)
If you like my work, Image me a drink :wink:
gus
Posts: 11
Joined: Sun Feb 10, 2013 5:09 pm

Re: Webserver - Z-Way

Post 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
Sem;colon
Plugin Developer
Posts: 625
Joined: Sat Feb 18, 2012 10:51 am
Location: Germany

Re: Webserver - Z-Way

Post 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!
If you like my work, Image me a drink :wink:
gus
Posts: 11
Joined: Sun Feb 10, 2013 5:09 pm

Re: Webserver - Z-Way

Post by gus »

Thank's for your reply.

Se attached pictures
Attachments
12.jpg
11.jpg
10.jpg
gus
Posts: 11
Joined: Sun Feb 10, 2013 5:09 pm

Re: Webserver - Z-Way

Post by gus »

Settings in EG
Attachments
13.jpg
gus
Posts: 11
Joined: Sun Feb 10, 2013 5:09 pm

Re: Webserver - Z-Way

Post 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!!
Sem;colon
Plugin Developer
Posts: 625
Joined: Sat Feb 18, 2012 10:51 am
Location: Germany

Re: Webserver - Z-Way

Post 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...
If you like my work, Image me a drink :wink:
Phil
Experienced User
Posts: 111
Joined: Tue Apr 15, 2014 10:42 am
Location: Merseyside, UK

Re: Webserver - Z-Way

Post 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?
Post Reply