Had these laying around…
Particle Photon ($20) and Ecolink Zwave Door Sensor ($30)
The 3V out from the particle can also power the door sensor so no batteries!
Photon code (cycles the door sensor for 1 second every 30 seconds):
int led1 = D0;
void setup() {
pinMode(led1, OUTPUT);
}
void loop() {
digitalWrite (led1, HIGH);
delay(30000);
digitalWrite (led1, LOW);
delay(1000);
}
HA Automation Code (text sent when there is no cycle “seen” by home assistant for 1 minute):
- id: '1590927848377'
alias: 0..0 Zwave Watchdog
description: ''
trigger:
- entity_id: binary_sensor.ecolink_door_window_sensor_sensor_6
for: 00:01:00
platform: state
to: 'off'
condition: []
action:
- data:
message: Zwave Watchdog Timed Out
title: Network Alarm
service: notify.ha2textjbn