rpwong
(Russ)
November 30, 2021, 2:29am
3
Some locks don’t update the door_lock channel. I don’t know if that’s the case with this one, but you may need to use alarm_raw channel to update the lock status.
Yep, that’s correct. Here’s the original solution, from a thread that started with a Yale lock.
In OH3, you can apply the JSONPATH transformation directly to the channel, so that it will only send the information you want to the item.
[image]
I’ve isolated the event and use a simple case statement in a rule to update the lock status.
switch (Door_Lock_Alarm_Raw.state.toString)
{
case "1", case "3", case "5" :
{
Door_Lock.postUpdate(ON)
// logInfo("Rules", "Lock updated to ON (locked…