From 89d3863a8adddb4863a7a940cba96d47d29d0e1e Mon Sep 17 00:00:00 2001
From: Wojciech Zmuda <wojciech.zmuda@huawei.com>
Date: Tue, 13 Apr 2021 17:40:33 +0200
Subject: [PATCH] allscenarios-linux-blueprint-dashboard.conf: Add MACs for
 Smart Panel blueprint

Smart Panel blueprint sensor and switch devices MAC addrsses have to be:
 - configured on devices so they communicate over BLE from known addresses
   that do not collide,
 - configured in Home Assistant so it knows where to connect to.

Addresses can be overriden in local.conf of Linux build or in command line.

Signed-off-by: Wojciech Zmuda <wojciech.zmuda@huawei.com>
Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com>
---
 .../conf/distro/allscenarios-linux-blueprint-dashboard.conf   | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meta-ohos-blueprints/conf/distro/allscenarios-linux-blueprint-dashboard.conf b/meta-ohos-blueprints/conf/distro/allscenarios-linux-blueprint-dashboard.conf
index b7655384..1834bc51 100644
--- a/meta-ohos-blueprints/conf/distro/allscenarios-linux-blueprint-dashboard.conf
+++ b/meta-ohos-blueprints/conf/distro/allscenarios-linux-blueprint-dashboard.conf
@@ -33,3 +33,7 @@ EPIPHANY_SERVICE_ENABLED = "1"
 WESTON_INI_BACKGROUND_IMAGE = "/usr/share/backgrounds/ostc-logo-small-loading.png"
 WESTON_INI_BACKGROUND_COLOR = "0xffffffff"
 WESTON_INI_BACKGROUND_TYPE = "centered"
+
+# SmartHome IoT devices BLE interfaces MAC addresses
+SMART_HOME_SENSORS_MAC ??= "C0:BA:DD:06:F0:0D"
+SMART_HOME_SWITCH_MAC ??= "C0:BA:DD:06:F0:0E"
-- 
GitLab