Skip to content

Commit

Permalink
Add DoorLockInverted
Browse files Browse the repository at this point in the history
DewGew authored Jan 29, 2024

Verified

This commit was signed with the committer’s verified signature.
1 parent 8504252 commit 9dde1e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/domoticz.py
Original file line number Diff line number Diff line change
@@ -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')

0 comments on commit 9dde1e9

Please sign in to comment.