Page 1 of 1

Controlling a Everspring AD147 Plug-in Dimmer Module - How?

Posted: Tuesday 14 February 2017 20:29
by Bengan
Hi!

I have recently started laying around with Domoticz and Zwave to automate parts of my home. I am starting off small and this is my current setup.

Controller: Aeotec Z stick Gen5, plugged into a intel NUC mini PC running Ubuntu 16.04.
Domoticz 3.6577

I have a couple of plug in switches (http://telldus.se/produkt/fjarrstyrt_ut ... us_z-wave/) around the house that I got working after some trial and error.
I then moved on to a plugin dimmer (https://www.nexa.se/vara-produkter/nexa ... -in-dimmer - reports in as a "Everspring AD147 Plug-in Dimmer Module") figuring it would be somewhat plug and play to get it to work - add the device through open zwave control panel, add the dimmer to the switches tab and boom Im done...

This is where I run into problems and I am not sure I am getting any closer to a viable solution despite hours of googling and trying to find people with similar issues, why I am now creating this topics with the hope of someone out there being able to point me in the right direction. Hopefully one day once I get more familiar with home automation I will be able to do the same for other users.

Anyways, when trying to dim a lamp through the dimmer nothing happens, itÅ› like no command is sent to the device. Then when trying to switch device on or off with the light bulb next to the dimmer slider I get pop up saying "Error sending switch command, check device/hardware !". Checking the log I see "Error: OpenZWave: Internal Node ValueID not found! NodeID: 12 (0x0c), instanceID: 54". If I then go to the ozw control panel through controller setup -> node management -> Control Panel, and from there trigger a new dim value I can see that I am able to control and dim the lamp. So, it seems that I can control/dim the lamp, just not through a standard dimmer setup in Domoticz. After some googling my current thinking is that I need to create a virtual dummy dimmer ("Dummy (Does nothing, use for virtual switches only) ") and then control the dimmer through a LUA script connected to the virtual dummy dimmer. After some experimenting I can see that my LUA script is triggering but I cannot figure out how to send commands to the dimmer that executes. Looking at some information online it seems that one only need to return the commandArrya but I have also seen some execute curl commands via the command line in the LUA scripts, and that way trigger a device, but Im not sure. Will try to read up more on LUA to understand this a bit more, but any pointers on this are highly appreciated.

Is there anyone out there who has a similar setup or information/knowledge to help me figure this out, how to control this type of dimmer using my setup.

Re: Controlling a Everspring AD147 Plug-in Dimmer Module - How?

Posted: Thursday 23 February 2017 21:31
by Bengan
Have done some more testing on this and currently my guess is that I should be able to dim the light by triggering a curl command to Open Zway control panel valuepost, once I get this working Ill trigger it through a LUA scripts that runs whenever I do something with a dimmer I will add in Domoticz.

Anyways, running into some issues with this and once again post here to see if someone have run into something similar.

Get Zwave device information:
curl 'http://localhost:8080/json.htm?type=ope ... odes&idx=2'

Trying to fire off a configuration change:
curl -u username:pwd 'http://localhost:8080/ozwcp/valuepost.html' --data '6-CONFIGURATION-config-byte-1-1=0' -v
6 = idx of dimmer
1 = Parameter I want to change, in this case Dimmer which goes from 1-99 according to documentation on the plugin dimmer
0 = Want to turn it off

The command may be wrong altogether but Im getting a 401 Unauthorized on this, and when instead trying with https I get "gnutls_handshake() failed: An unexpected TLS packet was received.".

When looking through some other posts is seems to me that I should be able to trigger it without getting a 401 (e.g. http://www.domoticz.com/forum/viewtopic.php?t=4448, other devices but discussing sending z-wave commands in script).

Ill keep trying to figure this out and will post any findings/questions here in the hopes that someone can help me :)

Re: Controlling a Everspring AD147 Plug-in Dimmer Module - How?

Posted: Friday 03 March 2017 10:19
by heggink
Not sure if this is related but I have noticed that these dimmers are not correctly represented in Domoticz. If I switch them on manually, domoticz thinks they are off, if then I switch them again manually (ie off), domoticz gives a level indication even though the device is off. They don't seem to behave very well :-(.

Re: Controlling a Everspring AD147 Plug-in Dimmer Module - How?

Posted: Monday 20 November 2017 19:36
by petzno
Did anyone get the AD147 Nexa plugin dimmer to work with domoticz? And does anyone know how it is with LED? I am thinking about the minimum load it can take.