@digital-alchemy/hass 24.6.4 → 24.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/dynamic.d.ts CHANGED
@@ -1,406 +1,321 @@
1
1
  import { ActionableNotification, AndroidActionableNotification, AppleActionableNotification, PICK_ENTITY } from "./helpers";
2
2
  type PICK_FROM_PLATFORM<ID extends TPlatformId, DOMAIN extends TRawDomains = TRawDomains> = Extract<REGISTRY_SETUP["platform"][`_${ID}`], PICK_ENTITY<DOMAIN>>;
3
- export declare const ENTITY_SETUP: {
4
- binary_sensor: {
5
- hass_e2e_online: {
6
- attributes: {
7
- friendly_name: string;
8
- restored: boolean;
9
- supported_features: number;
10
- };
11
- context: {
12
- id: string;
13
- parent_id: any;
14
- user_id: any;
15
- };
16
- entity_id: string;
17
- last_changed: string;
18
- last_reported: string;
19
- last_updated: string;
20
- state: string;
3
+ export type ENTITY_SETUP = {
4
+ "binary_sensor.hass_e2e_online": {
5
+ attributes: {
6
+ friendly_name: "hass_e2e online";
7
+ restored: true;
8
+ supported_features: 0;
21
9
  };
22
- toggles: {
23
- attributes: {
24
- friendly_name: string;
25
- icon: string;
26
- restored: boolean;
27
- supported_features: number;
28
- };
29
- context: {
30
- id: string;
31
- parent_id: any;
32
- user_id: any;
33
- };
34
- entity_id: string;
35
- last_changed: string;
36
- last_reported: string;
37
- last_updated: string;
38
- state: string;
10
+ context: {
11
+ id: "01HWXTSCSBGW129NV7WY8MMG1E";
12
+ parent_id: null;
13
+ user_id: null;
39
14
  };
15
+ entity_id: "binary_sensor.hass_e2e_online";
16
+ state: "unavailable";
40
17
  };
41
- calendar: {
42
- united_states_tx: {
43
- attributes: {
44
- all_day: boolean;
45
- description: string;
46
- end_time: string;
47
- friendly_name: string;
48
- location: string;
49
- message: string;
50
- start_time: string;
51
- };
52
- context: {
53
- id: string;
54
- parent_id: any;
55
- user_id: any;
56
- };
57
- entity_id: string;
58
- last_changed: string;
59
- last_reported: string;
60
- last_updated: string;
61
- state: string;
18
+ "binary_sensor.toggles": {
19
+ attributes: {
20
+ friendly_name: "toggles";
21
+ icon: "mdi:toggle-switch-variant-off";
22
+ restored: true;
23
+ supported_features: 0;
24
+ };
25
+ context: {
26
+ id: "01HWXTSCSB43FF1R6FX0QEE4Z6";
27
+ parent_id: null;
28
+ user_id: null;
62
29
  };
30
+ entity_id: "binary_sensor.toggles";
31
+ state: "unavailable";
63
32
  };
64
- light: {
65
- bedroom_ceiling_fan: {
66
- attributes: {
67
- brightness: any;
68
- color_mode: any;
69
- color_temp: any;
70
- color_temp_kelvin: any;
71
- friendly_name: string;
72
- hs_color: any;
73
- icon: string;
74
- max_color_temp_kelvin: number;
75
- max_mireds: number;
76
- min_color_temp_kelvin: number;
77
- min_mireds: number;
78
- rgb_color: any;
79
- supported_color_modes: string[];
80
- supported_features: number;
81
- xy_color: any;
82
- };
83
- context: {
84
- id: string;
85
- parent_id: any;
86
- user_id: any;
87
- };
88
- entity_id: string;
89
- last_changed: string;
90
- last_reported: string;
91
- last_updated: string;
92
- state: string;
33
+ "calendar.united_states_tx": {
34
+ attributes: {
35
+ all_day: true;
36
+ description: "";
37
+ end_time: "2024-05-28 00:00:00";
38
+ friendly_name: "United States, TX";
39
+ location: "United States, TX";
40
+ message: "Memorial Day";
41
+ start_time: "2024-05-27 00:00:00";
93
42
  };
43
+ context: {
44
+ id: "01HWXTYEEFBB7QQC1CSM6PAR36";
45
+ parent_id: null;
46
+ user_id: null;
47
+ };
48
+ entity_id: "calendar.united_states_tx";
49
+ state: "off";
94
50
  };
95
- person: {
96
- digital_alchemy: {
97
- attributes: {
98
- device_trackers: any[];
99
- editable: boolean;
100
- friendly_name: string;
101
- id: string;
102
- user_id: string;
103
- };
104
- context: {
105
- id: string;
106
- parent_id: any;
107
- user_id: any;
108
- };
109
- entity_id: string;
110
- last_changed: string;
111
- last_reported: string;
112
- last_updated: string;
113
- state: string;
51
+ "light.bedroom_ceiling_fan": {
52
+ attributes: {
53
+ brightness: null;
54
+ color_mode: null;
55
+ color_temp: null;
56
+ color_temp_kelvin: null;
57
+ friendly_name: "Bedroom Ceiling Fan";
58
+ hs_color: null;
59
+ icon: "mdi:lightbulb-group";
60
+ max_color_temp_kelvin: 6535;
61
+ max_mireds: 500;
62
+ min_color_temp_kelvin: 2000;
63
+ min_mireds: 153;
64
+ rgb_color: null;
65
+ supported_color_modes: ["color_temp", "xy"];
66
+ supported_features: 40;
67
+ xy_color: null;
114
68
  };
69
+ context: {
70
+ id: "01HX722Y1JFS6KN2MDERK0VJ2D";
71
+ parent_id: null;
72
+ user_id: null;
73
+ };
74
+ entity_id: "light.bedroom_ceiling_fan";
75
+ state: "off";
115
76
  };
116
- scene: {
117
- games_room_auto: {
118
- attributes: {
119
- "Managed By": string;
120
- friendly_name: string;
121
- };
122
- context: {
123
- id: string;
124
- parent_id: any;
125
- user_id: any;
126
- };
127
- entity_id: string;
128
- last_changed: string;
129
- last_reported: string;
130
- last_updated: string;
131
- state: string;
77
+ "person.digital_alchemy": {
78
+ attributes: {
79
+ device_trackers: [];
80
+ editable: true;
81
+ friendly_name: "digital-alchemy";
82
+ id: "digital_alchemy";
83
+ user_id: "4dd1cf7e93e94f3fbaf419501f9a3d59";
84
+ };
85
+ context: {
86
+ id: "01HWXTSCSBRKJ9T2KV1JNER5KQ";
87
+ parent_id: null;
88
+ user_id: null;
132
89
  };
90
+ entity_id: "person.digital_alchemy";
91
+ state: "unknown";
133
92
  };
134
- sensor: {
135
- magic: {
136
- attributes: {
137
- friendly_name: string;
138
- icon: string;
139
- restored: boolean;
140
- supported_features: number;
141
- };
142
- context: {
143
- id: string;
144
- parent_id: any;
145
- user_id: any;
146
- };
147
- entity_id: string;
148
- last_changed: string;
149
- last_reported: string;
150
- last_updated: string;
151
- state: string;
93
+ "scene.games_room_auto": {
94
+ attributes: {
95
+ "Managed By": "home_automation";
96
+ friendly_name: "bedroom off";
152
97
  };
153
- sun_next_dawn: {
154
- attributes: {
155
- device_class: string;
156
- friendly_name: string;
157
- };
158
- context: {
159
- id: string;
160
- parent_id: any;
161
- user_id: any;
162
- };
163
- entity_id: string;
164
- last_changed: string;
165
- last_reported: string;
166
- last_updated: string;
167
- state: string;
98
+ context: {
99
+ id: "01HWXW289S8HP5MSGNNTNB2CBG";
100
+ parent_id: null;
101
+ user_id: null;
102
+ };
103
+ entity_id: "scene.games_room_auto";
104
+ state: "unknown";
105
+ };
106
+ "sensor.magic": {
107
+ attributes: {
108
+ friendly_name: "magic";
109
+ icon: "mdi:satellite-uplink";
110
+ restored: true;
111
+ supported_features: 0;
168
112
  };
169
- sun_next_dusk: {
170
- attributes: {
171
- device_class: string;
172
- friendly_name: string;
173
- };
174
- context: {
175
- id: string;
176
- parent_id: any;
177
- user_id: any;
178
- };
179
- entity_id: string;
180
- last_changed: string;
181
- last_reported: string;
182
- last_updated: string;
183
- state: string;
113
+ context: {
114
+ id: "01HWXTSCSBW34BP3R20RJ09CVZ";
115
+ parent_id: null;
116
+ user_id: null;
184
117
  };
185
- sun_next_midnight: {
186
- attributes: {
187
- device_class: string;
188
- friendly_name: string;
189
- };
190
- context: {
191
- id: string;
192
- parent_id: any;
193
- user_id: any;
194
- };
195
- entity_id: string;
196
- last_changed: string;
197
- last_reported: string;
198
- last_updated: string;
199
- state: string;
118
+ entity_id: "sensor.magic";
119
+ state: string;
120
+ };
121
+ "sensor.sun_next_dawn": {
122
+ attributes: {
123
+ device_class: "timestamp";
124
+ friendly_name: "Sun Next dawn";
200
125
  };
201
- sun_next_noon: {
202
- attributes: {
203
- device_class: string;
204
- friendly_name: string;
205
- };
206
- context: {
207
- id: string;
208
- parent_id: any;
209
- user_id: any;
210
- };
211
- entity_id: string;
212
- last_changed: string;
213
- last_reported: string;
214
- last_updated: string;
215
- state: string;
126
+ context: {
127
+ id: "01HWXTS8W1SRTPT5K1XM0G491X";
128
+ parent_id: null;
129
+ user_id: null;
216
130
  };
217
- sun_next_rising: {
218
- attributes: {
219
- device_class: string;
220
- friendly_name: string;
221
- };
222
- context: {
223
- id: string;
224
- parent_id: any;
225
- user_id: any;
226
- };
227
- entity_id: string;
228
- last_changed: string;
229
- last_reported: string;
230
- last_updated: string;
231
- state: string;
131
+ entity_id: "sensor.sun_next_dawn";
132
+ state: "2024-05-03T03:24:45+00:00";
133
+ };
134
+ "sensor.sun_next_dusk": {
135
+ attributes: {
136
+ device_class: "timestamp";
137
+ friendly_name: "Sun Next dusk";
232
138
  };
233
- sun_next_setting: {
234
- attributes: {
235
- device_class: string;
236
- friendly_name: string;
237
- };
238
- context: {
239
- id: string;
240
- parent_id: any;
241
- user_id: any;
242
- };
243
- entity_id: string;
244
- last_changed: string;
245
- last_reported: string;
246
- last_updated: string;
247
- state: string;
139
+ context: {
140
+ id: "01HWXTS8W1S95P1MVHDGHSQEB2";
141
+ parent_id: null;
142
+ user_id: null;
248
143
  };
144
+ entity_id: "sensor.sun_next_dusk";
145
+ state: "2024-05-03T19:51:10+00:00";
249
146
  };
250
- sun: {
251
- sun: {
252
- attributes: {
253
- azimuth: number;
254
- elevation: number;
255
- friendly_name: string;
256
- next_dawn: string;
257
- next_dusk: string;
258
- next_midnight: string;
259
- next_noon: string;
260
- next_rising: string;
261
- next_setting: string;
262
- rising: boolean;
263
- };
264
- context: {
265
- id: string;
266
- parent_id: any;
267
- user_id: any;
268
- };
269
- entity_id: string;
270
- last_changed: string;
271
- last_reported: string;
272
- last_updated: string;
273
- state: string;
147
+ "sensor.sun_next_midnight": {
148
+ attributes: {
149
+ device_class: "timestamp";
150
+ friendly_name: "Sun Next midnight";
151
+ };
152
+ context: {
153
+ id: "01HWXTS8W1YQCPA3WZ69Y9JSPD";
154
+ parent_id: null;
155
+ user_id: null;
274
156
  };
157
+ entity_id: "sensor.sun_next_midnight";
158
+ state: "2024-05-03T23:37:12+00:00";
275
159
  };
276
- switch: {
277
- bedroom_lamp: {
278
- attributes: {
279
- friendly_name: string;
280
- restored: boolean;
281
- supported_features: number;
282
- };
283
- context: {
284
- id: string;
285
- parent_id: any;
286
- user_id: any;
287
- };
288
- entity_id: string;
289
- last_changed: string;
290
- last_reported: string;
291
- last_updated: string;
292
- state: string;
160
+ "sensor.sun_next_noon": {
161
+ attributes: {
162
+ device_class: "timestamp";
163
+ friendly_name: "Sun Next noon";
293
164
  };
294
- kitchen_cabinets: {
295
- attributes: {
296
- friendly_name: string;
297
- restored: boolean;
298
- supported_features: number;
299
- };
300
- context: {
301
- id: string;
302
- parent_id: any;
303
- user_id: any;
304
- };
305
- entity_id: string;
306
- last_changed: string;
307
- last_reported: string;
308
- last_updated: string;
309
- state: string;
165
+ context: {
166
+ id: "01HWXTS8W28MVV48CQ31JB2WKC";
167
+ parent_id: null;
168
+ user_id: null;
310
169
  };
311
- living_room_mood_lights: {
312
- attributes: {
313
- friendly_name: string;
314
- restored: boolean;
315
- supported_features: number;
316
- };
317
- context: {
318
- id: string;
319
- parent_id: any;
320
- user_id: any;
321
- };
322
- entity_id: string;
323
- last_changed: string;
324
- last_reported: string;
325
- last_updated: string;
326
- state: string;
170
+ entity_id: "sensor.sun_next_noon";
171
+ state: "2024-05-03T11:37:19+00:00";
172
+ };
173
+ "sensor.sun_next_rising": {
174
+ attributes: {
175
+ device_class: "timestamp";
176
+ friendly_name: "Sun Next rising";
327
177
  };
328
- porch_light: {
329
- attributes: {
330
- friendly_name: string;
331
- restored: boolean;
332
- supported_features: number;
333
- };
334
- context: {
335
- id: string;
336
- parent_id: any;
337
- user_id: any;
338
- };
339
- entity_id: string;
340
- last_changed: string;
341
- last_reported: string;
342
- last_updated: string;
343
- state: string;
178
+ context: {
179
+ id: "01HWXTS8W2MMADKGWE4A5BMH51";
180
+ parent_id: null;
181
+ user_id: null;
344
182
  };
183
+ entity_id: "sensor.sun_next_rising";
184
+ state: "2024-05-03T04:05:17+00:00";
345
185
  };
346
- todo: {
347
- shopping_list: {
348
- attributes: {
349
- friendly_name: string;
350
- supported_features: number;
351
- };
352
- context: {
353
- id: string;
354
- parent_id: any;
355
- user_id: any;
356
- };
357
- entity_id: string;
358
- last_changed: string;
359
- last_reported: string;
360
- last_updated: string;
361
- state: string;
186
+ "sensor.sun_next_setting": {
187
+ attributes: {
188
+ device_class: "timestamp";
189
+ friendly_name: "Sun Next setting";
190
+ };
191
+ context: {
192
+ id: "01HWXTS8W24KWTHR2B6V32NCXG";
193
+ parent_id: null;
194
+ user_id: null;
362
195
  };
196
+ entity_id: "sensor.sun_next_setting";
197
+ state: "2024-05-03T19:10:21+00:00";
363
198
  };
364
- tts: {
365
- google_en_com: {
366
- attributes: {
367
- friendly_name: string;
368
- };
369
- context: {
370
- id: string;
371
- parent_id: any;
372
- user_id: any;
373
- };
374
- entity_id: string;
375
- last_changed: string;
376
- last_reported: string;
377
- last_updated: string;
378
- state: string;
199
+ "sun.sun": {
200
+ attributes: {
201
+ azimuth: 0.35;
202
+ elevation: -21.86;
203
+ friendly_name: "Sun";
204
+ next_dawn: "2024-05-03T03:24:45.747945+00:00";
205
+ next_dusk: "2024-05-03T19:51:10.358970+00:00";
206
+ next_midnight: "2024-05-03T23:37:12+00:00";
207
+ next_noon: "2024-05-03T11:37:19+00:00";
208
+ next_rising: "2024-05-03T04:05:17.926549+00:00";
209
+ next_setting: "2024-05-03T19:10:21.280558+00:00";
210
+ rising: true;
379
211
  };
212
+ context: {
213
+ id: "01HWXTS8W1J2TDGMN7KKNWP8DV";
214
+ parent_id: null;
215
+ user_id: null;
216
+ };
217
+ entity_id: "sun.sun";
218
+ state: "below_horizon";
380
219
  };
381
- zone: {
382
- home: {
383
- attributes: {
384
- editable: boolean;
385
- friendly_name: string;
386
- icon: string;
387
- latitude: number;
388
- longitude: number;
389
- passive: boolean;
390
- persons: any[];
391
- radius: number;
392
- };
393
- context: {
394
- id: string;
395
- parent_id: any;
396
- user_id: any;
397
- };
398
- entity_id: string;
399
- last_changed: string;
400
- last_reported: string;
401
- last_updated: string;
402
- state: string;
220
+ "switch.bedroom_lamp": {
221
+ attributes: {
222
+ friendly_name: "bedroom_lamp";
223
+ restored: true;
224
+ supported_features: 0;
225
+ };
226
+ context: {
227
+ id: "01HWXTSCSB7BK003CH3AYYVXCB";
228
+ parent_id: null;
229
+ user_id: null;
230
+ };
231
+ entity_id: "switch.bedroom_lamp";
232
+ state: "unavailable";
233
+ };
234
+ "switch.kitchen_cabinets": {
235
+ attributes: {
236
+ friendly_name: "kitchen_cabinets";
237
+ restored: true;
238
+ supported_features: 0;
239
+ };
240
+ context: {
241
+ id: "01HWXTSCSBM9Y3SRQTFJ5CVK6H";
242
+ parent_id: null;
243
+ user_id: null;
244
+ };
245
+ entity_id: "switch.kitchen_cabinets";
246
+ state: "unavailable";
247
+ };
248
+ "switch.living_room_mood_lights": {
249
+ attributes: {
250
+ friendly_name: "living_room_mood_lights";
251
+ restored: true;
252
+ supported_features: 0;
253
+ };
254
+ context: {
255
+ id: "01HWXTSCSBS5B586JJ7VFH10SX";
256
+ parent_id: null;
257
+ user_id: null;
258
+ };
259
+ entity_id: "switch.living_room_mood_lights";
260
+ state: "unavailable";
261
+ };
262
+ "switch.porch_light": {
263
+ attributes: {
264
+ friendly_name: "porch_light";
265
+ restored: true;
266
+ supported_features: 0;
267
+ };
268
+ context: {
269
+ id: "01HWXTSCSBFTSZR1M5XAK7XSR8";
270
+ parent_id: null;
271
+ user_id: null;
272
+ };
273
+ entity_id: "switch.porch_light";
274
+ state: "unavailable";
275
+ };
276
+ "todo.shopping_list": {
277
+ attributes: {
278
+ friendly_name: "Shopping List";
279
+ supported_features: 15;
280
+ };
281
+ context: {
282
+ id: "01HWXTS8X3D417XC4YJTG8QJWB";
283
+ parent_id: null;
284
+ user_id: null;
285
+ };
286
+ entity_id: "todo.shopping_list";
287
+ state: "0";
288
+ };
289
+ "tts.google_en_com": {
290
+ attributes: {
291
+ friendly_name: "Google en com";
292
+ };
293
+ context: {
294
+ id: "01HWXTS8XMPQ236CDJ6X7C6E60";
295
+ parent_id: null;
296
+ user_id: null;
297
+ };
298
+ entity_id: "tts.google_en_com";
299
+ state: "unknown";
300
+ };
301
+ "zone.home": {
302
+ attributes: {
303
+ editable: true;
304
+ friendly_name: "Home";
305
+ icon: "mdi:home";
306
+ latitude: 52.373_133_9;
307
+ longitude: 4.890_314_7;
308
+ passive: false;
309
+ persons: [];
310
+ radius: 100;
311
+ };
312
+ context: {
313
+ id: "01HWXTS8GMB4ZW20P8MGMX0QSN";
314
+ parent_id: null;
315
+ user_id: null;
403
316
  };
317
+ entity_id: "zone.home";
318
+ state: "0";
404
319
  };
405
320
  };
406
321
  export type iCallService = {