-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsensor.yaml
202 lines (202 loc) · 5.24 KB
/
sensor.yaml
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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
- platform: sun2
entity_namespace: My Home
latitude: !secret latitude
longitude: !secret longitude
time_zone: Europe/London
elevation: 59.82
monitored_conditions:
- solar_midnight
- astronomical_dawn
- nautical_dawn
- dawn
- sunrise
- solar_noon
- sunset
- dusk
- nautical_dusk
- astronomical_dusk
- daylight
- civil_daylight
- nautical_daylight
- astronomical_daylight
- night
- civil_night
- nautical_night
- astronomical_night
- elevation
- min_elevation
- max_elevation
- platform: season
- platform: rest
name: SwitchBot Bedroom Curtain
resource: !secret switchbot_bedroom_status_url
method: GET
scan_interval: 600
headers:
Authorization: !secret switchbot_api
Content-Type: "application/json"
value_template: >
{% if value_json.body.slidePosition > 95 %} 0
{% elif value_json.body.slidePosition < 5 %} 100
{% else %} {{100-value_json.body.slidePosition}}
{% endif %}
json_attributes_path: "$.body"
json_attributes:
- deviceId
- deviceType
- hubDeviceId
- calibrate
- group
- moving
- slidePosition
- platform: rest
name: SwitchBot Hall Curtain
resource: !secret switchbot_hall_status_url
method: GET
scan_interval: 600
headers:
Authorization: !secret switchbot_api
Content-Type: "application/json"
value_template: >
{% if value_json.body.slidePosition > 95 %} 0
{% elif value_json.body.slidePosition < 5 %} 100
{% else %} {{100-value_json.body.slidePosition}}
{% endif %}
json_attributes_path: "$.body"
json_attributes:
- deviceId
- deviceType
- hubDeviceId
- calibrate
- group
- moving
- slidePosition
- platform: rest
name: SwitchBot Bedroom Light Curtain
resource: !secret switchbot_lounge_status_url
method: GET
scan_interval: 600
headers:
Authorization: !secret switchbot_api
Content-Type: "application/json"
value_template: >
{% if value_json.body.slidePosition > 95 %} 0
{% elif value_json.body.slidePosition < 5 %} 100
{% else %} {{100-value_json.body.slidePosition}}
{% endif %}
json_attributes_path: "$.body"
json_attributes:
- deviceId
- deviceType
- hubDeviceId
- calibrate
- group
- moving
- slidePosition
- platform: rest
name: SwitchBot Office Curtain
resource: !secret switchbot_office_status_url
method: GET
scan_interval: 600
headers:
Authorization: !secret switchbot_api
Content-Type: "application/json"
value_template: >
{% if value_json.body.slidePosition > 95 %} 0
{% elif value_json.body.slidePosition < 5 %} 100
{% else %} {{100-value_json.body.slidePosition}}
{% endif %}
json_attributes_path: "$.body"
json_attributes:
- deviceId
- deviceType
- hubDeviceId
- calibrate
- group
- moving
- slidePosition
- platform: radarr
api_key: !secret radarr_key
host: !secret radarr_host
port: 7878
- platform: time_date
display_options:
- "time"
- "date"
- "date_time"
- "date_time_utc"
- "date_time_iso"
- "time_date"
- "time_utc"
- platform: integration
source: sensor.frient_energy_meter_reader_power
name: Current Power Consumption
# - platform: temperature_feels_like
# unique_id: hall_feels_like
# name: "Hallway Feels Like Temperature"
# source:
# - sensor.hallway_climate_sensor_temperature
# - sensor.hallway_climate_sensor_humidity
# - platform: temperature_feels_like
# unique_id: bedroom_feels_like
# name: "Bedroom Feels Like Temperature"
# source:
# - sensor.netatmo_bedroom_temperature
# - sensor.netatmo_bedroom_humidity
# - platform: temperature_feels_like
# unique_id: office_feels_like
# name: "Office Feels Like Temperature"
# source:
# - sensor.netatmo_queens_square_station_additional_smart_indoor_module_temperature
# - sensor.netatmo_queens_square_station_additional_smart_indoor_module_humidity
# - platform: temperature_feels_like
# unique_id: lounge_feels_like
# name: "Living Room Feels Like Temperature"
# source:
# - sensor.netatmo_queens_square_station_temperature
# - sensor.netatmo_queens_square_station_humidity
# - platform: temperature_feels_like
# unique_id: kitchen_feels_like
# name: "Kitchen Feels Like Temperature"
# source:
# - sensor.kitchen_climate_sensor_temperature
# - sensor.kitchen_climate_sensor_humidity
# - platform: temperature_feels_like
# unique_id: bathroom_feels_like
# name: "Bathroom Feels Like Temperature"
# source:
# - sensor.bathroom_climate_sensor_temperature
# - sensor.bathroom_climate_sensor_humidity
- platform: illuminance
entity_id: weather.home
- platform: sun2
entity_namespace: Home
monitored_conditions:
- solar_midnight
- astronomical_dawn
- nautical_dawn
- dawn
- sunrise
- solar_noon
- sunset
- dusk
- nautical_dusk
- astronomical_dusk
- daylight
- civil_daylight
- nautical_daylight
- astronomical_daylight
- night
- civil_night
- nautical_night
- astronomical_night
- elevation
- min_elevation
- max_elevation
- platform: uk_transport
app_id: !secret transport_api_app_id
app_key: !secret transport_api_app_key
queries:
- mode: train
origin: CPM
destination: BTS