Changing index of a ZWave Device

For Z-Wave related questions in Domoticz

Moderator: leecollings

Post Reply
febalci
Posts: 331
Joined: Monday 03 July 2017 19:58
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Changing index of a ZWave Device

Post by febalci »

Domoticz 3.8153 Stable as Synology package;

I am trying to use the Seismic Intensity device of Fibaro FGMS001 Motion Sensor. Since Seismic Intensity Device is not handled in Domoticz, it always gives:

Code: Select all

OpenZWave: Value_Added: Unhandled Label: Seismic Intensity, Unit: mercalli
in the log file. When i check zwcfg:

Code: Select all

<CommandClass id="49" name="COMMAND_CLASS_SENSOR_MULTILEVEL" version="8" innif="true">
<Instance index="1" />
<Value type="decimal" genre="user" instance="1" index="1" label="Temperature" units="C" read_only="true" write_only="false" verify_changes="false" poll_intensity="0" min="0" max="0" value="24.9" />
<Value type="decimal" genre="user" instance="1" index="3" label="Luminance" units="lux" read_only="true" write_only="false" verify_changes="false" poll_intensity="0" min="0" max="0" value="57" />
<Value type="decimal" genre="user" instance="1" index="25" label="Seismic Intensity" units="mercalli" read_only="true" write_only="false" verify_changes="false" poll_intensity="0" min="0" max="0" value="0.0" />
<\CommandClass>
Seismic Intensity uses index 25, as OpenZWave device_classes.xml shows (hex19=25):

Code: Select all

<DeviceType key="0x0d19" label="Seismic Intensity Sensor" command_classes="0x5a,0x5e,0x59,0x72,0x73,0x85,0x86,0x30,0x31"/>
Since Domoticz doesn't have this device type, is it possible to alter zwcfg file to reflect any other compatible device by changing the index, like:

Code: Select all

<Value type="decimal" genre="user" instance="1" index="1" label="Seismic Intensity" units="mercalli" read_only="true" write_only="false" verify_changes="false" poll_intensity="0" min="0" max="0" value="0.0" />
and act as if this device is a temperature sensor:

Code: Select all

<DeviceType key="0x0d01" label="Air Temperature Sensor" command_classes="0x5a,0x5e,0x59,0x72,0x73,0x85,0x86,0x30,0x31"/>
Does that seems logical? Or do you suggest anything else?
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest