Skip to content

Commit

Permalink
Merge pull request #87 from DewGew/camerastream
Browse files Browse the repository at this point in the history
Fix camerastream
  • Loading branch information
DewGew authored Feb 2, 2024
2 parents d9b3aec + a5e7722 commit 6ba9cb4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion modules/domoticz.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def __init__(self):

def getDomain(device):

if device["Type"] in ['Color Switch', 'Group', 'Scene', 'Temp', 'Thermostat', 'Setpoint', 'Temp + Humidity', 'Temp + Humidity + Baro']:
if device["Type"] in ['Color Switch', 'Group', 'Scene', 'Temp', 'Thermostat', 'Setpoint', 'Temp + Humidity', 'Temp + Humidity + Baro', 'Security']:
devs = device["Type"].replace(" ", "")
devs = devs.replace("+", "")
return devs
Expand Down
7 changes: 4 additions & 3 deletions modules/intents.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def execute(self, user_id, commands, requestId):
states['online'] = True
action_result = {'ids': [device['id']], 'status': 'SUCCESS', 'states': states}
response['commands'].append(action_result)
print(response)

except SmartHomeErrorNoChallenge as err:
action_failed = {'ids': [device['id']], 'status': 'ERROR', 'errorCode': err.code,
'challengeNeeded': {'type': err.desc}}
Expand All @@ -124,8 +124,9 @@ def execute(self, user_id, commands, requestId):


if repstate.report_state_enabled():
data = {'states': {device['id']: action_result['states']}}
self.statereport(requestId, user_id, data)
if 'Doorbell' not in device['id'] and 'Camera' not in device['id']:
data = {'states': {device['id']: action_result['states']}}
self.statereport(requestId, user_id, data)

# if "followUpToken" in params and 'DoorLock' in custom_data['domain']:
# ndata = {'states':{},'notifications':{}}
Expand Down

0 comments on commit 6ba9cb4

Please sign in to comment.