Z-wave channels not working

(Nakh Home) #1

Hi

i have bought those two items

NEO-Coolcam-NAS-DS01Z-Smart-Home-Z-Wave-Plus-Door-Window-Sensor-Compatible-with-Z-wave

NEO Coolcam NAS-PD01Z Smart Home Z-Wave Plus PIR Motion Sensor

My things

i have defined my items :


DateTime ZWaveNode2_DoorWindowSensor_LastUpdate   "Last Update [%1$ta %1$tR]" <clock>
DateTime ZWaveNode2DoorWindowSensor_AlarmAccess_LastUpdate   "Last Update [%1$ta %1$tR]" <clock>
DateTime ZWaveNode2DoorWindowSensor_BatteryLevel_LastUpdate   "Last Update [%1$ta %1$tR]" <clock>
DateTime ZWaveNode8MotionSensorPIRMotionSensor_BinarySensor_LastUpdate   "Last Update [%1$ta %1$tR]" <clock>
DateTime ZWaveNode8MotionSensorPIRMotionSensor_SensorLuminance_LastUpdate   "Last Update [%1$ta %1$tR]" <clock>
DateTime ZWaveNode8MotionSensorPIRMotionSensor_SensorTemperature_LastUpdate   "Last Update [%1$ta %1$tR]" <clock>
DateTime ZWaveNode8MotionSensorPIRMotionSensor_AlarmBurglar_LastUpdate  "Last Update [%1$ta %1$tR]" <clock>
DateTime ZWaveNode8MotionSensorPIRMotionSensor_BatteryLevel_LastUpdate  "Last Update [%1$ta %1$tR]" <clock>

and a rule file


rule "ZWaveNode2_DoorWindowSensor"
when
    Item ZWaveNode2_DoorWindowSensor changed 
then
     ZWaveNode2_DoorWindowSensor_LastUpdate.postUpdate(new DateTimeType()) 
end

rule "ZWaveNode2DoorWindowSensor_AlarmAccess_LastUpdate"
when
    Item ZWaveNode2DoorWindowSensor_AlarmAccess changed 
then
     ZWaveNode2DoorWindowSensor_AlarmAccess_LastUpdate.postUpdate(new DateTimeType()) 
end

rule "ZWaveNode2DoorWindowSensor_BatteryLevel_LastUpdate"
when
    Item ZWaveNode2DoorWindowSensor_BatteryLevel changed 
then
     ZWaveNode2DoorWindowSensor_BatteryLevel_LastUpdate.postUpdate(new DateTimeType()) 
end

rule "ZWaveNode8MotionSensorPIRMotionSensor_BinarySensor_LastUpdate"
when
    Item ZWaveNode8MotionSensorPIRMotionSensor_BinarySensor changed 
then
     ZWaveNode8MotionSensorPIRMotionSensor_BinarySensor_LastUpdate.postUpdate(new DateTimeType()) 
end


rule "ZWaveNode8MotionSensorPIRMotionSensor_SensorLuminance_LastUpdate"
when
    Item ZWaveNode8MotionSensorPIRMotionSensor_SensorLuminance changed 
then
     ZWaveNode8MotionSensorPIRMotionSensor_SensorLuminance_LastUpdate.postUpdate(new DateTimeType()) 
end

rule "ZWaveNode8MotionSensorPIRMotionSensor_SensorTemperature_LastUpdate"
when
    Item ZWaveNode8MotionSensorPIRMotionSensor_SensorTemperature changed 
then
     ZWaveNode8MotionSensorPIRMotionSensor_SensorTemperature_LastUpdate.postUpdate(new DateTimeType()) 
end


rule "ZWaveNode8MotionSensorPIRMotionSensor_AlarmBurglar_LastUpdate"
when
    Item ZWaveNode8MotionSensorPIRMotionSensor_AlarmBurglar changed 
then
     ZWaveNode8MotionSensorPIRMotionSensor_AlarmBurglar_LastUpdate.postUpdate(new DateTimeType()) 
end

rule "ZWaveNode8MotionSensorPIRMotionSensor_BatteryLevel_LastUpdate"
when
    Item ZWaveNode8MotionSensorPIRMotionSensor_BatteryLevel changed 
then
     ZWaveNode8MotionSensorPIRMotionSensor_BatteryLevel_LastUpdate.postUpdate(new DateTimeType()) 
end
your code goes here

not all the channels are updated

even when i am pressing once on the physical button on the door and motion sensor, i can see in the log that

2018-04-01 17:02:34.622 [me.event.ThingUpdatedEvent] - Thing 'zwave:device:162723a63f8:node8' has been updated.

2018-04-01 17:02:40.113 [me.event.ThingUpdatedEvent] - Thing 'zwave:device:162723a63f8:node4' has been updated

what am i missing???

0 Likes

(Ole Morten Rønning) #2

Could it just be that there haven’t been any events yet?
All items starts out as null.

Put a log statement in all your rules. Makes it easier to debug:

logInfo("test", "ZWaveNode2_DoorWindowSensor.state= " + ZWaveNode2_DoorWindowSensor.state)

I can also recommend this post. If you group together items of the same type, one rule with one logInfo will tell you which item changed.

0 Likes