-
Notifications
You must be signed in to change notification settings - Fork 2
/
azure_mqtt_client
110 lines (110 loc) · 3.17 KB
/
azure_mqtt_client
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
UID: mqtt:topic:cambridge_audio
label: Azure CA MQTT Client
thingTypeUID: mqtt:topic
configuration: {}
bridgeUID: mqtt:broker:mosquitto
channels:
- id: mute_state
channelTypeUID: mqtt:switch
label: Amplifier mute state
description: ""
configuration:
commandTopic: Azure/command
formatBeforePublish: '{ "mute" : "%s" }'
stateTopic: Azure/status
transformationPattern: JSONPATH:$.isMute
- id: power_state
channelTypeUID: mqtt:switch
label: Amplifier power state
description: ""
configuration:
commandTopic: Azure/command
postCommand: false
formatBeforePublish: '{ "status" : "%s" }'
stateTopic: Azure/status
transformationPattern: JSONPATH:$.status
- id: input_select
channelTypeUID: mqtt:string
label: Input select
description: ""
configuration:
commandTopic: Azure/command
formatBeforePublish: '{"input":"%s"}'
stateTopic: Azure/status
transformationPattern: JSONPATH:$.selectedInput
- id: source_type
channelTypeUID: mqtt:string
label: Set audio source for input
description: ""
configuration:
commandTopic: Azure/command
formatBeforePublish: '{"sourceType":"%s"}'
stateTopic: Azure/status
transformationPattern: JSONPATH:$.sourceType
- id: volume
channelTypeUID: mqtt:number
label: Volume Up and Down
description: ""
configuration:
min: -90
stateTopic: Azure/status
transformationPattern: JSONPATH:$.volume
max: -10
- id: tuner_band
channelTypeUID: mqtt:string
label: Tuner band
description: ""
configuration:
commandTopic: Azure/command
formatBeforePublish: '{"tunerBand":"%s"}'
stateTopic: Azure/status
transformationPattern: JSONPATH:$.tunerBand
- id: surround_modes
channelTypeUID: mqtt:string
label: Surround Mode
description: ""
configuration:
stateTopic: Azure/status
transformationPattern: JSONPATH:$.surroundMode
- id: dd_dts_mode
channelTypeUID: mqtt:string
label: Get current DD/DTS Mode
description: ""
configuration:
commandTopic: Azure/command
transformationPattern: JSONPATH:$.currentMode
stateTopic: Azure/status
- id: surround_change
channelTypeUID: mqtt:switch
label: Surround change button
description: ""
configuration:
commandTopic: Azure/command
formatBeforePublish: '{"surroundMode":"%s"}'
off: Next
on: Next
- id: dynamic_range_set
channelTypeUID: mqtt:string
label: Dynamic Range Control
description: ""
configuration:
commandTopic: Azure/command
formatBeforePublish: '{"drcSet":"%s"}'
stateTopic: Azure/status
transformationPattern: JSONPATH:$.drcSet
- id: raw_command
channelTypeUID: mqtt:string
label: Send raw command
description: ""
configuration:
formatBeforePublish: '{"rawCommand":"%s"}'
commandTopic: Azure/command
- id: biamp
channelTypeUID: mqtt:switch
label: Bi-amping
description: ""
configuration:
commandTopic: Azure/command
formatBeforePublish: '{"biAmp":"%s"}'
stateTopic: Azure/status
transformationPattern: JSONPATH:$.biAmp