Author Topic: Device Options / Configuration Settings - Reading?  (Read 343 times)

Offline beachboync

  • Full Member
  • ***
  • Posts: 224
  • Karma: +4/-0
Device Options / Configuration Settings - Reading?
« on: March 11, 2018, 10:28:32 am »
I have 3 Multisensor 6 units. I have set some of the settings in Device Options / Configuration Settings, but I would like to read out all the settings to see what is set and what the defaults are.

How can I read out ALL the device settings? LUA is OK.

Thanks, Bob
Bob (beachboync)

Offline Selkirk

  • Newbie
  • *
  • Posts: 18
  • Karma: +1/-0
Re: Device Options / Configuration Settings - Reading?
« Reply #1 on: March 11, 2018, 09:23:20 pm »
I can point in a direction, not sure if its right.

this describes sending a raw z-wave command:

Code: [Select]
luup.call_action("urn:micasaverde-com:serviceId:ZWaveNetwork1", "SendData", {Node=15, Data="x70 4 29 1 3"}, 1)

x70 is COMMAND_CLASS_CONFIGURE.  4 is SET, 29 is the parameter #, 1 is the size of the value, I think, and 3 is the value.

So, GET will probably be similar. Checking here I can see that 5 is CONFIGURATION_GET and 8 is CONFIGURATION_BULK_GET.

The format of the request is here around p 156.

Looks like GET is simpler, so change the 4 to 5 and the parameter from 29 to 3 (Default PIR time), and 15 to 27 which is my sensor.

Code: [Select]
luup.call_action("urn:micasaverde-com:serviceId:ZWaveNetwork1", "SendData", {Node=27, Data="x70 5 3"}, 1)

Then turning on verbose mode and tailing the log for z-wave data ...
Code: [Select]
tail -f /var/log/cmh/LuaUPnP.log | grep '^01\|^41\|^42\|^24'

I'm now looking for the response frame, which is a CONFIGURATION_REPORT which is 0x06.

So I should see some data come back that starts with 0x70 0x06.

Oops.  I don't.

Anyway, I have to make dinner, but maybe this is enough to start fiddling?

Offline Selkirk

  • Newbie
  • *
  • Posts: 18
  • Karma: +1/-0
Re: Device Options / Configuration Settings - Reading?
« Reply #2 on: March 11, 2018, 09:26:51 pm »
Oh, might need to push the button on the sensor to wake it up.

Offline Selkirk

  • Newbie
  • *
  • Posts: 18
  • Karma: +1/-0
Re: Device Options / Configuration Settings - Reading?
« Reply #3 on: March 11, 2018, 09:36:22 pm »
And I used the device # instead of the node.  So fixing that, the config value comes back in the log:

Code: [Select]
24 03/11/18 18:31:38.392 ZWaveNode::HandlePollUpdate node 22 device 27 class 0x70 command 0x6 m_iFrameID 1861/20833152 data 0x3 0x2 0x0 0xf0 (####) <0x772dd520>
24 03/11/18 18:31:38.392 ZWaveNode::HandlePollUpdate_Configuration node 22 device 27 var 3=240 CONFIGURATION_REPORT 0x3 0x2 0x0 0xf0 (####) <0x772dd520>

So, you can probably just
Code: [Select]
tail -f /var/log/cmh/LuaUPnP.log | grep 'CONFIGURATION_REPORT'

So see the results of typing the call_action into test code window.