From 9dde1e986c9e4a992c08072a15f4370d9de469ed Mon Sep 17 00:00:00 2001 From: DewGew Date: Mon, 29 Jan 2024 12:11:42 +0100 Subject: [PATCH] Add DoorLockInverted --- modules/domoticz.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/domoticz.py b/modules/domoticz.py index 2f3cdaa..172992b 100644 --- a/modules/domoticz.py +++ b/modules/domoticz.py @@ -168,7 +168,7 @@ def getAog(device, user_id=None): aog.customData['idx'] = device.get('idx') aog.customData['domain'] = domain aog.customData['protected'] = device.get('Protected') - aog.notificationSupportedByAgent = (True if domain in ['SmokeDetector', 'Doorbell', 'DoorLock'] else False) + aog.notificationSupportedByAgent = (True if domain in ['SmokeDetector', 'Doorbell', 'DoorLock', 'DoorLockInverted'] else False) if domain == 'Scene': aog.type = 'action.devices.types.SCENE' @@ -220,7 +220,7 @@ def getAog(device, user_id=None): aog.traits.append('action.devices.traits.OnOff') if domain == 'Dimmer': aog.traits.append('action.devices.traits.Brightness') - if domain == 'DoorLock': + if domain in ['DoorLock', 'DoorLockInverted']: aog.type = 'action.devices.types.LOCK' aog.traits.append('action.devices.traits.LockUnlock')