Making a battery level sensor for a zwave pir sensor

Hi Guys,

I have had quite a few of these Neo CoolCam z-wave pir sensors around the house for a few months now and they work great.

I am wanting to get a sensor type readout in home assistant for the battery level. I can see it under states (under zwave.bathroom_downstairs_pir) but am not sure how to get that info into a sensor readout in a group.

zwave.bathroom_downstairs_pir

initializing

node_id: 6
node_name: Bathroom Downstairs PIR
manufacturer_name: Neo CoolCam
product_name: Battery Powered PIR Sensor
query_stage: CacheLoad
is_awake: false
is_ready: false
is_failed: false
is_info_received: true
max_baud_rate: 40000
is_zwave_plus: true
capabilities: beaming,routing
sentCnt: 2
sentFailed: 1
retries: 0
receivedCnt: 153
receivedDups: 46
receivedUnsolicited: 153
sentTS: 2018-07-28 16:20:28:343
receivedTS: 2018-07-28 16:42:42:834
lastRequestRTT: 0
averageRequestRTT: 0
lastResponseRTT: 0
averageResponseRTT: 0
battery_level: 100
wake_up_interval: 43200
friendly_name: Bathroom Downstairs PIR

see an example from my config here:
https://github.com/SilvrrGIT/HomeAssistant/blob/master/sensors.yaml#L260

Let me know if you need help figuring it out.  Just use your entity ID in place of zwave.ge_32563_hinge_pin_smart_door_sensor_2

Or…

1 Like

Fantastic. worked a treat. thanks mate