From 409ee3f42274489296df9a4b2f4d018493ad20c8 Mon Sep 17 00:00:00 2001 From: tiancheng91 Date: Sun, 29 Jun 2025 13:58:36 +0800 Subject: [PATCH] fix: format spec json --- .../xiaomi_home/miot/specs/spec_add.json | 52 +++++++++---------- .../xiaomi_home/miot/specs/spec_filter.yaml | 6 +-- 2 files changed, 29 insertions(+), 29 deletions(-) diff --git a/custom_components/xiaomi_home/miot/specs/spec_add.json b/custom_components/xiaomi_home/miot/specs/spec_add.json index 5d69ea0..27ef37a 100644 --- a/custom_components/xiaomi_home/miot/specs/spec_add.json +++ b/custom_components/xiaomi_home/miot/specs/spec_add.json @@ -44,6 +44,32 @@ ] } ], + "urn:miot-spec-v2:device:fan:0000A005:dmaker-p5c:1": [ + { + "iid": 8, + "type": "urn:miot-spec-v2:service:fan:00007802:dmaker-p5c:1", + "description": "Fan", + "properties": [ + { + "iid": 1, + "type": "urn:miot-spec-v2:property:fan-level:00000001:dmaker-p5c:1", + "description": "Fan Level", + "format": "uint8", + "access": [ + "read", + "write", + "notify" + ], + "value-range": [ + 1, + 100, + 1 + ], + "gatt-access": [] + } + ] + } + ], "urn:miot-spec-v2:device:thermostat:0000A031:tofan-wk01:1:0000C822": [ { "iid": 2, @@ -242,31 +268,5 @@ } ] } - ], - "urn:miot-spec-v2:device:fan:0000A005:dmaker-p5c:1": [ - { - "iid": 8, - "type": "urn:miot-spec-v2:service:fan:00007802:dmaker-p5c:1", - "description": "Fan", - "properties": [ - { - "iid": 1, - "type": "urn:miot-spec-v2:property:fan-level:00000001:dmaker-p5c:1", - "description": "Fan Level", - "format": "uint8", - "access": [ - "read", - "write", - "notify" - ], - "value-range": [ - 1, - 100, - 1 - ], - "gatt-access": [] - } - ] - } ] } \ No newline at end of file diff --git a/custom_components/xiaomi_home/miot/specs/spec_filter.yaml b/custom_components/xiaomi_home/miot/specs/spec_filter.yaml index 340d4ff..e23cee9 100644 --- a/custom_components/xiaomi_home/miot/specs/spec_filter.yaml +++ b/custom_components/xiaomi_home/miot/specs/spec_filter.yaml @@ -18,6 +18,9 @@ urn:miot-spec-v2:device:curtain:0000A00C:lumi-hmcn01: - '4' - '7' - '8' +urn:miot-spec-v2:device:fan:0000A005:dmaker-p5c:1: + services: + - '8' urn:miot-spec-v2:device:gateway:0000A019:xiaomi-hub1: events: - '2.1' @@ -51,6 +54,3 @@ urn:miot-spec-v2:device:thermostat:0000A031:tofan-wk01: services: - '2' - '4' -urn:miot-spec-v2:device:fan:0000A005:dmaker-p5c:1: - services: - - '8' \ No newline at end of file