Domotiga and z-wave events from devices

Forum about Domotiga Open Source Home Automation for Linux.

Moderator: RDNZL

Post Reply
uAlex73
Member
Member
Posts: 218
Joined: Sun Jan 01, 2012 3:42 pm
Contact:

Domotiga and z-wave events from devices

Post by uAlex73 »

I am new to Domotiga (and also z-wave :-)), i know Domotiga can poll the devices, but if the device sends an event itself, does Domotiga "sees" and processes this one successfully?
DomotiGa / Z-Wave / RFXCom / Visonic PowerMaster / Home Assistant / Zigbee2MQTT / DSMR Reader / Toon1 (rooted)
uAlex73
Member
Member
Posts: 218
Joined: Sun Jan 01, 2012 3:42 pm
Contact:

Re: Domotiga and z-wave events from devices

Post by uAlex73 »

Then i assume it doesn't work? :-(
DomotiGa / Z-Wave / RFXCom / Visonic PowerMaster / Home Assistant / Zigbee2MQTT / DSMR Reader / Toon1 (rooted)
User avatar
jrkalf
Member
Member
Posts: 291
Joined: Fri Nov 12, 2010 4:20 pm
Location: Nootdorp
Contact:

Re: Domotiga and z-wave events from devices

Post by jrkalf »

Sorry I didn't see your message.
From what I've experienced for now: NO it doesn't work. (yet)
If you can't fix it with a hammer, you've got an electrical problem!

Fibaro HC2, various z-wave switching, alerting, detection modules.
ELV FHT80b heating system.
User avatar
RDNZL
Forum Moderator
Forum Moderator
Posts: 1008
Joined: Sun Sep 24, 2006 1:45 pm
Location: Dordrecht, The Netherlands
Contact:

Re: Domotiga and z-wave events from devices

Post by RDNZL »

You can try DomotiGa r817 together with latest open-zwave wrapper, it should pick up all value changes and report them back to DomotiGa.
If not, please e-mail me your debug log, I'm also looking for users with an ZWave thermostat to finish coding support for those device as well.
To revision 817 I also added support for Aeon Labs Micro Smart Energy Switch, switching and logging it's power usage, Fibaro FGS221, incl. multi-instance switching/reporting.
Also added logging luminance, temperature and battery status of other ZWave sensors, needs testing.
Regards, Ron.
User avatar
jrkalf
Member
Member
Posts: 291
Joined: Fri Nov 12, 2010 4:20 pm
Location: Nootdorp
Contact:

Re: Domotiga and z-wave events from devices

Post by jrkalf »

Thanks for the update Ron.
It looks great.

I'm wondering though whether or not the value updates should be instant or on a poll basis. I don't see instant updates just yet.

I did see the multi-instance switching in action by using node configuration <realnode:virtualnode> addresses, that works nicely.
If you can't fix it with a hammer, you've got an electrical problem!

Fibaro HC2, various z-wave switching, alerting, detection modules.
ELV FHT80b heating system.
jerome
Starting Member
Starting Member
Posts: 5
Joined: Sat Mar 03, 2012 3:59 pm

Re: Domotiga and z-wave events from devices

Post by jerome »

I use Domotiga with Z-wave devices.
I have Everspring Door-Window SM103 detectors with Aeon lab stick S2 controller.

My configuration:
- Domotiga : rev.848 (if update database is OK)
- open-zwave : rev. 493

Domotiga catches events from SM103 without problem; Gambas console extract below :

NodeEvent: 21825879:6
2012-03-10 11:54:43:516 Node006, Received: 0x01, 0x09, 0x00, 0x04, 0x00, 0x06, 0x03, 0x20, 0x01, 0x00, 0xd6
2012-03-10 11:54:43:516
2012-03-10 11:54:43:517 Node006, Received Basic set from node 6: level=0. Sending event notification.

NodeEvent: 21825879:6
2012-03-10 11:54:44:009 Node006, Received: 0x01, 0x09, 0x00, 0x04, 0x00, 0x06, 0x03, 0x20, 0x01, 0x63, 0xb5
2012-03-10 11:54:44:009
2012-03-10 11:54:44:009 Node006, Received Basic set from node 6: level=99. Sending event notification.


(Note: 0="close"; 99="open")

But in the devices list (with refresh or autorefresh active), the state of "value 1" stays to "open". There isn't update.

Is it normal situation with rev. 848 ?
Do I change code in wrapper ?

Jérôme
User avatar
RDNZL
Forum Moderator
Forum Moderator
Posts: 1008
Joined: Sun Sep 24, 2006 1:45 pm
Location: Dordrecht, The Netherlands
Contact:

Re: Domotiga and z-wave events from devices

Post by RDNZL »

Can you catch and mail me the output of DomotiGa with open-zwave debug enabled?
It contains more info than the text above, so I can see whats wrong and fix it.
If you run the binary try something like DomotiGa.gambas >zwavedebug.log
Use DomotiGaServer.gambas if you run the cli version.
Regards, Ron.
User avatar
jrkalf
Member
Member
Posts: 291
Joined: Fri Nov 12, 2010 4:20 pm
Location: Nootdorp
Contact:

Re: Domotiga and z-wave events from devices

Post by jrkalf »

Ron,

I just downloaded and compiled the latest versions of domotiga and open-zwave, but I can't compile the domozwave wrapper anymore. My error message:

Code: Select all

jelle@XXXXX:/opt/domotiga/wrappers/domozwave$ make
g++ -c -Wall -Wno-format -g -DDEBUG -fPIC -I open-zwave/cpp/src -I open-zwave/cpp/src/command_classes/ -I open-zwave/cpp/src/value_classes/ -I open-zwave/cpp/src/platform/ -I open-zwave/cpp/tinyxml/ -o DomoZWave.o DomoZWave.cpp
DomoZWave.cpp: In function ‘void DomoZWave_EnablePolling(int, int)’:
DomoZWave.cpp:773:44: error: no matching function for call to ‘OpenZWave::Manager::SetPollInterval(int&)’
DomoZWave.cpp:773:44: note: candidate is:
open-zwave/cpp/src/Manager.h:341:8: note: void OpenZWave::Manager::SetPollInterval(int32, bool)
open-zwave/cpp/src/Manager.h:341:8: note:   candidate expects 2 arguments, 1 provided
make: *** [DomoZWave.o] Error 1
If you can't fix it with a hammer, you've got an electrical problem!

Fibaro HC2, various z-wave switching, alerting, detection modules.
ELV FHT80b heating system.
j.hoekstra
Member
Member
Posts: 255
Joined: Thu Jun 25, 2009 2:09 pm
Location: Enschede, The Netherlands

Re: Domotiga and z-wave events from devices

Post by j.hoekstra »

jerome
Starting Member
Starting Member
Posts: 5
Joined: Sat Mar 03, 2012 3:59 pm

Re: Domotiga and z-wave events from devices

Post by jerome »

Ron,

Thank you for your reply.

I don't know to generate zwavedebug.log.
I find OZW_Log.txt and debug-2012-03.log files.
I have forgotten to indicate I use domotiga on ubuntu 11.10 with ide Gambas. So I can generate file of "Logs->Debug". But there are few informations.

Jérôme
jerome
Starting Member
Starting Member
Posts: 5
Joined: Sat Mar 03, 2012 3:59 pm

Domotiga and z-wave events from devices

Post by jerome »

I have tried open-zwave rev. 524.
it 's worst !
I have just one line in debug log:
2012/04/15 17:36:34 [Z-Wave] Initialising open-zwave wrapper.

And I haven't sensor state in console.

I want to back to rev. 493.
uAlex73
Member
Member
Posts: 218
Joined: Sun Jan 01, 2012 3:42 pm
Contact:

Re: Domotiga and z-wave events from devices

Post by uAlex73 »

Did you also recompile the wrapper from Domotiga?
DomotiGa / Z-Wave / RFXCom / Visonic PowerMaster / Home Assistant / Zigbee2MQTT / DSMR Reader / Toon1 (rooted)
jerome
Starting Member
Starting Member
Posts: 5
Joined: Sat Mar 03, 2012 3:59 pm

Re: Domotiga and z-wave events from devices

Post by jerome »

Yes, I recompile the wrapper.
I have changed polling time to 10000 (ms ?? http://www.domotiga.nl/issues/95#change-281) and now I have event (basic set) in the console.
But there isn't changement in the devices list.

This is debug log:
2012/04/17 22:07:38 [Z-Wave] Initialising open-zwave wrapper.
2012/04/17 22:07:38 [Z-Wave] Searching for nodes to poll.
2012/04/17 22:07:38 [Z-Wave] Got value changed notification for node 3 and instance 1 value1 changed to On.
2012/04/17 22:07:38 [Z-Wave] Got value changed notification for node 3 and instance 1 value1 changed to Closed.
2012/04/17 22:07:39 [Z-Wave] Got value changed notification for node 3 and instance 1 value1 changed to Closed.
2012/04/17 22:07:39 [Z-Wave] Got value changed notification for node 3 and instance 1 value255 changed to 100.
2012/04/17 22:07:39 [Z-Wave] Searching for nodes to poll.


But I want perharps a impossible solution !?
( I want intantaneous state in the devices list)
jerome
Starting Member
Starting Member
Posts: 5
Joined: Sat Mar 03, 2012 3:59 pm

Re: Domotiga and z-wave events from devices

Post by jerome »

uAlex73 : yes, I recompile the wrapper.
I use the method described in this page http://www.domotiga.nl/projects/domotiga/wiki/Z-Wave.
First I compile open-zwave and next the wrapper.
Thanks for your help.
User avatar
RDNZL
Forum Moderator
Forum Moderator
Posts: 1008
Joined: Sun Sep 24, 2006 1:45 pm
Location: Dordrecht, The Netherlands
Contact:

Re: Domotiga and z-wave events from devices

Post by RDNZL »

Immediate status updates can only be done with associations between zwave device, then they report status changes to each other.
So when you include the stick it receives direct update, but not all zwave devices support this.
Please check documents.
Also if you fiddle with the open-zwave wrapper, make sure you remove the zwcfg*.cfg (in wrapper directory) every now and then after changing settings, otherwise the open-zwave wrapper doesn't query for all messages and create a new config file and keep using old configs per node.
Regards, Ron.
Post Reply

Return to “DomotiGa Forum”