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

Added illumination



git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/branches/0.7@2636 b32b6428-25c9-4566-ad07-03861ab6144f
parent b9d665ca
Branches
No related tags found
No related merge requests found
......@@ -459,6 +459,8 @@ class Gateway(AqaraDev):
self.rgb = rgb
val = data.get('illumination',None)
if val:
# This value is in lm, we should map this to lux, but
# values doesn't seems to match
self.devices[2].attributes['illuminance'] = int(val)
def on_iam(self,data):
......
......@@ -70,7 +70,7 @@ class GW(object):
return dev
# Still not found ? => new device
else:
base_addr = tools.get_random_uuid()
base_addr = tools.get_random_base_uuid()
dev = self.add_device(sid,model,base_addr)
if dev:
logger.warning(f"Discover new Aqara Device {model} {sid}")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment