DomotiGa, Aeon Labs Z-stick and Everspring AN158

Forum about Domotiga Open Source Home Automation for Linux.

Moderator: RDNZL

mrqnapper
Member
Member
Posts: 234
Joined: Sat Jun 25, 2011 1:08 pm

Re: DomotiGa, Aeon Labs Z-stick and Everspring AN158

Post by mrqnapper »

Anyone using the AN158 plug and can tell me how to get the energy consumption read in Domotiga?

I did all the steps as described in the Domotoga Wiki still do not see any reading showing up in the graph or log?

this is a part of the OZW_Log.txt:

Code: Select all

2012-04-28 20:58:32:932 d4fec700 Sending command (Attempt 2, Callback ID=0x30, Expected Reply=0x04) - BasicCmd_Get (Node=3): 0x01, 0x09, 0x00, 0x13, 0x03, 0x02, 0x20, 0x02, 0$
2012-04-28 20:58:32:932 d4fec700       SerialController::Write (sent to controller)
2012-04-28 20:58:32:932 d4fec700       Write: 0x01, 0x09, 0x00, 0x13, 0x03, 0x02, 0x20, 0x02, 0x05, 0x30, 0xf3
2012-04-28 20:58:32:932 d4fec700 Top of DriverThreadProc loop.
2012-04-28 20:58:32:935 d27e4700 Wait::Multiple res=-1 num=1 >
2012-04-28 20:58:32:946 d27e4700 Wait::Multiple res=-1 num=1 >
2012-04-28 20:58:32:953 d2fe5700       Stream::Put (received from controller)
2012-04-28 20:58:32:953 d2fe5700       Put: 0x06
2012-04-28 20:58:32:954 d4fec700 Wait::Multiple res=2 num=3 >2,
2012-04-28 20:58:32:954 d4fec700       Stream::Get (provided to application)
2012-04-28 20:58:32:954 d4fec700       Get: 0x06
2012-04-28 20:58:32:955 d4fec700   ACK received CallbackId 0x30 Reply 0x04
2012-04-28 20:58:32:955 d4fec700 Top of DriverThreadProc loop.
2012-04-28 20:58:32:956 d27e4700 Wait::Multiple res=-1 num=1 >
2012-04-28 20:58:32:960 d2fe5700       Stream::Put (received from controller)
2012-04-28 20:58:32:960 d2fe5700       Put: 0x01, 0x04, 0x01, 0x13, 0x01, 0xe8
2012-04-28 20:58:32:961 d4fec700 Wait::Multiple res=2 num=3 >2,
2012-04-28 20:58:32:961 d4fec700       Stream::Get (provided to application)
2012-04-28 20:58:32:961 d4fec700       Get: 0x01
2012-04-28 20:58:32:961 d4fec700 Wait::Multiple res=0 num=1 >0,
2012-04-28 20:58:32:961 d4fec700       Stream::Get (provided to application)
2012-04-28 20:58:32:961 d4fec700       Get: 0x04
2012-04-28 20:58:32:961 d4fec700 Wait::Multiple res=0 num=1 >0,
2012-04-28 20:58:32:961 d4fec700       Stream::Get (provided to application)
2012-04-28 20:58:32:961 d4fec700       Get: 0x01, 0x13, 0x01, 0xe8
2012-04-28 20:58:32:961 d4fec700   Received: 0x01, 0x04, 0x01, 0x13, 0x01, 0xe8
2012-04-28 20:58:32:961 d4fec700       SerialController::Write (sent to controller)
2012-04-28 20:58:32:961 d4fec700       Write: 0x06
2012-04-28 20:58:32:962 d4fec700 ZW_SEND_DATA delivered to Z-Wave stack
2012-04-28 20:5
and this is showing up as well: I am not sure what is means but to me it seems that there is not much communication between the device and the stick?

Code: Select all

2012-04-28 20:59:13:269 d2fe5700       Stream::Put (received from controller)
2012-04-28 20:59:13:269 d2fe5700       Put: 0x01, 0x05, 0x00, 0x13, 0x36, 0x01, 0xde
2012-04-28 20:59:13:269 d4fec700 Wait::Multiple res=2 num=3 >2,
2012-04-28 20:59:13:270 d4fec700       Stream::Get (provided to application)
2012-04-28 20:59:13:270 d4fec700       Get: 0x01
2012-04-28 20:59:13:270 d4fec700 Wait::Multiple res=0 num=1 >0,
2012-04-28 20:59:13:270 d4fec700       Stream::Get (provided to application)
2012-04-28 20:59:13:270 d4fec700       Get: 0x05
2012-04-28 20:59:13:270 d4fec700 Wait::Multiple res=0 num=1 >0,
2012-04-28 20:59:13:270 d4fec700       Stream::Get (provided to application)
2012-04-28 20:59:13:270 d4fec700       Get: 0x00, 0x13, 0x36, 0x01, 0xde
2012-04-28 20:59:13:270 d4fec700   Received: 0x01, 0x05, 0x00, 0x13, 0x36, 0x01, 0xde
2012-04-28 20:59:13:270 d4fec700       SerialController::Write (sent to controller)
2012-04-28 20:59:13:270 d4fec700       Write: 0x06
2012-04-28 20:59:13:270 d4fec700   ZW_SEND_DATA Request with callback ID 0x36 received (expected 0x36)
2012-04-28 20:59:13:270 d4fec700 ERROR: ZW_SEND_DATA failed. No ACK received - device may be asleep.
2012-04-28 20:59:13:270 d4fec700   WARNING: Device is not a sleeping node - retrying the send.
2012-04-28 20:59:13:270 d4fec700   Expected callbackId was received

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

Re: DomotiGa, Aeon Labs Z-stick and Everspring AN158

Post by RDNZL »

This is the wrong log, it's open-zwave's log, nothing to do with DomotiGa, although it seems it cannot send data to your node, range or other problem?

You need to supply the cli output of DomotiGa.
Do you get any power usage value in a DomotiGa device field at all?
I guess only after starting?
If so, where does it land (in which value field?),

Do you see usage values in cli output when you click Poll Status in Z-Wave Cmdr?
If so you can schedule a poll request every five minutes, by using this direct all from event action.

Code: Select all

Main.hZWave.RequestBasicReport(<NodeNumber>)
Regards, Ron.
mrqnapper
Member
Member
Posts: 234
Joined: Sat Jun 25, 2011 1:08 pm

Re: DomotiGa, Aeon Labs Z-stick and Everspring AN158

Post by mrqnapper »

Ok did some more investigation:
This is form the CLI log after the polling:

Code: Select all

2012-04-29 18:30:44 [Z-Wave] Got value changed notification for node 3 and instance 1 value1 changed to On.
2012-04-29 18:30:44 [Devices] Interface with name 'Z-Wave Controller' has id '15'
2012-04-29 18:30:44 [Devices] Device with address '3' is 'AN158 Plug'
2012-04-29 18:30:44 [Devices] ValueUpdate() called for device with id '69' and name 'AN158 Plug'
2012-04-29 18:30:44 [Events] 1a. Running DeviceChange query 'SELECT * FROM events, triggers WHERE events.trigger1 = triggers.id AND triggers.type = 3 AND events.enabled AND t$
2012-04-29 18:30:44 [Events] 1b. No result.
2012-04-29 18:30:44 [Events] 1a. Running DeviceChange query 'SELECT * FROM events, triggers WHERE events.trigger1 = triggers.id AND triggers.type = 6 AND events.enabled AND t$
2012-04-29 18:30:44 [Events] 1b. No result.
2012-04-29 18:30:44 [Z-Wave] Got value changed notification for node 3 and instance 1 value1 changed to On.
2012-04-29 18:30:44 [Devices] Interface with name 'Z-Wave Controller' has id '15'
2012-04-29 18:30:44 [Devices] Device with address '3' is 'AN158 Plug'
2012-04-29 18:30:44 [Devices] ValueUpdate() called for device with id '69' and name 'AN158 Plug'

2012-04-29 18:30:44 [Z-Wave] Got value changed notification for node 3 and instance 1 value1 changed to On.
2012-04-29 18:30:44 [Devices] Interface with name 'Z-Wave Controller' has id '15'
2012-04-29 18:30:44 [Devices] Device with address '3' is 'AN158 Plug'
2012-04-29 18:30:44 [Devices] ValueUpdate() called for device with id '69' and name 'AN158 Plug'
2012-04-29 18:31:03 [Z-Wave] Requesting node state of node id 3
2012-04-29 18:31:15 [Z-Wave] Requesting node state of node id 3
2012-04-29 18:31:52 [ServerStats] Load: 0.01 0.06 0.06 6/325 20472

2012-04-29 18:31:52 [ServerStats] rrdtool update /home/wiechert/domotiga/rrd/serverload.rrd N:0.01:0.06:0.06
2012-04-29 18:31:52 [ServerStats] MemTotal: 1537420 MemFree:631820 Buffers: 84964 Cached: 394260
2012-04-29 18:31:52 [ServerStats] rrdtool update /home/wiechert/domotiga/rrd/servermemory.rrd N:1501,38671875:617,01171875:82,97265625:385,01953125
2012-04-29 19:09:14 [Z-Wave] Requesting node state of node id 3
2012-04-29 19:09:51 [ServerStats] Load: 0.23 0.12 0.08 1/318 20688

2012-04-29 19:09:51 [ServerStats] rrdtool update /home/wiechert/domotiga/rrd/serverload.rrd N:0.23:0.12:0.08
2012-04-29 19:09:51 [ServerStats] MemTotal: 1537420 MemFree:577524 Buffers: 87868 Cached: 418808
2012-04-29 19:09:51 [ServerStats] rrdtool update /home/wiechert/domotiga/rrd/servermemory.rrd N:1501,38671875:563,98828125:85,80859375:408,9921875

I dd not get any power usage value in a DomotiGa device field. So maybe need to create a new device? See if that helps. Or reset all devices and try again?
User avatar
RDNZL
Forum Moderator
Forum Moderator
Posts: 1008
Joined: Sun Sep 24, 2006 1:45 pm
Location: Dordrecht, The Netherlands
Contact:

Re: DomotiGa, Aeon Labs Z-stick and Everspring AN158

Post by RDNZL »

Disable all debug, just enable z-wave debug in settings and capture cli output from DomotiGa.
Upon startup, and after letting it run for some time.
Better to start DomotiGa in server mode and click on Poll and Meter buttons too, see if they get usage reading in CLI output.
If so there is hope.
Regards, Ron.
Post Reply

Return to “DomotiGa Forum”