-
Notifications
You must be signed in to change notification settings - Fork 0
/
mqtt.sample.json
49 lines (49 loc) · 1.4 KB
/
mqtt.sample.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{
"subscribeTopic": "#",
"topics": [
{
"deviceType": "devices.types.thermostat",
"stateTopic": "<user_name>/climate/<device_id>/state",
"configTopic": "<user_name>/climate/<device_id>/config",
"availableTopic": "<user_name>/climate/<device_id>/available",
"commandTopics": [
{
"capability": {
"type": "devices.capabilities.on_off",
"stateInstance": "on"
},
"topic": "<user_name>/climate/<device_id>/power/set",
"messageValueMapping": {
"off": false,
"__default": true
}
},
{
"capability": {
"type": "devices.capabilities.range",
"stateInstance": "temperature"
},
"property": {
"type": "devices.properties.float",
"stateInstance": "temperature"
},
"topic": "<user_name>/climate/<device_id>/temperature/set"
},
{
"capability": {
"type": "devices.capabilities.mode",
"stateInstance": "thermostat"
},
"topic": "<user_name>/climate/<device_id>/thermostat/set"
},
{
"capability": {
"type": "devices.capabilities.toggle",
"stateInstance": "oscillation"
},
"topic": "<user_name>/climate/<device_id>/oscillation/set"
}
]
}
]
}