ソースを参照

initial commit for zigbee2mqtt ansible deployment

master
Dirk Alders 1年前
コミット
3c3b6d6fd9
6個のファイルの変更316行の追加0行の削除
  1. 4
    0
      .gitignore
  2. 30
    0
      bin/c2r.py
  3. 65
    0
      config/coordinator_backup.json
  4. 16
    0
      config/database.db
  5. 131
    0
      config/state.json
  6. 70
    0
      config_example/configuration.yaml

+ 4
- 0
.gitignore ファイルの表示

@@ -1,3 +1,7 @@
1
+# Zigbee2MQTT repo rule
2
+config/configuration.yaml
3
+config/log
4
+
1 5
 # ---> Linux
2 6
 *~
3 7
 

+ 30
- 0
bin/c2r.py ファイルの表示

@@ -0,0 +1,30 @@
1
+#!/bin/python3
2
+#
3
+import re
4
+import sys
5
+
6
+try:
7
+    src_file = sys.argv[1]
8
+    dst_file = sys.argv[2]
9
+except IndexError:
10
+    print(sys.argv[0], "<src> <dst>")
11
+    sys.exit(17)
12
+
13
+try:
14
+    with open(src_file, 'r') as fh:
15
+        s = fh.read()
16
+except (PermissionError, FileNotFoundError) as e:
17
+    print("Unable to open", '"' + src_file + '"')
18
+    sys.exit(18)
19
+
20
+n = re.sub('^.*server: .*', '  server: mqtt://<mqtt_smarthome_hostname>', s, flags=re.MULTILINE)
21
+n = re.sub('^.*user: .*', '  user: <mqtt_smarthome_username>', n, flags=re.MULTILINE)
22
+n = re.sub('^.*password: .*', '  password: <mqtt_smarthome_password>', n, flags=re.MULTILINE)
23
+n = re.sub('^.*auth_token: .*', '  auth_token: <zigbee_auth_token>', n, flags=re.MULTILINE)
24
+
25
+try:
26
+    with open(dst_file, 'w') as fh:
27
+        fh.write(n)
28
+except PermissionError:
29
+    print("Unable to write", '"' + dst_file + '"')
30
+    sys.exit(19)

+ 65
- 0
config/coordinator_backup.json ファイルの表示

@@ -0,0 +1,65 @@
1
+{
2
+  "metadata": {
3
+    "format": "zigpy/open-coordinator-backup",
4
+    "version": 1,
5
+    "source": "zigbee-herdsman@0.14.76",
6
+    "internal": {
7
+      "date": "2023-10-07T17:31:11.764Z",
8
+      "znpVersion": 0
9
+    }
10
+  },
11
+  "stack_specific": {
12
+    "zstack": {}
13
+  },
14
+  "coordinator_ieee": "00124b001cdd065c",
15
+  "pan_id": "1a62",
16
+  "extended_pan_id": "00124b001cdd065c",
17
+  "nwk_update_id": 0,
18
+  "security_level": 5,
19
+  "channel": 11,
20
+  "channel_mask": [
21
+    11
22
+  ],
23
+  "network_key": {
24
+    "key": "7b4baa243f424153d6737663bb006af6",
25
+    "sequence_number": 0,
26
+    "frame_counter": 0
27
+  },
28
+  "devices": [
29
+    {
30
+      "nwk_address": "12d0",
31
+      "ieee_address": "90fd9ffffe751d80",
32
+      "is_child": false
33
+    },
34
+    {
35
+      "nwk_address": "d6b8",
36
+      "ieee_address": "cc86ecfffeb4d5bb",
37
+      "is_child": false
38
+    },
39
+    {
40
+      "nwk_address": "e056",
41
+      "ieee_address": "000b57fffebadb72",
42
+      "is_child": false
43
+    },
44
+    {
45
+      "nwk_address": "9dff",
46
+      "ieee_address": "000b57fffea6e32a",
47
+      "is_child": false
48
+    },
49
+    {
50
+      "nwk_address": "4169",
51
+      "ieee_address": "cc86ecfffea1f4b7",
52
+      "is_child": true
53
+    },
54
+    {
55
+      "nwk_address": "b99b",
56
+      "ieee_address": "84ba20fffe82ed95",
57
+      "is_child": false
58
+    },
59
+    {
60
+      "nwk_address": "a199",
61
+      "ieee_address": "003c84fffec4ffc6",
62
+      "is_child": false
63
+    }
64
+  ]
65
+}

+ 16
- 0
config/database.db ファイルの表示

@@ -0,0 +1,16 @@
1
+{"id":1,"type":"Coordinator","ieeeAddr":"0x00124b001cdd065c","nwkAddr":0,"manufId":0,"epList":[1,2,3,4,5,6,8,10,11,12,13,47,110,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":5,"inClusterList":[],"outClusterList":[],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}},"2":{"profId":257,"epId":2,"devId":5,"inClusterList":[],"outClusterList":[],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}},"3":{"profId":260,"epId":3,"devId":5,"inClusterList":[],"outClusterList":[],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}},"4":{"profId":263,"epId":4,"devId":5,"inClusterList":[],"outClusterList":[],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}},"5":{"profId":264,"epId":5,"devId":5,"inClusterList":[],"outClusterList":[],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}},"6":{"profId":265,"epId":6,"devId":5,"inClusterList":[],"outClusterList":[],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}},"8":{"profId":260,"epId":8,"devId":5,"inClusterList":[],"outClusterList":[],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}},"10":{"profId":260,"epId":10,"devId":5,"inClusterList":[],"outClusterList":[],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}},"11":{"profId":260,"epId":11,"devId":1024,"inClusterList":[1281,10],"outClusterList":[1280,1282],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}},"12":{"profId":49246,"epId":12,"devId":5,"inClusterList":[],"outClusterList":[],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}},"13":{"profId":260,"epId":13,"devId":5,"inClusterList":[25],"outClusterList":[],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}},"47":{"profId":260,"epId":47,"devId":5,"inClusterList":[],"outClusterList":[],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}},"110":{"profId":260,"epId":110,"devId":5,"inClusterList":[],"outClusterList":[],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}},"242":{"profId":41440,"epId":242,"devId":5,"inClusterList":[],"outClusterList":[],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"interviewCompleted":true,"meta":{},"lastSeen":null,"defaultSendRequestWhen":"immediate"}
2
+{"id":2,"type":"Router","ieeeAddr":"0x90fd9ffffe751d80","nwkAddr":4816,"manufId":4476,"manufName":"IKEA of Sweden","powerSource":"Mains (single phase)","modelId":"FLOALT panel WS 60x60","epList":[1],"endpoints":{"1":{"profId":49246,"epId":1,"devId":544,"inClusterList":[0,3,4,5,6,8,768,2821,4096],"outClusterList":[5,25,32,4096],"clusters":{"genBasic":{"attributes":{"modelId":"FLOALT panel WS 60x60","manufacturerName":"IKEA of Sweden","powerSource":1,"zclVersion":1,"appVersion":18,"stackVersion":87,"hwVersion":1,"dateCode":"20200107","swBuildId":"1.2.224"}},"lightingColorCtrl":{"attributes":{"colorCapabilities":16,"colorTempPhysicalMin":250,"colorTempPhysicalMax":454,"colorMode":2,"colorTemperature":393}},"genOnOff":{"attributes":{"onOff":1}},"genLevelCtrl":{"attributes":{"currentLevel":26}}},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":18,"stackVersion":87,"hwVersion":1,"dateCode":"20200107","swBuildId":"1.2.224","zclVersion":1,"interviewCompleted":true,"meta":{"configured":2},"lastSeen":1696738632090,"defaultSendRequestWhen":"immediate"}
3
+{"id":4,"type":"Router","ieeeAddr":"0x60a423fffe1397b7","nwkAddr":40218,"manufId":4098,"manufName":"_TZ3000_kdi2o9m6","powerSource":"Mains (single phase)","modelId":"TS011F","epList":[1,11,242],"endpoints":{"1":{"epId":1,"inClusterList":[],"outClusterList":[],"clusters":{"genBasic":{"attributes":{"modelId":"TS011F","manufacturerName":"_TZ3000_kdi2o9m6"}},"genOnOff":{"attributes":{"onOff":0}}},"binds":[],"configuredReportings":[],"meta":{}},"11":{"profId":260,"epId":11,"devId":266,"inClusterList":[0,3,4,5,6],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"powerSource":1,"zclVersion":3,"appVersion":66,"stackVersion":0,"hwVersion":1,"dateCode":""}},"genOnOff":{"attributes":{"onOff":0}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x00124b001cdd1197","endpointID":1}],"configuredReportings":[{"cluster":6,"attrId":0,"minRepIntval":0,"maxRepIntval":3600,"repChange":0}],"meta":{}},"242":{"profId":41440,"epId":242,"devId":97,"inClusterList":[],"outClusterList":[33],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":66,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"meta":{"configured":1},"lastSeen":1696779733370,"defaultSendRequestWhen":"immediate"}
4
+{"id":5,"type":"EndDevice","ieeeAddr":"0x000b57fffea6e32a","nwkAddr":40447,"manufId":4476,"manufName":"IKEA of Sweden","powerSource":"Battery","modelId":"TRADFRI remote control","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":2064,"inClusterList":[0,1,3,9,2821,4096],"outClusterList":[3,4,5,6,8,25,4096],"clusters":{"genBasic":{"attributes":{"modelId":"TRADFRI remote control","manufacturerName":"IKEA of Sweden","powerSource":3,"zclVersion":1,"appVersion":17,"stackVersion":87,"hwVersion":1,"dateCode":"20161011","swBuildId":"1.1.1.1-5.7.2.0"}},"genPowerCfg":{"attributes":{"batteryPercentageRemaining":74}}},"binds":[{"cluster":6,"groupID":901,"type":"group"},{"cluster":1,"type":"endpoint","deviceIeeeAddress":"0x00124b001cdd065c","endpointID":1}],"configuredReportings":[{"cluster":1,"attrId":33,"minRepIntval":3600,"maxRepIntval":62000,"repChange":0}],"meta":{}}},"appVersion":17,"stackVersion":87,"hwVersion":1,"dateCode":"20161011","swBuildId":"1.1.1.1-5.7.2.0","zclVersion":1,"interviewCompleted":true,"meta":{"configured":2040954255},"lastSeen":1696781919714,"defaultSendRequestWhen":"immediate"}
5
+{"id":6,"type":"Group","groupID":901,"members":[],"meta":{}}
6
+{"id":7,"type":"Router","ieeeAddr":"0x003c84fffe42032a","nwkAddr":20430,"manufId":4476,"manufName":"IKEA of Sweden","powerSource":"Mains (single phase)","modelId":"TRADFRI bulb E14 WS globe 470lm","epList":[1,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":268,"inClusterList":[0,3,4,5,6,8,768,4096,64599],"outClusterList":[25],"clusters":{"genBasic":{"attributes":{"modelId":"TRADFRI bulb E14 WS globe 470lm","manufacturerName":"IKEA of Sweden","powerSource":1,"zclVersion":8,"appVersion":17,"stackVersion":106,"hwVersion":1,"dateCode":"20211201","swBuildId":"1.1.003"}},"lightingColorCtrl":{"attributes":{"colorCapabilities":16,"colorTempPhysicalMin":250,"colorTempPhysicalMax":454}}},"binds":[],"configuredReportings":[],"meta":{}},"242":{"profId":41440,"epId":242,"devId":97,"inClusterList":[33],"outClusterList":[33],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":17,"stackVersion":106,"hwVersion":1,"dateCode":"20211201","swBuildId":"1.1.003","zclVersion":8,"interviewCompleted":true,"meta":{"configured":2},"lastSeen":1696781707556,"defaultSendRequestWhen":"immediate"}
7
+{"id":8,"type":"Router","ieeeAddr":"0x003c84fffe30130a","nwkAddr":33598,"manufId":4476,"manufName":"IKEA of Sweden","powerSource":"Mains (single phase)","modelId":"TRADFRI bulb E14 WS globe 470lm","epList":[1,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":268,"inClusterList":[0,3,4,5,6,8,768,4096,64599],"outClusterList":[25],"clusters":{"genBasic":{"attributes":{"modelId":"TRADFRI bulb E14 WS globe 470lm","manufacturerName":"IKEA of Sweden","powerSource":1,"zclVersion":8,"appVersion":17,"stackVersion":106,"hwVersion":1,"dateCode":"20211201","swBuildId":"1.1.003"}},"lightingColorCtrl":{"attributes":{"colorCapabilities":16,"colorTempPhysicalMin":250,"colorTempPhysicalMax":454}},"genOnOff":{"attributes":{"onOff":1}}},"binds":[],"configuredReportings":[],"meta":{}},"242":{"profId":41440,"epId":242,"devId":97,"inClusterList":[33],"outClusterList":[33],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":17,"stackVersion":106,"hwVersion":1,"dateCode":"20211201","swBuildId":"1.1.003","zclVersion":8,"interviewCompleted":true,"meta":{"configured":2},"lastSeen":1696781707318,"defaultSendRequestWhen":"immediate"}
8
+{"id":9,"type":"Router","ieeeAddr":"0x003c84fffee6b1ea","nwkAddr":25042,"manufId":4476,"manufName":"IKEA of Sweden","powerSource":"Mains (single phase)","modelId":"TRADFRI bulb E14 WS globe 470lm","epList":[1,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":268,"inClusterList":[0,3,4,5,6,8,768,4096,64599],"outClusterList":[25],"clusters":{"genBasic":{"attributes":{"modelId":"TRADFRI bulb E14 WS globe 470lm","manufacturerName":"IKEA of Sweden","powerSource":1,"zclVersion":8,"appVersion":17,"stackVersion":106,"hwVersion":1,"dateCode":"20211201","swBuildId":"1.1.003"}},"lightingColorCtrl":{"attributes":{"colorCapabilities":16,"colorTempPhysicalMin":250,"colorTempPhysicalMax":454}},"genOnOff":{"attributes":{"onOff":1}}},"binds":[],"configuredReportings":[],"meta":{}},"242":{"profId":41440,"epId":242,"devId":97,"inClusterList":[33],"outClusterList":[33],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":17,"stackVersion":106,"hwVersion":1,"dateCode":"20211201","swBuildId":"1.1.003","zclVersion":8,"interviewCompleted":true,"meta":{"configured":2},"lastSeen":1696781707460,"defaultSendRequestWhen":"immediate"}
9
+{"id":10,"type":"Router","ieeeAddr":"0x003c84fffe80de22","nwkAddr":59487,"manufId":4476,"manufName":"IKEA of Sweden","powerSource":"Mains (single phase)","modelId":"TRADFRI bulb E14 WS globe 470lm","epList":[1,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":268,"inClusterList":[0,3,4,5,6,8,768,4096,64599],"outClusterList":[25],"clusters":{"genBasic":{"attributes":{"modelId":"TRADFRI bulb E14 WS globe 470lm","manufacturerName":"IKEA of Sweden","powerSource":1,"zclVersion":8,"appVersion":17,"stackVersion":106,"hwVersion":1,"dateCode":"20211201","swBuildId":"1.1.003"}},"lightingColorCtrl":{"attributes":{"colorCapabilities":16,"colorTempPhysicalMin":250,"colorTempPhysicalMax":454}},"genOnOff":{"attributes":{"onOff":1}}},"binds":[],"configuredReportings":[],"meta":{}},"242":{"profId":41440,"epId":242,"devId":97,"inClusterList":[33],"outClusterList":[33],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":17,"stackVersion":106,"hwVersion":1,"dateCode":"20211201","swBuildId":"1.1.003","zclVersion":8,"interviewCompleted":true,"meta":{"configured":2},"lastSeen":1696781707353,"defaultSendRequestWhen":"immediate"}
10
+{"id":11,"type":"Router","ieeeAddr":"0x003c84fffee6aeb8","nwkAddr":5905,"manufId":4476,"manufName":"IKEA of Sweden","powerSource":"Mains (single phase)","modelId":"TRADFRI bulb E14 WS globe 470lm","epList":[1,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":268,"inClusterList":[0,3,4,5,6,8,768,4096,64599],"outClusterList":[25],"clusters":{"genBasic":{"attributes":{"modelId":"TRADFRI bulb E14 WS globe 470lm","manufacturerName":"IKEA of Sweden","powerSource":1,"zclVersion":8,"appVersion":17,"stackVersion":106,"hwVersion":1,"dateCode":"20211201","swBuildId":"1.1.003"}},"lightingColorCtrl":{"attributes":{"colorCapabilities":16,"colorTempPhysicalMin":250,"colorTempPhysicalMax":454,"colorMode":2,"colorTemperature":454}},"genOnOff":{"attributes":{"onOff":0}},"genLevelCtrl":{"attributes":{"currentLevel":89}}},"binds":[],"configuredReportings":[],"meta":{}},"242":{"profId":41440,"epId":242,"devId":97,"inClusterList":[33],"outClusterList":[33],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":17,"stackVersion":106,"hwVersion":1,"dateCode":"20211201","swBuildId":"1.1.003","zclVersion":8,"interviewCompleted":true,"meta":{"configured":2},"lastSeen":1696781707534,"defaultSendRequestWhen":"immediate"}
11
+{"id":12,"type":"Router","ieeeAddr":"0x84b4dbfffef5c819","nwkAddr":1137,"manufId":4476,"manufName":"IKEA of Sweden","powerSource":"Mains (single phase)","modelId":"TRADFRI bulb E14 WS globe 470lm","epList":[1,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":268,"inClusterList":[0,3,4,5,6,8,768,4096,64599],"outClusterList":[25],"clusters":{"genBasic":{"attributes":{"modelId":"TRADFRI bulb E14 WS globe 470lm","manufacturerName":"IKEA of Sweden","powerSource":1,"zclVersion":8,"appVersion":17,"stackVersion":106,"hwVersion":1,"dateCode":"20211201","swBuildId":"1.1.003"}},"lightingColorCtrl":{"attributes":{"colorCapabilities":16,"colorTempPhysicalMin":250,"colorTempPhysicalMax":454}},"genOnOff":{"attributes":{"onOff":1}}},"binds":[],"configuredReportings":[],"meta":{}},"242":{"profId":41440,"epId":242,"devId":97,"inClusterList":[33],"outClusterList":[33],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":17,"stackVersion":106,"hwVersion":1,"dateCode":"20211201","swBuildId":"1.1.003","zclVersion":8,"interviewCompleted":true,"meta":{"configured":2},"lastSeen":1696781707430,"defaultSendRequestWhen":"immediate"}
12
+{"id":13,"type":"Router","ieeeAddr":"0x000b57fffebadb72","nwkAddr":57430,"manufId":4476,"manufName":"IKEA of Sweden","powerSource":"Mains (single phase)","modelId":"TRADFRI bulb GU10 W 400lm","epList":[1,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":257,"inClusterList":[0,3,4,5,6,8,4096,64636],"outClusterList":[5,25,32,4096],"clusters":{"genOnOff":{"attributes":{"onOff":1}},"genLevelCtrl":{"attributes":{"currentLevel":160}}},"binds":[],"configuredReportings":[],"meta":{}},"242":{"profId":41440,"epId":242,"devId":97,"inClusterList":[],"outClusterList":[33],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":33,"stackVersion":98,"hwVersion":1,"dateCode":"20211025","swBuildId":"2.3.086","zclVersion":3,"interviewCompleted":true,"meta":{"configured":2},"lastSeen":1696704177982,"defaultSendRequestWhen":"immediate"}
13
+{"id":15,"type":"EndDevice","ieeeAddr":"0x003c84fffec4ffc6","nwkAddr":41369,"manufId":4098,"manufName":"_TZE200_2cs6g9i7","powerSource":"Battery","modelId":"TS0601","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":81,"inClusterList":[0,4,5,61184],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"65503":"x�|,\u0011","65506":31,"65508":0,"modelId":"TS0601","manufacturerName":"_TZE200_2cs6g9i7","powerSource":3,"zclVersion":3,"appVersion":85,"stackVersion":0,"hwVersion":1,"dateCode":""}}},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":85,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"meta":{},"lastSeen":1696784497443,"defaultSendRequestWhen":"immediate"}
14
+{"id":16,"type":"Router","ieeeAddr":"0x000b57fffed9e406","nwkAddr":17343,"manufId":4476,"manufName":"IKEA of Sweden","powerSource":"Mains (single phase)","modelId":"FLOALT panel WS 30x90","epList":[1],"endpoints":{"1":{"profId":49246,"epId":1,"devId":544,"inClusterList":[0,3,4,5,6,8,768,2821,4096],"outClusterList":[5,25,32,4096],"clusters":{"genBasic":{"attributes":{"modelId":"FLOALT panel WS 30x90","manufacturerName":"IKEA of Sweden","powerSource":1,"zclVersion":1,"appVersion":18,"stackVersion":87,"hwVersion":1,"dateCode":"20200107","swBuildId":"1.2.224"}},"lightingColorCtrl":{"attributes":{"colorCapabilities":16,"colorTempPhysicalMin":250,"colorTempPhysicalMax":454,"colorMode":2,"colorTemperature":332}},"genOnOff":{"attributes":{"onOff":1}},"genLevelCtrl":{"attributes":{"currentLevel":79}}},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":18,"stackVersion":87,"hwVersion":1,"dateCode":"20200107","swBuildId":"1.2.224","zclVersion":1,"interviewCompleted":true,"meta":{"configured":2},"lastSeen":1696756685961,"defaultSendRequestWhen":"immediate"}
15
+{"id":18,"type":"Router","ieeeAddr":"0x84fd27fffedc7e4d","nwkAddr":21895,"manufId":4098,"manufName":"_TZ3000_kdi2o9m6","powerSource":"Mains (single phase)","modelId":"TS011F","epList":[1,11,242],"endpoints":{"1":{"epId":1,"inClusterList":[],"outClusterList":[],"clusters":{"genBasic":{"attributes":{"modelId":"TS011F","manufacturerName":"_TZ3000_kdi2o9m6"}}},"binds":[],"configuredReportings":[],"meta":{}},"11":{"profId":260,"epId":11,"devId":266,"inClusterList":[0,3,4,5,6],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"powerSource":1,"zclVersion":3,"appVersion":66,"stackVersion":0,"hwVersion":1,"dateCode":""}},"genOnOff":{"attributes":{"onOff":0}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x00124b001cdd065c","endpointID":1}],"configuredReportings":[{"cluster":6,"attrId":0,"minRepIntval":0,"maxRepIntval":3600,"repChange":0}],"meta":{}},"242":{"profId":41440,"epId":242,"devId":97,"inClusterList":[],"outClusterList":[33],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":66,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"meta":{"configured":1},"lastSeen":1696779722850,"defaultSendRequestWhen":"immediate"}
16
+{"id":19,"type":"EndDevice","ieeeAddr":"0xcc86ecfffeb4d5bb","nwkAddr":54968,"manufId":4619,"manufName":"_TZ1800_fcdjzz3s","powerSource":"Battery","modelId":"TY0202","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":1026,"inClusterList":[0,1,3,1280,2821],"outClusterList":[25],"clusters":{"genBasic":{"attributes":{"modelId":"TY0202","manufacturerName":"_TZ1800_fcdjzz3s","powerSource":3,"zclVersion":1,"appVersion":67,"stackVersion":2,"hwVersion":1,"dateCode":"2021.1.5"}},"ssIasZone":{"attributes":{"iasCieAddr":"0x00124b001cdd065c","zoneState":1}},"genPowerCfg":{"attributes":{"batteryVoltage":29,"batteryPercentageRemaining":196}}},"binds":[{"cluster":1,"type":"endpoint","deviceIeeeAddress":"0x00124b001cdd065c","endpointID":1}],"configuredReportings":[{"cluster":1,"attrId":32,"minRepIntval":3600,"maxRepIntval":62000,"repChange":0},{"cluster":1,"attrId":33,"minRepIntval":3600,"maxRepIntval":62000,"repChange":0}],"meta":{}}},"appVersion":67,"stackVersion":2,"hwVersion":1,"dateCode":"2021.1.5","zclVersion":1,"interviewCompleted":true,"meta":{"configured":172811876},"lastSeen":1696780234100,"defaultSendRequestWhen":"immediate"}

+ 131
- 0
config/state.json ファイルの表示

@@ -0,0 +1,131 @@
1
+{
2
+    "0x90fd9ffffe751d80": {
3
+        "color_mode": "color_temp",
4
+        "state": "ON",
5
+        "linkquality": 99,
6
+        "update": {
7
+            "state": "idle"
8
+        },
9
+        "color_temp": 393,
10
+        "brightness": 26
11
+    },
12
+    "0x60a423fffe1397b7": {
13
+        "state": "OFF",
14
+        "linkquality": 55
15
+    },
16
+    "0x000b57fffea6e32a": {
17
+        "battery": 74,
18
+        "update": {
19
+            "state": "available"
20
+        },
21
+        "linkquality": 65
22
+    },
23
+    "0x003c84fffe30130a": {
24
+        "color_mode": "color_temp",
25
+        "state": "ON",
26
+        "update": {
27
+            "state": "idle"
28
+        },
29
+        "linkquality": 55,
30
+        "brightness": 24,
31
+        "color_temp": 413,
32
+        "color_temp_startup": 65535
33
+    },
34
+    "0x003c84fffee6b1ea": {
35
+        "color_mode": "color_temp",
36
+        "update": {
37
+            "state": "idle"
38
+        },
39
+        "state": "ON",
40
+        "linkquality": 68,
41
+        "brightness": 24,
42
+        "color_temp": 413,
43
+        "color_temp_startup": 65535
44
+    },
45
+    "0x003c84fffe80de22": {
46
+        "color_mode": "color_temp",
47
+        "update": {
48
+            "state": "idle"
49
+        },
50
+        "state": "ON",
51
+        "linkquality": 76,
52
+        "brightness": 24,
53
+        "color_temp": 413,
54
+        "color_temp_startup": 65535
55
+    },
56
+    "0x003c84fffee6aeb8": {
57
+        "color_mode": "color_temp",
58
+        "update": {
59
+            "state": "idle"
60
+        },
61
+        "state": "ON",
62
+        "brightness": 24,
63
+        "color_temp": 413,
64
+        "linkquality": 39,
65
+        "color_temp_startup": 65535
66
+    },
67
+    "0x84b4dbfffef5c819": {
68
+        "color_mode": "color_temp",
69
+        "state": "ON",
70
+        "update": {
71
+            "state": "idle"
72
+        },
73
+        "linkquality": 57,
74
+        "brightness": 24,
75
+        "color_temp": 413,
76
+        "color_temp_startup": 65535
77
+    },
78
+    "0x003c84fffe42032a": {
79
+        "color_mode": "color_temp",
80
+        "state": "ON",
81
+        "update": {
82
+            "state": "idle"
83
+        },
84
+        "linkquality": 52,
85
+        "brightness": 24,
86
+        "color_temp": 413,
87
+        "color_temp_startup": 65535
88
+    },
89
+    "0x003c84fffec4ffc6": {
90
+        "preset": "manual",
91
+        "away_mode": "OFF",
92
+        "system_mode": "heat",
93
+        "current_heating_setpoint": 21.5,
94
+        "window_detection": "ON",
95
+        "valve_detection": "ON",
96
+        "child_lock": "UNLOCK",
97
+        "local_temperature": 22.2,
98
+        "battery": 5,
99
+        "linkquality": 60
100
+    },
101
+    "0x000b57fffed9e406": {
102
+        "color_mode": "color_temp",
103
+        "brightness": 79,
104
+        "state": "ON",
105
+        "color_temp": 332,
106
+        "update": {
107
+            "state": "idle"
108
+        },
109
+        "linkquality": 57
110
+    },
111
+    "0x84fd27fffedc7e4d": {
112
+        "state": "OFF",
113
+        "linkquality": 60
114
+    },
115
+    "0xcc86ecfffeb4d5bb": {
116
+        "voltage": 2900,
117
+        "battery": 98,
118
+        "occupancy": false,
119
+        "tamper": false,
120
+        "battery_low": false,
121
+        "linkquality": 55
122
+    },
123
+    "0x000b57fffebadb72": {
124
+        "state": "OFF",
125
+        "update": {
126
+            "state": "idle"
127
+        },
128
+        "brightness": 160,
129
+        "linkquality": 28
130
+    }
131
+}

+ 70
- 0
config_example/configuration.yaml ファイルの表示

@@ -0,0 +1,70 @@
1
+homeassistant: false
2
+permit_join: false
3
+mqtt:
4
+  base_topic: zigbee/ffe
5
+  server: mqtt://<mqtt_smarthome_hostname>
6
+  user: <mqtt_smarthome_username>
7
+  password: <mqtt_smarthome_password>
8
+serial:
9
+  port: /dev/ttyACM0
10
+advanced:
11
+  network_key:
12
+    - 123
13
+    - 75
14
+    - 170
15
+    - 36
16
+    - 63
17
+    - 66
18
+    - 65
19
+    - 83
20
+    - 214
21
+    - 115
22
+    - 118
23
+    - 99
24
+    - 187
25
+    - 0
26
+    - 106
27
+    - 246
28
+  ikea_ota_use_test_url: true
29
+  legacy_api: false
30
+  log_level: debug
31
+  homeassistant_legacy_entity_attributes: false
32
+  legacy_availability_payload: false
33
+frontend:
34
+  port: 8038
35
+  host: 0.0.0.0
36
+  auth_token: <zigbee_auth_token>
37
+  url: http://localhost
38
+device_options:
39
+  legacy: false
40
+devices:
41
+  '0x003c84fffec4ffc6':
42
+    friendly_name: sleep/heating_valve
43
+  '0x000b57fffebadb72':
44
+    friendly_name: sleep/bed_light_di
45
+  '0x90fd9ffffe751d80':
46
+    friendly_name: livingroom/main_light
47
+  '0x60a423fffe1397b7':
48
+    friendly_name: diningroom/powerplug_floorlamp
49
+  '0x000b57fffea6e32a':
50
+    friendly_name: sleep/input_device
51
+  '0x003c84fffe42032a':
52
+    friendly_name: livingroom/floorlamp_6
53
+  '0x003c84fffe30130a':
54
+    friendly_name: livingroom/floorlamp_1
55
+  '0x003c84fffee6b1ea':
56
+    friendly_name: livingroom/floorlamp_4
57
+  '0x003c84fffe80de22':
58
+    friendly_name: livingroom/floorlamp_2
59
+  '0x003c84fffee6aeb8':
60
+    friendly_name: livingroom/floorlamp_5
61
+  '0x84b4dbfffef5c819':
62
+    friendly_name: livingroom/floorlamp_3
63
+  '0x000b57fffed9e406':
64
+    friendly_name: sleep/main_light
65
+  '0x84fd27fffecdda65':
66
+    friendly_name: livingroom/powerplug_xmas-tree
67
+  '0x84fd27fffedc7e4d':
68
+    friendly_name: sleep/bed_light_ma
69
+  '0xcc86ecfffeb4d5bb':
70
+    friendly_name: stairway/motion_sensor_ff

読み込み中…
キャンセル
保存