Skip to content

Commit

Permalink
update bridge zigbee_connectivity resource
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusmotea committed Mar 6, 2023
1 parent 958226f commit c4285fc
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions BridgeEmulator/flaskUI/v2restapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,20 @@ def v2HomeKit():


def v2BridgeZigBee():
result = {}
result["id"] = str(uuid.uuid5(
uuid.NAMESPACE_URL, bridgeConfig["config"]["bridgeid"] + 'zigbee_connectivity'))
result["id_v1"] = ""
result["status"] = "connected"
result["type"] = "zigbee_connectivity"
return result
return {"id": str(uuid.uuid5(
uuid.NAMESPACE_URL, bridgeConfig["config"]["bridgeid"] + 'zigbee_connectivity')),
"owner": {
"rid": str(uuid.uuid5(uuid.NAMESPACE_URL, bridgeConfig["config"]["bridgeid"] + 'device')),
"rtype": "device"
},
"status": "connected",
"mac_address": bridgeConfig["config"]["mac"][:8] + ":01:01:" + bridgeConfig["config"]["mac"][9:],
"channel": {
"value": "channel_25",
"status": "set"
},
"type": "zigbee_connectivity"
}


def v2GeofenceClient():
Expand Down

0 comments on commit c4285fc

Please sign in to comment.