From 660b6362481bf9b95acf50f7dc22cb1e16c783f4 Mon Sep 17 00:00:00 2001
From: jkerdreu <jkerdreu@b32b6428-25c9-4566-ad07-03861ab6144f>
Date: Tue, 30 Aug 2022 13:07:10 +0000
Subject: [PATCH] group_id isn't random anymore. (HASS support)

git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/branches/0.7@2972 b32b6428-25c9-4566-ad07-03861ab6144f
---
 devices/protocols/ESPHome/xaal/esphome/bindings.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/devices/protocols/ESPHome/xaal/esphome/bindings.py b/devices/protocols/ESPHome/xaal/esphome/bindings.py
index 2298a2bf..4b8a8a20 100644
--- a/devices/protocols/ESPHome/xaal/esphome/bindings.py
+++ b/devices/protocols/ESPHome/xaal/esphome/bindings.py
@@ -65,7 +65,7 @@ class ESPDevice:
     async def create_embedded(self):
         services = await self.client.list_entities_services()
         #pprint(services)
-        group_id = tools.get_random_uuid()
+        group_id = self.base_addr + 0xeeff
         for serv in services:
             for k in serv:
                 klass = find_device_class(k)
-- 
GitLab