-
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* useCamera hook to retrieve custom information for the camera * preparing for release * last cleanups
- Loading branch information
1 parent
80c6e17
commit dac8262
Showing
51 changed files
with
2,731 additions
and
671 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
declare module '*.svg' { | ||
const value: any; | ||
export = value; | ||
} | ||
declare module '*.jpg' { | ||
const value: any; | ||
export = value; | ||
} | ||
declare module '*.npg' { | ||
const value: any; | ||
export = value; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { HassEntity } from 'home-assistant-js-websocket'; | ||
import { createEntity } from './createEntity'; | ||
|
||
const now = new Date(); | ||
|
||
const defaults = { | ||
entity_id: "binary_sensor.vehicle", | ||
state: "off", | ||
attributes: { | ||
icon: "mdi:car-off", | ||
friendly_name: "Time", | ||
}, | ||
context: { | ||
id: "01H4JAXGF1RTA2MJGGPGAGM7VD", | ||
parent_id: null, | ||
user_id: null, | ||
}, | ||
last_changed: now.toISOString(), | ||
last_updated: now.toISOString(), | ||
} satisfies HassEntity; | ||
|
||
export const createBinarySensor = (entity_id: string, overrides: Partial<HassEntity> = {}) => { | ||
return createEntity(entity_id, defaults, overrides); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
|
||
|
||
import { HassEntity } from 'home-assistant-js-websocket'; | ||
import { createEntity } from './createEntity'; | ||
|
||
const now = new Date(); | ||
|
||
const defaults = { | ||
entity_id: "camera.demo_camera", | ||
state: "idle", | ||
attributes: { | ||
access_token: "FAKE_TOKEN", | ||
frontend_stream_type: "hls", | ||
entity_picture: "FAKE_PICTURE", | ||
friendly_name: "Frontdoor Camera", | ||
supported_features: 2 | ||
}, | ||
context: { | ||
id: "01HG7Q3VK1E31HD36JZ2ZCXA32", | ||
parent_id: null, | ||
user_id: null | ||
}, | ||
last_changed: now.toISOString(), | ||
last_updated: now.toISOString() | ||
} satisfies HassEntity; | ||
|
||
export const createCamera = (entity_id: string, overrides: Partial<HassEntity> = {}) => { | ||
return createEntity(entity_id, defaults, overrides); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.