Skip to content
Snippets Groups Projects
Commit e869f358 authored by jkerdreu's avatar jkerdreu
Browse files

First leaking support need to check w/ Chris about schema


git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/trunk@2221 b32b6428-25c9-4566-ad07-03861ab6144f
parent 8e2a6bc3
Branches
No related tags found
No related merge requests found
......@@ -138,7 +138,15 @@ class Cube(AqaraDev):pass
class RelayController(AqaraDev):pass
class WaterLeak(AqaraDev):pass
class WaterLeak(AqaraDev):
# no device yet on this
def on_report(self,data):
status = data.get('status',None)
if status and status == 'leak':
logger.warning('Leaking..')
if status and status == 'no_leak':
logger.warning('No leaking')
class Gateway(AqaraDev):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment