-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuttons.codin
62 lines (56 loc) · 1.08 KB
/
buttons.codin
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
Metadata
name: "ButtonsExample"
description: "An example of using the Button and ButtonGroup components"
author: "klpanagi"
token: "1234" // The Codin API Token here!!
end
Broker<MQTT> CloudMQTT
host: "localhost"
port: 1883 // Change this accordingly
webPath: "/mqtt"
webPort: 8883
auth:
username: "USERNAME"
password: "PASSWORD"
end
Entity Relay_1
type: actuator
topic: 'bedroom.actuator.relay_1'
broker: CloudMQTT
attributes:
- state: int
end
Entity Relay_2
type: actuator
topic: 'bedroom.actuator.relay_2'
broker: CloudMQTT
attributes:
- out_a: bool
- out_b: bool
end
Button Btn1
label: "Button1"
entity: Relay_1
payload:
- state: 1
end
Button Btn2
label: "Button2"
entity: Relay_2
payload:
- out_a: false
- out_b: true
end
ButtonGroup Btn_Group_A
label: "Btn_Group_A"
alignTxt: Center
alignBtns: Horizontal
buttons:
- Btn1
- Btn2
position:
x: 0
y: 0
width: 4
height: 4
end