I have a z-wave blind controller and I need to get at the information that (I think) is stored in the extra data store which is shown on the advanced tab to have 37 named entries. Is there a way to find out what these named entries are and what values they have?
Announcement
Collapse
No announcement yet.
how to get extra data store for a z-wave device
Collapse
X
-
You would have to write a script to read them. They are just name/value pairs of data.
This code will read the root device and all child devices, dumping PED if there are any available:
PHP Code:Public Sub DumpPed()
Dim d As Integer = 0
Dim y, x As Integer
Dim pk() As String
Dim s, lin As String
Dim dev, pDev As Scheduler.Classes.DeviceClass
Dim assocDevices() As Integer
Dim PData As clsPlugExtraData = Nothing
pDev = hs.GetDeviceByRef(gparentDeviceRef)
assocDevices = pDev.AssociatedDevices(hs)
For y = 0 To assocDevices.Count - 1
dev = hs.GetDeviceByRef(assocDevices(y))
If (dev IsNot Nothing) Then
lin = dev.Ref(hs) & " " & dev.Name(hs)
PData = dev.PlugExtraData_Get(hs)
If (PData IsNot Nothing) Then
pk = PData.GetNamedKeys()
For x = 0 To pk.Length() - 1
s = PData.GetNamed(pk(x))
lin &= " pk=[" & pk(x) & "] val=[" & s & "]"
Next
Log(lin, LogType.LOG_TYPE_DEBUG)
End If
End If
Next
End Sub
HS4Pro on a Raspberry Pi4
54 Z-Wave Nodes / 21 Zigbee Devices / 108 Events / 767 Devices
Plugins: Z-Wave / Zigbee Plus / EasyTrigger / AK Weather / OMNI
HSTouch Clients: 1 Android
-
I'm having a problem with s = PData.GetNamed(pk(x)). The error is Conversion from type 'Byte()' to type 'String' is not valid. So, I'm assuming that GetNamed returns an array of bytes? I tried to find documentation on PlugExtraData_Get and GetNamed, but couldn't find it in the documentation.
Comment
-
Originally posted by danhi View PostAnd any idea where to find documentation on GetNamed or PlugExtraData_Get? Where did you find out how to use it?HS4Pro on a Raspberry Pi4
54 Z-Wave Nodes / 21 Zigbee Devices / 108 Events / 767 Devices
Plugins: Z-Wave / Zigbee Plus / EasyTrigger / AK Weather / OMNI
HSTouch Clients: 1 Android
Comment
Comment