-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgarmin.json
153 lines (153 loc) · 5.27 KB
/
garmin.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
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
{
"$schema": "https://raw.githubusercontent.com/vincentezw/dotfiles/main/garmin.json",
"title": "Home",
"items": [
{
"name": "Bedside light",
"type": "group",
"items": [
{
"name": "Current state",
"type": "template",
"content": "{% if is_state('light.signify_netherlands_b_v_lwa011_1f62340b_level_on_off', 'off') %}off{% else %}{{ (state_attr('light.signify_netherlands_b_v_lwa011_1f62340b_level_on_off', 'brightness') | int / 255 * 100) | round(0) }}%{% endif %}"
},
{
"entity": "light.signify_netherlands_b_v_lwa011_1f62340b_level_on_off",
"name": "Set 1%",
"type": "tap",
"tap_action": {
"service": "light.turn_on",
"data": {
"brightness_pct": 1
}
}
},
{
"entity": "light.signify_netherlands_b_v_lwa011_1f62340b_level_on_off",
"name": "Set 50%",
"type": "tap",
"tap_action": {
"service": "light.turn_on",
"data": {
"brightness_pct": 50
}
}
},
{
"entity": "light.signify_netherlands_b_v_lwa011_1f62340b_level_on_off",
"name": "Set 100%",
"type": "tap",
"tap_action": {
"service": "light.turn_on",
"data": {
"brightness_pct": 100
}
}
}
]
},
{
"name": "Front room",
"type": "group",
"items": [
{
"entity": "light.signify_netherlands_b_v_lwa012_huelight",
"name": "Main light",
"type": "toggle"
},
{
"entity": "switch.kitchen_socket_switch",
"name": "Computer",
"type": "toggle"
},
{
"entity": "light.desk_light_light",
"name": "Desk light",
"type": "toggle"
}
]
},
{
"entity": "light.signify_netherlands_b_v_lwa001_level_on_off",
"name": "Bathroom room light",
"type": "toggle"
},
{
"name": "Room stats",
"type": "group",
"items": [
{
"name": "Outside",
"type": "template",
"content": "🌡{{ states('sensor.outdoor_temperature') }}°C 💧{{ states('sensor.humidity') }}%"
},
{
"name": "Bathroom",
"type": "template",
"content": "🌡{{ states('sensor.ewelink_th01_temperature') }}°C 💧{{ states('sensor.bathroom_sensor_humidity') }}%"
},
{
"name": "Bedroom",
"type": "template",
"content": "🌡{{ states('sensor.new_temp_sensor_temperature_2') }}°C 💧{{ states('sensor.bathroom_sensor_humidity') }}%"
},
{
"name": "Dining room",
"type": "template",
"content": "🌡{{ states('sensor.indoor_temperature') }}°C 💧{{ states('sensor.indoor_humidity') }}%"
},
{
"name": "Front room",
"type": "template",
"content": "🌡{{ states('sensor.front_room_temperature_temperature_2') }}°C 💧{{ states('sensor.front_room_temperature_humidity') }}%"
},
{
"name": "Kaya's room",
"type": "template",
"content": "🌡{{ states('sensor.kaya_temperature_temperature_2') }}°C 💧{{ states('sensor.kaya_temperature_humidity') }}%"
},
{
"name": "Kitchen",
"type": "template",
"content": "🌡{{ states('sensor.kitchen_temperature_temperature_2') }}°C 💧{{ states('sensor.kitchen_temperature_humidity') }}%"
},
{
"name": "Office",
"type": "template",
"content": "🌡{{ states('sensor.lumi_lumi_weather_temperature') }}°C 💧{{ states('sensor.lumi_lumi_weather_humidity') }}%"
}
]
},
{
"name": "Humidity",
"type": "group",
"items": [
{
"name": "Outside",
"type": "template",
"content": "💧{{ states('sensor.abs_hum_outside') }} g/m³ - {{ states('sensor.humidity') }}%"
},
{
"name": "Bedroom",
"type": "template",
"content": "💧{{ states('sensor.abs_hum_bedroom') }} g/m³: {% if states('sensor.abs_hum_bedroom') | float > states('sensor.abs_hum_outside') | float %}ventilate room{% else %}do not ventilate{% endif %}"
},
{
"name": "Dining room",
"type": "template",
"content": "💧{{ states('sensor.abs_hum_dining_room') }} g/m³: {% if states('sensor.abs_hum_dining_room') | float > states('sensor.abs_hum_outside') | float %}ventilate room{% else %}do not ventilate{% endif %}"
},
{
"name": "Kaya's room",
"type": "template",
"content": "💧{{ states('sensor.abs_hum_kaya_room') }} g/m³: {% if states('sensor.abs_hum_kaya_room') | float > states('sensor.abs_hum_outside') | float %}ventilate room{% else %}do not ventilate{% endif %}"
},
{
"name": "Kitchen",
"type": "template",
"content": "💧{{ states('sensor.abs_hum_kitchen') }} g/m³: {% if states('sensor.abs_hum_kitchen') | float > states('sensor.abs_hum_outside') | float %}ventilate room{% else %}do not ventilate{% endif %}"
}
]
}
]
}