mqtt2matter 0.0.0-stage → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +76 -0
- package/LICENSE +202 -0
- package/NOTICE +23 -0
- package/README.md +172 -2
- package/dist/app.d.ts +34 -0
- package/dist/app.js +157 -0
- package/dist/app.js.map +1 -0
- package/dist/commands/import-z2m.d.ts +20 -0
- package/dist/commands/import-z2m.js +173 -0
- package/dist/commands/import-z2m.js.map +1 -0
- package/dist/commands/install.d.ts +41 -0
- package/dist/commands/install.js +250 -0
- package/dist/commands/install.js.map +1 -0
- package/dist/commands/update.d.ts +14 -0
- package/dist/commands/update.js +109 -0
- package/dist/commands/update.js.map +1 -0
- package/dist/config/index.d.ts +2 -0
- package/dist/config/index.js +3 -0
- package/dist/config/index.js.map +1 -0
- package/dist/config/load.d.ts +57 -0
- package/dist/config/load.js +137 -0
- package/dist/config/load.js.map +1 -0
- package/dist/config/schema.d.ts +496 -0
- package/dist/config/schema.js +115 -0
- package/dist/config/schema.js.map +1 -0
- package/dist/engine/payload.d.ts +94 -0
- package/dist/engine/payload.js +515 -0
- package/dist/engine/payload.js.map +1 -0
- package/dist/engine/runtime.d.ts +79 -0
- package/dist/engine/runtime.js +438 -0
- package/dist/engine/runtime.js.map +1 -0
- package/dist/engine/template.d.ts +20 -0
- package/dist/engine/template.js +264 -0
- package/dist/engine/template.js.map +1 -0
- package/dist/engine/units.d.ts +9 -0
- package/dist/engine/units.js +42 -0
- package/dist/engine/units.js.map +1 -0
- package/dist/families/climate.d.ts +11 -0
- package/dist/families/climate.js +68 -0
- package/dist/families/climate.js.map +1 -0
- package/dist/families/color.d.ts +30 -0
- package/dist/families/color.js +152 -0
- package/dist/families/color.js.map +1 -0
- package/dist/families/cover.d.ts +17 -0
- package/dist/families/cover.js +308 -0
- package/dist/families/cover.js.map +1 -0
- package/dist/families/fan.d.ts +16 -0
- package/dist/families/fan.js +154 -0
- package/dist/families/fan.js.map +1 -0
- package/dist/families/index.d.ts +32 -0
- package/dist/families/index.js +162 -0
- package/dist/families/index.js.map +1 -0
- package/dist/families/light.d.ts +36 -0
- package/dist/families/light.js +258 -0
- package/dist/families/light.js.map +1 -0
- package/dist/families/lock.d.ts +10 -0
- package/dist/families/lock.js +31 -0
- package/dist/families/lock.js.map +1 -0
- package/dist/families/on-off.d.ts +7 -0
- package/dist/families/on-off.js +56 -0
- package/dist/families/on-off.js.map +1 -0
- package/dist/families/power-source.d.ts +12 -0
- package/dist/families/power-source.js +60 -0
- package/dist/families/power-source.js.map +1 -0
- package/dist/families/registry.d.ts +40 -0
- package/dist/families/registry.js +72 -0
- package/dist/families/registry.js.map +1 -0
- package/dist/families/rvc.d.ts +40 -0
- package/dist/families/rvc.js +83 -0
- package/dist/families/rvc.js.map +1 -0
- package/dist/families/switch.d.ts +19 -0
- package/dist/families/switch.js +94 -0
- package/dist/families/switch.js.map +1 -0
- package/dist/importers/actions.d.ts +19 -0
- package/dist/importers/actions.js +98 -0
- package/dist/importers/actions.js.map +1 -0
- package/dist/importers/ha/areas.d.ts +6 -0
- package/dist/importers/ha/areas.js +279 -0
- package/dist/importers/ha/areas.js.map +1 -0
- package/dist/importers/ha/generate.d.ts +51 -0
- package/dist/importers/ha/generate.js +1376 -0
- package/dist/importers/ha/generate.js.map +1 -0
- package/dist/importers/ha/index.d.ts +6 -0
- package/dist/importers/ha/index.js +7 -0
- package/dist/importers/ha/index.js.map +1 -0
- package/dist/importers/ha/source.d.ts +36 -0
- package/dist/importers/ha/source.js +95 -0
- package/dist/importers/ha/source.js.map +1 -0
- package/dist/importers/ha/sync.d.ts +29 -0
- package/dist/importers/ha/sync.js +132 -0
- package/dist/importers/ha/sync.js.map +1 -0
- package/dist/importers/ha/templates.d.ts +18 -0
- package/dist/importers/ha/templates.js +285 -0
- package/dist/importers/ha/templates.js.map +1 -0
- package/dist/importers/ha/types.d.ts +78 -0
- package/dist/importers/ha/types.js +479 -0
- package/dist/importers/ha/types.js.map +1 -0
- package/dist/importers/index.d.ts +5 -0
- package/dist/importers/index.js +8 -0
- package/dist/importers/index.js.map +1 -0
- package/dist/importers/patch.d.ts +50 -0
- package/dist/importers/patch.js +224 -0
- package/dist/importers/patch.js.map +1 -0
- package/dist/importers/sync.d.ts +112 -0
- package/dist/importers/sync.js +220 -0
- package/dist/importers/sync.js.map +1 -0
- package/dist/importers/twins.d.ts +10 -0
- package/dist/importers/twins.js +34 -0
- package/dist/importers/twins.js.map +1 -0
- package/dist/importers/z2m/generate.d.ts +81 -0
- package/dist/importers/z2m/generate.js +1171 -0
- package/dist/importers/z2m/generate.js.map +1 -0
- package/dist/importers/z2m/index.d.ts +5 -0
- package/dist/importers/z2m/index.js +6 -0
- package/dist/importers/z2m/index.js.map +1 -0
- package/dist/importers/z2m/source.d.ts +18 -0
- package/dist/importers/z2m/source.js +46 -0
- package/dist/importers/z2m/source.js.map +1 -0
- package/dist/importers/z2m/sync.d.ts +29 -0
- package/dist/importers/z2m/sync.js +92 -0
- package/dist/importers/z2m/sync.js.map +1 -0
- package/dist/importers/z2m/types.d.ts +72 -0
- package/dist/importers/z2m/types.js +46 -0
- package/dist/importers/z2m/types.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -0
- package/dist/log.d.ts +17 -0
- package/dist/log.js +54 -0
- package/dist/log.js.map +1 -0
- package/dist/main.d.ts +2 -0
- package/dist/main.js +202 -0
- package/dist/main.js.map +1 -0
- package/dist/matter/bridge.d.ts +113 -0
- package/dist/matter/bridge.js +467 -0
- package/dist/matter/bridge.js.map +1 -0
- package/dist/matter/check.d.ts +11 -0
- package/dist/matter/check.js +116 -0
- package/dist/matter/check.js.map +1 -0
- package/dist/matter/cluster-defaults.d.ts +6 -0
- package/dist/matter/cluster-defaults.js +63 -0
- package/dist/matter/cluster-defaults.js.map +1 -0
- package/dist/matter/commissioning.d.ts +21 -0
- package/dist/matter/commissioning.js +88 -0
- package/dist/matter/commissioning.js.map +1 -0
- package/dist/matter/device-types.d.ts +44 -0
- package/dist/matter/device-types.js +230 -0
- package/dist/matter/device-types.js.map +1 -0
- package/dist/matter/ids.d.ts +31 -0
- package/dist/matter/ids.js +83 -0
- package/dist/matter/ids.js.map +1 -0
- package/dist/matter/index.d.ts +7 -0
- package/dist/matter/index.js +8 -0
- package/dist/matter/index.js.map +1 -0
- package/dist/matter/node-manager.d.ts +39 -0
- package/dist/matter/node-manager.js +161 -0
- package/dist/matter/node-manager.js.map +1 -0
- package/dist/matter/shards.d.ts +26 -0
- package/dist/matter/shards.js +93 -0
- package/dist/matter/shards.js.map +1 -0
- package/dist/model/attribute.d.ts +18 -0
- package/dist/model/attribute.js +28 -0
- package/dist/model/attribute.js.map +1 -0
- package/dist/model/catalog.d.ts +79 -0
- package/dist/model/catalog.js +223 -0
- package/dist/model/catalog.js.map +1 -0
- package/dist/model/index.d.ts +7 -0
- package/dist/model/index.js +8 -0
- package/dist/model/index.js.map +1 -0
- package/dist/model/migrate.d.ts +4 -0
- package/dist/model/migrate.js +39 -0
- package/dist/model/migrate.js.map +1 -0
- package/dist/model/options.d.ts +102 -0
- package/dist/model/options.js +88 -0
- package/dist/model/options.js.map +1 -0
- package/dist/model/presets.d.ts +37 -0
- package/dist/model/presets.js +105 -0
- package/dist/model/presets.js.map +1 -0
- package/dist/model/schema.d.ts +1747 -0
- package/dist/model/schema.js +243 -0
- package/dist/model/schema.js.map +1 -0
- package/dist/model/validate.d.ts +21 -0
- package/dist/model/validate.js +484 -0
- package/dist/model/validate.js.map +1 -0
- package/dist/mqtt/client.d.ts +38 -0
- package/dist/mqtt/client.js +94 -0
- package/dist/mqtt/client.js.map +1 -0
- package/dist/mqtt/index.d.ts +2 -0
- package/dist/mqtt/index.js +3 -0
- package/dist/mqtt/index.js.map +1 -0
- package/dist/mqtt/topic-cache.d.ts +20 -0
- package/dist/mqtt/topic-cache.js +58 -0
- package/dist/mqtt/topic-cache.js.map +1 -0
- package/dist/server/auth.d.ts +59 -0
- package/dist/server/auth.js +185 -0
- package/dist/server/auth.js.map +1 -0
- package/dist/server/catalog.d.ts +52 -0
- package/dist/server/catalog.js +96 -0
- package/dist/server/catalog.js.map +1 -0
- package/dist/server/compact.d.ts +3 -0
- package/dist/server/compact.js +105 -0
- package/dist/server/compact.js.map +1 -0
- package/dist/server/config-store.d.ts +36 -0
- package/dist/server/config-store.js +155 -0
- package/dist/server/config-store.js.map +1 -0
- package/dist/server/events.d.ts +50 -0
- package/dist/server/events.js +71 -0
- package/dist/server/events.js.map +1 -0
- package/dist/server/http.d.ts +27 -0
- package/dist/server/http.js +168 -0
- package/dist/server/http.js.map +1 -0
- package/dist/server/importers.d.ts +40 -0
- package/dist/server/importers.js +75 -0
- package/dist/server/importers.js.map +1 -0
- package/dist/server/index.d.ts +6 -0
- package/dist/server/index.js +8 -0
- package/dist/server/index.js.map +1 -0
- package/dist/server/log-buffer.d.ts +22 -0
- package/dist/server/log-buffer.js +55 -0
- package/dist/server/log-buffer.js.map +1 -0
- package/dist/server/presets.d.ts +17 -0
- package/dist/server/presets.js +55 -0
- package/dist/server/presets.js.map +1 -0
- package/dist/server/preview.d.ts +19 -0
- package/dist/server/preview.js +121 -0
- package/dist/server/preview.js.map +1 -0
- package/dist/server/server.d.ts +107 -0
- package/dist/server/server.js +810 -0
- package/dist/server/server.js.map +1 -0
- package/dist/server/update.d.ts +60 -0
- package/dist/server/update.js +191 -0
- package/dist/server/update.js.map +1 -0
- package/docs/api.md +128 -0
- package/docs/architecture.md +121 -0
- package/docs/config.md +538 -0
- package/docs/importers.md +241 -0
- package/example/mqtt2matter.json +276 -0
- package/package.json +90 -4
- package/presets/mqtt-smarthome/button.json +47 -0
- package/presets/mqtt-smarthome/contact.json +37 -0
- package/presets/mqtt-smarthome/cover.json +50 -0
- package/presets/mqtt-smarthome/dimmer.json +57 -0
- package/presets/mqtt-smarthome/humidity.json +38 -0
- package/presets/mqtt-smarthome/light.json +47 -0
- package/presets/mqtt-smarthome/occupancy.json +46 -0
- package/presets/mqtt-smarthome/switch.json +47 -0
- package/presets/mqtt-smarthome/temperature.json +38 -0
- package/presets/openbeken/color-light.json +64 -0
- package/presets/openbeken/ct-light.json +51 -0
- package/presets/openbeken/dimmer.json +47 -0
- package/presets/openbeken/humidity.json +37 -0
- package/presets/openbeken/relay.json +40 -0
- package/presets/openbeken/temperature.json +41 -0
- package/presets/shelly-gen1/dimmer.json +48 -0
- package/presets/shelly-gen1/door-window.json +43 -0
- package/presets/shelly-gen1/ht.json +43 -0
- package/presets/shelly-gen1/relay-pm.json +60 -0
- package/presets/shelly-gen1/relay.json +36 -0
- package/presets/shelly-gen1/roller.json +52 -0
- package/presets/shelly-gen2/cover.json +68 -0
- package/presets/shelly-gen2/dimmer.json +61 -0
- package/presets/shelly-gen2/ht.json +47 -0
- package/presets/shelly-gen2/i4.json +82 -0
- package/presets/shelly-gen2/switch-pm.json +101 -0
- package/presets/shelly-gen2/switch.json +47 -0
- package/presets/tasmota/climate.json +52 -0
- package/presets/tasmota/color-light.json +63 -0
- package/presets/tasmota/ct-light.json +50 -0
- package/presets/tasmota/dimmer.json +45 -0
- package/presets/tasmota/relay.json +39 -0
- package/presets/tasmota/shutter.json +46 -0
- package/presets/tasmota/temperature-humidity.json +42 -0
- package/presets/tasmota/temperature.json +32 -0
- package/presets/valetudo/vacuum.json +103 -0
- package/presets/wled/dimmer.json +46 -0
- package/presets/wled/light.json +59 -0
- package/ui/dist/assets/index-BDtT6bdH.js +10 -0
- package/ui/dist/assets/index-CHiG-aoU.css +1 -0
- package/ui/dist/index.html +18 -0
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "shelly-gen2/i4",
|
|
3
|
+
"name": "Shelly Plus i4",
|
|
4
|
+
"description": "Shelly Plus i4 / i4 Gen3: the four inputs as buttons (input:0 on the device, input:1…3 as child endpoints) from the NotifyEvent notifications on <prefix>/events/rpc — single, double, triple and long push. The inputs must be of type Button; RPC notifications are on by default.",
|
|
5
|
+
"vendor": "Shelly",
|
|
6
|
+
"format": 1,
|
|
7
|
+
"variables": {
|
|
8
|
+
"prefix": {
|
|
9
|
+
"label": "MQTT prefix",
|
|
10
|
+
"description": "Settings → MQTT → MQTT prefix; by default the device id (shellyplus1pm-a8032abe54dc)"
|
|
11
|
+
},
|
|
12
|
+
"name": {"label": "Name", "default": "Shelly i4"}
|
|
13
|
+
},
|
|
14
|
+
"device": {
|
|
15
|
+
"name": "%name%",
|
|
16
|
+
"vendor": "Shelly",
|
|
17
|
+
"availability": {"topic": "%prefix%/online", "online": "true", "offline": "false"},
|
|
18
|
+
"endpoints": [
|
|
19
|
+
{
|
|
20
|
+
"deviceTypes": ["GenericSwitch"],
|
|
21
|
+
"mappings": [
|
|
22
|
+
{
|
|
23
|
+
"event": "Switch",
|
|
24
|
+
"status": {
|
|
25
|
+
"topic": "%prefix%/events/rpc",
|
|
26
|
+
"template": "{% for e in value_json.params.events | default([]) if e.component == 'input:0' %}{{ e.event }}{% endfor %}",
|
|
27
|
+
"map": {"single_push": "single", "double_push": "double", "triple_push": "triple", "long_push": "long"}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"id": "input1",
|
|
34
|
+
"deviceTypes": ["GenericSwitch"],
|
|
35
|
+
"features": {"Descriptor": ["TagList"]},
|
|
36
|
+
"attributes": {"Descriptor": {"tagList": [{"mfgCode": null, "namespaceId": 7, "tag": 1, "label": "Input 2"}]}},
|
|
37
|
+
"mappings": [
|
|
38
|
+
{
|
|
39
|
+
"event": "Switch",
|
|
40
|
+
"status": {
|
|
41
|
+
"topic": "%prefix%/events/rpc",
|
|
42
|
+
"template": "{% for e in value_json.params.events | default([]) if e.component == 'input:1' %}{{ e.event }}{% endfor %}",
|
|
43
|
+
"map": {"single_push": "single", "double_push": "double", "triple_push": "triple", "long_push": "long"}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"id": "input2",
|
|
50
|
+
"deviceTypes": ["GenericSwitch"],
|
|
51
|
+
"features": {"Descriptor": ["TagList"]},
|
|
52
|
+
"attributes": {"Descriptor": {"tagList": [{"mfgCode": null, "namespaceId": 7, "tag": 2, "label": "Input 3"}]}},
|
|
53
|
+
"mappings": [
|
|
54
|
+
{
|
|
55
|
+
"event": "Switch",
|
|
56
|
+
"status": {
|
|
57
|
+
"topic": "%prefix%/events/rpc",
|
|
58
|
+
"template": "{% for e in value_json.params.events | default([]) if e.component == 'input:2' %}{{ e.event }}{% endfor %}",
|
|
59
|
+
"map": {"single_push": "single", "double_push": "double", "triple_push": "triple", "long_push": "long"}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"id": "input3",
|
|
66
|
+
"deviceTypes": ["GenericSwitch"],
|
|
67
|
+
"features": {"Descriptor": ["TagList"]},
|
|
68
|
+
"attributes": {"Descriptor": {"tagList": [{"mfgCode": null, "namespaceId": 7, "tag": 3, "label": "Input 4"}]}},
|
|
69
|
+
"mappings": [
|
|
70
|
+
{
|
|
71
|
+
"event": "Switch",
|
|
72
|
+
"status": {
|
|
73
|
+
"topic": "%prefix%/events/rpc",
|
|
74
|
+
"template": "{% for e in value_json.params.events | default([]) if e.component == 'input:3' %}{{ e.event }}{% endfor %}",
|
|
75
|
+
"map": {"single_push": "single", "double_push": "double", "triple_push": "triple", "long_push": "long"}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
]
|
|
79
|
+
}
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "shelly-gen2/switch-pm",
|
|
3
|
+
"name": "Shelly Gen2 switch with power",
|
|
4
|
+
"description": "A relay with power metering (1PM, 2PM, Plug S, Pro xPM: switch:<channel>) as a plug-in unit with an electrical sensor: active power, voltage, current. Needs Settings → MQTT → Generic status update.",
|
|
5
|
+
"vendor": "Shelly",
|
|
6
|
+
"format": 1,
|
|
7
|
+
"variables": {
|
|
8
|
+
"prefix": {
|
|
9
|
+
"label": "MQTT prefix",
|
|
10
|
+
"description": "Settings → MQTT → MQTT prefix; by default the device id (shellyplus1pm-a8032abe54dc)"
|
|
11
|
+
},
|
|
12
|
+
"channel": {
|
|
13
|
+
"label": "Channel",
|
|
14
|
+
"description": "The switch component's id: 0, or 1 for a 2PM's second relay",
|
|
15
|
+
"default": "0"
|
|
16
|
+
},
|
|
17
|
+
"name": {"label": "Name", "default": "Shelly switch"}
|
|
18
|
+
},
|
|
19
|
+
"device": {
|
|
20
|
+
"name": "%name%",
|
|
21
|
+
"vendor": "Shelly",
|
|
22
|
+
"availability": {"topic": "%prefix%/online", "online": "true", "offline": "false"},
|
|
23
|
+
"endpoints": [
|
|
24
|
+
{
|
|
25
|
+
"deviceTypes": ["OnOffPlugInUnit", "ElectricalSensor"],
|
|
26
|
+
"features": {"ElectricalPowerMeasurement": ["AlternatingCurrent"], "PowerTopology": ["NodeTopology"]},
|
|
27
|
+
"attributes": {
|
|
28
|
+
"ElectricalPowerMeasurement": {
|
|
29
|
+
"powerMode": 2,
|
|
30
|
+
"numberOfMeasurementTypes": 3,
|
|
31
|
+
"accuracy": [
|
|
32
|
+
{
|
|
33
|
+
"measurementType": 5,
|
|
34
|
+
"measured": true,
|
|
35
|
+
"minMeasuredValue": 0,
|
|
36
|
+
"maxMeasuredValue": 4000000,
|
|
37
|
+
"accuracyRanges": [{"rangeMin": 0, "rangeMax": 4000000, "fixedMax": 1000}]
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"measurementType": 1,
|
|
41
|
+
"measured": true,
|
|
42
|
+
"minMeasuredValue": 0,
|
|
43
|
+
"maxMeasuredValue": 300000,
|
|
44
|
+
"accuracyRanges": [{"rangeMin": 0, "rangeMax": 300000, "fixedMax": 1000}]
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"measurementType": 2,
|
|
48
|
+
"measured": true,
|
|
49
|
+
"minMeasuredValue": 0,
|
|
50
|
+
"maxMeasuredValue": 20000,
|
|
51
|
+
"accuracyRanges": [{"rangeMin": 0, "rangeMax": 20000, "fixedMax": 100}]
|
|
52
|
+
}
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"mappings": [
|
|
57
|
+
{
|
|
58
|
+
"attribute": "OnOff.onOff",
|
|
59
|
+
"status": {
|
|
60
|
+
"topic": "%prefix%/status/switch:%channel%",
|
|
61
|
+
"extract": "output",
|
|
62
|
+
"type": "boolean",
|
|
63
|
+
"get": {"topic": "%prefix%/command/switch:%channel%", "payload": "status_update"}
|
|
64
|
+
},
|
|
65
|
+
"command": {
|
|
66
|
+
"topic": "%prefix%/rpc",
|
|
67
|
+
"format": {
|
|
68
|
+
"true": "{\"id\":1,\"src\":\"mqtt2matter\",\"method\":\"Switch.Set\",\"params\":{\"id\":%channel%,\"on\":true}}",
|
|
69
|
+
"false": "{\"id\":1,\"src\":\"mqtt2matter\",\"method\":\"Switch.Set\",\"params\":{\"id\":%channel%,\"on\":false}}"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"attribute": "ElectricalPowerMeasurement.activePower",
|
|
75
|
+
"status": {
|
|
76
|
+
"topic": "%prefix%/status/switch:%channel%",
|
|
77
|
+
"extract": "apower",
|
|
78
|
+
"scale": {"from": [0, 1], "to": [0, 1000], "clamp": false}
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"attribute": "ElectricalPowerMeasurement.voltage",
|
|
83
|
+
"status": {
|
|
84
|
+
"topic": "%prefix%/status/switch:%channel%",
|
|
85
|
+
"extract": "voltage",
|
|
86
|
+
"scale": {"from": [0, 1], "to": [0, 1000], "clamp": false}
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"attribute": "ElectricalPowerMeasurement.activeCurrent",
|
|
91
|
+
"status": {
|
|
92
|
+
"topic": "%prefix%/status/switch:%channel%",
|
|
93
|
+
"extract": "current",
|
|
94
|
+
"scale": {"from": [0, 1], "to": [0, 1000], "clamp": false}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
]
|
|
98
|
+
}
|
|
99
|
+
]
|
|
100
|
+
}
|
|
101
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "shelly-gen2/switch",
|
|
3
|
+
"name": "Shelly Gen2 switch",
|
|
4
|
+
"description": "A relay of a Shelly Plus/Pro/Gen3 device (switch:<channel>) as a plug-in unit. Needs Settings → MQTT → Generic status update; commands go as RPC (Switch.Set) to <prefix>/rpc.",
|
|
5
|
+
"vendor": "Shelly",
|
|
6
|
+
"format": 1,
|
|
7
|
+
"variables": {
|
|
8
|
+
"prefix": {
|
|
9
|
+
"label": "MQTT prefix",
|
|
10
|
+
"description": "Settings → MQTT → MQTT prefix; by default the device id (shellyplus1pm-a8032abe54dc)"
|
|
11
|
+
},
|
|
12
|
+
"channel": {
|
|
13
|
+
"label": "Channel",
|
|
14
|
+
"description": "The switch component's id: 0, or 1 for a 2PM's second relay",
|
|
15
|
+
"default": "0"
|
|
16
|
+
},
|
|
17
|
+
"name": {"label": "Name", "default": "Shelly switch"}
|
|
18
|
+
},
|
|
19
|
+
"device": {
|
|
20
|
+
"name": "%name%",
|
|
21
|
+
"vendor": "Shelly",
|
|
22
|
+
"availability": {"topic": "%prefix%/online", "online": "true", "offline": "false"},
|
|
23
|
+
"endpoints": [
|
|
24
|
+
{
|
|
25
|
+
"deviceTypes": ["OnOffPlugInUnit"],
|
|
26
|
+
"mappings": [
|
|
27
|
+
{
|
|
28
|
+
"attribute": "OnOff.onOff",
|
|
29
|
+
"status": {
|
|
30
|
+
"topic": "%prefix%/status/switch:%channel%",
|
|
31
|
+
"extract": "output",
|
|
32
|
+
"type": "boolean",
|
|
33
|
+
"get": {"topic": "%prefix%/command/switch:%channel%", "payload": "status_update"}
|
|
34
|
+
},
|
|
35
|
+
"command": {
|
|
36
|
+
"topic": "%prefix%/rpc",
|
|
37
|
+
"format": {
|
|
38
|
+
"true": "{\"id\":1,\"src\":\"mqtt2matter\",\"method\":\"Switch.Set\",\"params\":{\"id\":%channel%,\"on\":true}}",
|
|
39
|
+
"false": "{\"id\":1,\"src\":\"mqtt2matter\",\"method\":\"Switch.Set\",\"params\":{\"id\":%channel%,\"on\":false}}"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "tasmota/climate",
|
|
3
|
+
"name": "Tasmota climate sensor",
|
|
4
|
+
"description": "A BME280/BME680-style sensor attached to Tasmota: temperature, humidity and pressure (hPa, PressureUnit hPa) from tele/<topic>/SENSOR; humidity and pressure as child endpoints.",
|
|
5
|
+
"vendor": "Tasmota",
|
|
6
|
+
"format": 1,
|
|
7
|
+
"variables": {
|
|
8
|
+
"topic": {"label": "Tasmota topic", "description": "The device's MQTT topic (Configuration → MQTT → Topic)"},
|
|
9
|
+
"sensor": {
|
|
10
|
+
"label": "Sensor",
|
|
11
|
+
"description": "The sensor's key in tele/<topic>/SENSOR (BME280, BME680, …)",
|
|
12
|
+
"default": "BME280"
|
|
13
|
+
},
|
|
14
|
+
"name": {"label": "Name", "default": "Climate"}
|
|
15
|
+
},
|
|
16
|
+
"device": {
|
|
17
|
+
"name": "%name%",
|
|
18
|
+
"vendor": "Tasmota",
|
|
19
|
+
"availability": {"topic": "tele/%topic%/LWT", "online": "Online", "offline": "Offline"},
|
|
20
|
+
"endpoints": [
|
|
21
|
+
{
|
|
22
|
+
"deviceTypes": ["TemperatureSensor"],
|
|
23
|
+
"mappings": [
|
|
24
|
+
{
|
|
25
|
+
"attribute": "TemperatureMeasurement.measuredValue",
|
|
26
|
+
"status": {"topic": "tele/%topic%/SENSOR", "extract": "$.%sensor%.Temperature", "unit": "celsius"}
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"id": "humidity",
|
|
32
|
+
"deviceTypes": ["HumiditySensor"],
|
|
33
|
+
"mappings": [
|
|
34
|
+
{
|
|
35
|
+
"attribute": "RelativeHumidityMeasurement.measuredValue",
|
|
36
|
+
"status": {"topic": "tele/%topic%/SENSOR", "extract": "$.%sensor%.Humidity", "unit": "percent100ths"}
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"id": "pressure",
|
|
42
|
+
"deviceTypes": ["PressureSensor"],
|
|
43
|
+
"mappings": [
|
|
44
|
+
{
|
|
45
|
+
"attribute": "PressureMeasurement.measuredValue",
|
|
46
|
+
"status": {"topic": "tele/%topic%/SENSOR", "extract": "$.%sensor%.Pressure"}
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "tasmota/color-light",
|
|
3
|
+
"name": "Tasmota colour light",
|
|
4
|
+
"description": "A Tasmota RGB, RGBW or RGBCCT light: POWER, Dimmer, the colour from HSBColor (sent as Color2 r,g,b, which keeps the dimmer), CT for the white channels; the colour mode follows Channel (RGB all 0 = white).",
|
|
5
|
+
"vendor": "Tasmota",
|
|
6
|
+
"format": 1,
|
|
7
|
+
"variables": {
|
|
8
|
+
"topic": {"label": "Tasmota topic", "description": "The device's MQTT topic (Configuration → MQTT → Topic)"},
|
|
9
|
+
"name": {"label": "Name", "default": "Light"}
|
|
10
|
+
},
|
|
11
|
+
"device": {
|
|
12
|
+
"name": "%name%",
|
|
13
|
+
"vendor": "Tasmota",
|
|
14
|
+
"availability": {"topic": "tele/%topic%/LWT", "online": "Online", "offline": "Offline"},
|
|
15
|
+
"endpoints": [
|
|
16
|
+
{
|
|
17
|
+
"deviceTypes": ["ExtendedColorLight"],
|
|
18
|
+
"features": {"ColorControl": ["HueSaturation"]},
|
|
19
|
+
"options": {"light": {"onCommandType": "first"}},
|
|
20
|
+
"mappings": [
|
|
21
|
+
{
|
|
22
|
+
"attribute": "OnOff.onOff",
|
|
23
|
+
"status": {
|
|
24
|
+
"topic": "stat/%topic%/RESULT",
|
|
25
|
+
"extract": "$.POWER",
|
|
26
|
+
"map": {"ON": true, "OFF": false},
|
|
27
|
+
"get": {"topic": "cmnd/%topic%/POWER", "payload": ""}
|
|
28
|
+
},
|
|
29
|
+
"command": {"topic": "cmnd/%topic%/POWER", "format": {"true": "ON", "false": "OFF"}}
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"attribute": "LevelControl.currentLevel",
|
|
33
|
+
"status": {
|
|
34
|
+
"topic": "stat/%topic%/RESULT",
|
|
35
|
+
"template": "{{ value_json.Dimmer if value_json.Dimmer is defined and value_json.Dimmer > 0 else '' }}",
|
|
36
|
+
"type": "number",
|
|
37
|
+
"unit": "percentLevel",
|
|
38
|
+
"get": {"topic": "cmnd/%topic%/Dimmer", "payload": ""}
|
|
39
|
+
},
|
|
40
|
+
"command": {"topic": "cmnd/%topic%/Dimmer", "unit": "percentLevel", "round": 0}
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"attribute": "ColorControl.colorHs",
|
|
44
|
+
"status": {"topic": "stat/%topic%/RESULT", "extract": "$.HSBColor"},
|
|
45
|
+
"command": {"topic": "cmnd/%topic%/Color2", "template": "{{ red }},{{ green }},{{ blue }}"}
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"attribute": "ColorControl.colorTemperatureMireds",
|
|
49
|
+
"status": {"topic": "stat/%topic%/RESULT", "extract": "$.CT"},
|
|
50
|
+
"command": {"topic": "cmnd/%topic%/CT"}
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"attribute": "ColorControl.colorMode",
|
|
54
|
+
"status": {
|
|
55
|
+
"topic": "stat/%topic%/RESULT",
|
|
56
|
+
"template": "{% if value_json.Channel is defined and value_json.Channel | length > 3 %}{{ 'ColorTemperatureMireds' if (value_json.Channel[0:3] | max) == 0 else 'CurrentHueAndCurrentSaturation' }}{% elif value_json.HSBColor is defined %}CurrentHueAndCurrentSaturation{% endif %}"
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "tasmota/ct-light",
|
|
3
|
+
"name": "Tasmota CT light",
|
|
4
|
+
"description": "A Tasmota light with cold and warm white (2 channels): POWER, Dimmer and CT (153–500 mireds).",
|
|
5
|
+
"vendor": "Tasmota",
|
|
6
|
+
"format": 1,
|
|
7
|
+
"variables": {
|
|
8
|
+
"topic": {"label": "Tasmota topic", "description": "The device's MQTT topic (Configuration → MQTT → Topic)"},
|
|
9
|
+
"name": {"label": "Name", "default": "Light"}
|
|
10
|
+
},
|
|
11
|
+
"device": {
|
|
12
|
+
"name": "%name%",
|
|
13
|
+
"vendor": "Tasmota",
|
|
14
|
+
"availability": {"topic": "tele/%topic%/LWT", "online": "Online", "offline": "Offline"},
|
|
15
|
+
"endpoints": [
|
|
16
|
+
{
|
|
17
|
+
"deviceTypes": ["ColorTemperatureLight"],
|
|
18
|
+
"options": {"light": {"onCommandType": "first"}},
|
|
19
|
+
"mappings": [
|
|
20
|
+
{
|
|
21
|
+
"attribute": "OnOff.onOff",
|
|
22
|
+
"status": {
|
|
23
|
+
"topic": "stat/%topic%/RESULT",
|
|
24
|
+
"extract": "$.POWER",
|
|
25
|
+
"map": {"ON": true, "OFF": false},
|
|
26
|
+
"get": {"topic": "cmnd/%topic%/POWER", "payload": ""}
|
|
27
|
+
},
|
|
28
|
+
"command": {"topic": "cmnd/%topic%/POWER", "format": {"true": "ON", "false": "OFF"}}
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"attribute": "LevelControl.currentLevel",
|
|
32
|
+
"status": {
|
|
33
|
+
"topic": "stat/%topic%/RESULT",
|
|
34
|
+
"template": "{{ value_json.Dimmer if value_json.Dimmer is defined and value_json.Dimmer > 0 else '' }}",
|
|
35
|
+
"type": "number",
|
|
36
|
+
"unit": "percentLevel",
|
|
37
|
+
"get": {"topic": "cmnd/%topic%/Dimmer", "payload": ""}
|
|
38
|
+
},
|
|
39
|
+
"command": {"topic": "cmnd/%topic%/Dimmer", "unit": "percentLevel", "round": 0}
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"attribute": "ColorControl.colorTemperatureMireds",
|
|
43
|
+
"status": {"topic": "stat/%topic%/RESULT", "extract": "$.CT"},
|
|
44
|
+
"command": {"topic": "cmnd/%topic%/CT"}
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "tasmota/dimmer",
|
|
3
|
+
"name": "Tasmota dimmer",
|
|
4
|
+
"description": "A Tasmota dimmer or single-channel light: POWER and Dimmer (0–100) from stat/<topic>/RESULT, commands to cmnd/<topic>/POWER and Dimmer.",
|
|
5
|
+
"vendor": "Tasmota",
|
|
6
|
+
"format": 1,
|
|
7
|
+
"variables": {
|
|
8
|
+
"topic": {"label": "Tasmota topic", "description": "The device's MQTT topic (Configuration → MQTT → Topic)"},
|
|
9
|
+
"name": {"label": "Name", "default": "Dimmer"}
|
|
10
|
+
},
|
|
11
|
+
"device": {
|
|
12
|
+
"name": "%name%",
|
|
13
|
+
"vendor": "Tasmota",
|
|
14
|
+
"availability": {"topic": "tele/%topic%/LWT", "online": "Online", "offline": "Offline"},
|
|
15
|
+
"endpoints": [
|
|
16
|
+
{
|
|
17
|
+
"deviceTypes": ["DimmableLight"],
|
|
18
|
+
"options": {"light": {"onCommandType": "first"}},
|
|
19
|
+
"mappings": [
|
|
20
|
+
{
|
|
21
|
+
"attribute": "OnOff.onOff",
|
|
22
|
+
"status": {
|
|
23
|
+
"topic": "stat/%topic%/RESULT",
|
|
24
|
+
"extract": "$.POWER",
|
|
25
|
+
"map": {"ON": true, "OFF": false},
|
|
26
|
+
"get": {"topic": "cmnd/%topic%/POWER", "payload": ""}
|
|
27
|
+
},
|
|
28
|
+
"command": {"topic": "cmnd/%topic%/POWER", "format": {"true": "ON", "false": "OFF"}}
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"attribute": "LevelControl.currentLevel",
|
|
32
|
+
"status": {
|
|
33
|
+
"topic": "stat/%topic%/RESULT",
|
|
34
|
+
"template": "{{ value_json.Dimmer if value_json.Dimmer is defined and value_json.Dimmer > 0 else '' }}",
|
|
35
|
+
"type": "number",
|
|
36
|
+
"unit": "percentLevel",
|
|
37
|
+
"get": {"topic": "cmnd/%topic%/Dimmer", "payload": ""}
|
|
38
|
+
},
|
|
39
|
+
"command": {"topic": "cmnd/%topic%/Dimmer", "unit": "percentLevel", "round": 0}
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "tasmota/relay",
|
|
3
|
+
"name": "Tasmota relay",
|
|
4
|
+
"description": "One relay of a Tasmota device as a plug-in unit: POWER (or POWER<n> of a multi-relay device) over stat/cmnd, asked for at start, availability from LWT.",
|
|
5
|
+
"vendor": "Tasmota",
|
|
6
|
+
"format": 1,
|
|
7
|
+
"variables": {
|
|
8
|
+
"topic": {"label": "Tasmota topic", "description": "The device's MQTT topic (Configuration → MQTT → Topic)"},
|
|
9
|
+
"index": {
|
|
10
|
+
"label": "Relay",
|
|
11
|
+
"description": "Empty for a device with one relay (POWER); 1, 2, … for one relay of several (POWER1, POWER2, …)",
|
|
12
|
+
"default": "",
|
|
13
|
+
"optional": true
|
|
14
|
+
},
|
|
15
|
+
"name": {"label": "Name", "default": "Relay"}
|
|
16
|
+
},
|
|
17
|
+
"device": {
|
|
18
|
+
"name": "%name%",
|
|
19
|
+
"vendor": "Tasmota",
|
|
20
|
+
"availability": {"topic": "tele/%topic%/LWT", "online": "Online", "offline": "Offline"},
|
|
21
|
+
"endpoints": [
|
|
22
|
+
{
|
|
23
|
+
"deviceTypes": ["OnOffPlugInUnit"],
|
|
24
|
+
"mappings": [
|
|
25
|
+
{
|
|
26
|
+
"attribute": "OnOff.onOff",
|
|
27
|
+
"status": {
|
|
28
|
+
"topic": "stat/%topic%/RESULT",
|
|
29
|
+
"extract": "$.POWER%index%",
|
|
30
|
+
"map": {"ON": true, "OFF": false},
|
|
31
|
+
"get": {"topic": "cmnd/%topic%/POWER%index%", "payload": ""}
|
|
32
|
+
},
|
|
33
|
+
"command": {"topic": "cmnd/%topic%/POWER%index%", "format": {"true": "ON", "false": "OFF"}}
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "tasmota/shutter",
|
|
3
|
+
"name": "Tasmota shutter",
|
|
4
|
+
"description": "A Tasmota shutter (Shutter<n>, 100 = open) as a position-aware window covering: the position from stat/<topic>/RESULT, ShutterPosition<n>, ShutterOpen<n>, ShutterClose<n>, ShutterStop<n>.",
|
|
5
|
+
"vendor": "Tasmota",
|
|
6
|
+
"format": 1,
|
|
7
|
+
"variables": {
|
|
8
|
+
"topic": {"label": "Tasmota topic", "description": "The device's MQTT topic (Configuration → MQTT → Topic)"},
|
|
9
|
+
"index": {"label": "Shutter", "description": "The shutter's number: 1, 2, …", "default": "1"},
|
|
10
|
+
"name": {"label": "Name", "default": "Shutter"}
|
|
11
|
+
},
|
|
12
|
+
"device": {
|
|
13
|
+
"name": "%name%",
|
|
14
|
+
"vendor": "Tasmota",
|
|
15
|
+
"availability": {"topic": "tele/%topic%/LWT", "online": "Online", "offline": "Offline"},
|
|
16
|
+
"endpoints": [
|
|
17
|
+
{
|
|
18
|
+
"deviceTypes": ["WindowCovering"],
|
|
19
|
+
"mappings": [
|
|
20
|
+
{
|
|
21
|
+
"attribute": "WindowCovering.currentPositionLiftPercent100ths",
|
|
22
|
+
"status": {
|
|
23
|
+
"topic": "stat/%topic%/RESULT",
|
|
24
|
+
"extract": "$.Shutter%index%.Position",
|
|
25
|
+
"scale": {"from": [0, 100], "to": [10000, 0]},
|
|
26
|
+
"get": {"topic": "cmnd/%topic%/ShutterPosition%index%", "payload": ""}
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"attribute": "WindowCovering.targetPositionLiftPercent100ths",
|
|
31
|
+
"command": {"topic": "cmnd/%topic%/ShutterPosition%index%", "template": "{{ open }}"}
|
|
32
|
+
},
|
|
33
|
+
{"invoke": "WindowCovering.upOrOpen", "command": {"topic": "cmnd/%topic%/ShutterOpen%index%", "payload": ""}},
|
|
34
|
+
{
|
|
35
|
+
"invoke": "WindowCovering.downOrClose",
|
|
36
|
+
"command": {"topic": "cmnd/%topic%/ShutterClose%index%", "payload": ""}
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"invoke": "WindowCovering.stopMotion",
|
|
40
|
+
"command": {"topic": "cmnd/%topic%/ShutterStop%index%", "payload": ""}
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "tasmota/temperature-humidity",
|
|
3
|
+
"name": "Tasmota temperature and humidity sensor",
|
|
4
|
+
"description": "A temperature and humidity sensor attached to Tasmota (SHT3X, AM2301, DHT11, SI7021, …) from tele/<topic>/SENSOR every TelePeriod; humidity as a child endpoint.",
|
|
5
|
+
"vendor": "Tasmota",
|
|
6
|
+
"format": 1,
|
|
7
|
+
"variables": {
|
|
8
|
+
"topic": {"label": "Tasmota topic", "description": "The device's MQTT topic (Configuration → MQTT → Topic)"},
|
|
9
|
+
"sensor": {
|
|
10
|
+
"label": "Sensor",
|
|
11
|
+
"description": "The sensor's key in tele/<topic>/SENSOR (SHT3X, AM2301, DHT11, SI7021, …)",
|
|
12
|
+
"default": "SHT3X"
|
|
13
|
+
},
|
|
14
|
+
"name": {"label": "Name", "default": "Climate"}
|
|
15
|
+
},
|
|
16
|
+
"device": {
|
|
17
|
+
"name": "%name%",
|
|
18
|
+
"vendor": "Tasmota",
|
|
19
|
+
"availability": {"topic": "tele/%topic%/LWT", "online": "Online", "offline": "Offline"},
|
|
20
|
+
"endpoints": [
|
|
21
|
+
{
|
|
22
|
+
"deviceTypes": ["TemperatureSensor"],
|
|
23
|
+
"mappings": [
|
|
24
|
+
{
|
|
25
|
+
"attribute": "TemperatureMeasurement.measuredValue",
|
|
26
|
+
"status": {"topic": "tele/%topic%/SENSOR", "extract": "$.%sensor%.Temperature", "unit": "celsius"}
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"id": "humidity",
|
|
32
|
+
"deviceTypes": ["HumiditySensor"],
|
|
33
|
+
"mappings": [
|
|
34
|
+
{
|
|
35
|
+
"attribute": "RelativeHumidityMeasurement.measuredValue",
|
|
36
|
+
"status": {"topic": "tele/%topic%/SENSOR", "extract": "$.%sensor%.Humidity", "unit": "percent100ths"}
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "tasmota/temperature",
|
|
3
|
+
"name": "Tasmota temperature sensor",
|
|
4
|
+
"description": "A temperature sensor attached to Tasmota (DS18B20, …) from tele/<topic>/SENSOR every TelePeriod; set TempUnit to C (SetOption8 0).",
|
|
5
|
+
"vendor": "Tasmota",
|
|
6
|
+
"format": 1,
|
|
7
|
+
"variables": {
|
|
8
|
+
"topic": {"label": "Tasmota topic", "description": "The device's MQTT topic (Configuration → MQTT → Topic)"},
|
|
9
|
+
"sensor": {
|
|
10
|
+
"label": "Sensor",
|
|
11
|
+
"description": "The sensor's key in tele/<topic>/SENSOR (DS18B20, DS18B20-1, …)",
|
|
12
|
+
"default": "DS18B20"
|
|
13
|
+
},
|
|
14
|
+
"name": {"label": "Name", "default": "Temperature"}
|
|
15
|
+
},
|
|
16
|
+
"device": {
|
|
17
|
+
"name": "%name%",
|
|
18
|
+
"vendor": "Tasmota",
|
|
19
|
+
"availability": {"topic": "tele/%topic%/LWT", "online": "Online", "offline": "Offline"},
|
|
20
|
+
"endpoints": [
|
|
21
|
+
{
|
|
22
|
+
"deviceTypes": ["TemperatureSensor"],
|
|
23
|
+
"mappings": [
|
|
24
|
+
{
|
|
25
|
+
"attribute": "TemperatureMeasurement.measuredValue",
|
|
26
|
+
"status": {"topic": "tele/%topic%/SENSOR", "extract": "$.%sensor%.Temperature", "unit": "celsius"}
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
}
|