Doorbell serial port trigger

The device doesn’t act as a binary switch but uses the notification class. That was some of the difficulty I originally had as the support wasn’t fully baked into the binding (but is now). You’ll want the item setup as Item type Switch, category Alarm (at least that’s how I have it).

Here’s the rule I’m using for mine:

import org.joda.time.*

var boolean doorbellRinging = false

rule "Doorbell rang"
when
	Item zwave_device_home_node14_notification_power_management changed to ON
then
	logInfo("Doorbell", "Doorbell ringing?  "+doorbellRinging)
	 
		var Timer waitTimer = createTimer(now.plusSeconds(15))[|
	        	postUpdate(zwave_device_home_node14_notification_power_management, OFF)
	        ]

		logInfo("Doorbell", "The doorbell rang")
		postUpdate(Sensor_Doorbell_Time, new DateTimeType())
		pushover("The doorbell rang")

	}
end