-
Notifications
You must be signed in to change notification settings - Fork 1
/
gauge.codin
75 lines (68 loc) · 1.31 KB
/
gauge.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
63
64
65
66
67
68
69
70
71
72
73
74
75
Metadata
name: "RoomMonitoring"
description: "Dashboard for monitoring temperature and noise in kitchen and bedroom"
author: "AI"
token: ""
end
Broker<MQTT> LocalBroker
host: "localhost"
port: 1883
webPath: "/mqtt"
webPort: 8883
auth:
username: ""
password: ""
end
Entity KitchenSensor
type: sensor
topic: 'kitchen/temperature'
broker: LocalBroker
attributes:
- temperature: float
- noise: float
end
Entity BedroomSensor
type: sensor
topic: 'bedroom/temperature'
broker: LocalBroker
attributes:
- temperature: float
- noise: float
end
Gauge KitchenTemperature
label: "Kitchen Temperature"
entity: KitchenSensor
attribute: temperature
minValue: 0
maxValue: 50
//leftColor: Red
//rightColor: Green
//levels: 10
position:
x: 0
y: 0
width: 10
height: 10
end
ValueDisplay KitchenNoise
label: "Kitchen Noise"
entity: KitchenSensor
attribute: noise
unit: "dB"
position:
x: 0
y: 10
width: 10
height: 10
end
ValueDisplay BedroomNoise
label: "Bedroom Noise"
entity: BedroomSensor
attribute: noise
unit: "dB"
position:
x: 10
y: 10
width: 10
height: 10
end