Help with door / window sensor

Hello,

I am trying to understand the correct way to use a zwave door sensor. eventually i want to build an alarm panel like here:

I have a zwave wadwaz-1 sensor, i am not sure what entities should i be using from below i see 6 entries for this node.

sensor.alarm_level	State: 255	

Attributes:

node_id: 18
value_index: 1
unit_of_measurement: 
value_id: 72057594345963537
old_entity_id: sensor.alarm_level_18_1
value_instance: 1
new_entity_id: sensor.alarm_level
friendly_name: Alarm Level


sensor.alarm_type	State:7	

Attributes:
ode_id: 18
value_index: 0
unit_of_measurement: 
value_id: 72057594345963521
old_entity_id: sensor.alarm_type_18_0
value_instance: 1
new_entity_id: sensor.alarm_type
friendly_name: Alarm Type


sensor.linear_unknown_type2001_id0102_burglar	
State: 3	
Attributes:
node_id: 18
value_index: 10
unit_of_measurement: 
value_id: 72057594345963681
old_entity_id: sensor.linear_unknown_type2001_id0102_burglar_18_10
value_instance: 1
new_entity_id: sensor.linear_unknown_type2001_id0102_burglar
friendly_name: Linear Unknown: type=2001, id=0102 Burglar


sensor.linear_unknown_type2001_id0102_sourcenodeid	
State: 0	

Attributes:
node_id: 18
value_index: 2
unit_of_measurement: 
value_id: 72057594345963553
old_entity_id: sensor.linear_unknown_type2001_id0102_sourcenodeid_18_2
value_instance: 1
new_entity_id: sensor.linear_unknown_type2001_id0102_sourcenodeid
friendly_name: Linear Unknown: type=2001, id=0102 SourceNodeId


binary_sensor.sensor	
State:on	
Atributes:
node_id: 18
value_index: 0
value_id: 72057594344898560
old_entity_id: binary_sensor.sensor_18_0
value_instance: 1
new_entity_id: binary_sensor.sensor
friendly_name: Sensor



zwave.__2	
State:Sleeping	

Attributes:
receivedCnt: 39
battery_level: 100
node_name:  
product_name: 
is_zwave_plus: false
lastRequestRTT: 79
receivedDups: 0
query_stage: Complete
friendly_name:  
is_failed: false
is_awake: false
manufacturer_name: 
is_info_received: true
averageResponseRTT: 35
neighbors: 1,2,5,11,12,16,17
new_entity_id: zwave._
lastResponseRTT: 35
wake_up_interval: 3600
sentCnt: 22
receivedTS: 2017-10-13 00:31:08:476 
capabilities: beaming,routing
sentFailed: 0
receivedUnsolicited: 25
node_id: 18
is_ready: true
old_entity_id: zwave.__18
averageRequestRTT: 52
sentTS: 2017-10-13 00:22:53:702 
retries: 0
max_baud_rate: 40000

thanks,

It definitely took a bit of tinkering, but I ended up using a binary sensor like this for my door sensors:

front_door:
      value_template: "{{ states.sensor.front_door_alarm_level_12_1.state != '0' }}"
      device_class: opening
      entity_id: sensor.front_door_alarm_level_12_1
      friendly_name: Front Door

Then all I need to do in any automation is access it from binary_sensor.front_door.

1 Like

If you simply want it to report on/off when the door or window is open and closed then use the binary sensor.
In your case the entity_id would be binary_sensor.sensor

thanks… will give it a try with the binanry sensor.

for now i just need to know the state open / close…

eventually i want to build an alarm system… hopefully also with chimes on sonos