This repository has been archived by the owner on Nov 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
58 additions
and
0 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,58 @@ | ||
# Home Assistant Simple Doorbell Notification & TTS | ||
|
||
[![hacs_badge](https://img.shields.io/badge/HACS-Default-orange.svg?style=for-the-badge)](https://github.com/custom-components/hacs) | ||
<br><a href="https://www.buymeacoffee.com/Petro31" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-black.png" width="150px" height="35px" alt="Buy Me A Coffee" style="height: 35px !important;width: 150px !important;" ></a> | ||
|
||
_Toggle Light Automation app for AppDaemon._ | ||
|
||
Simply toggles a light based on another light. You can set the light service data. | ||
|
||
## Installation | ||
|
||
Download the `toggle_light` directory from inside the `apps` directory to your local `apps` directory, then add the configuration to enable the `hacs` module. | ||
|
||
## Example App configuration | ||
|
||
#### Simple switch | ||
```yaml | ||
office_toggle: | ||
module: toggle_light | ||
class: ToggleLight | ||
entity: switch.office_switch | ||
entities: | ||
- switch.office_outlet | ||
``` | ||
#### Advanced | ||
```yaml | ||
office_toggle | ||
module: toggle_light | ||
class: ToggleLight | ||
entity: switch.office_switch | ||
entities: | ||
- switch.office_outlet | ||
- entity: light.office_lamp | ||
service_data: | ||
brightness: 100 | ||
kelvin: 2700 | ||
- entity: light.office_mood | ||
service_data: | ||
brightness: 130 | ||
rgb_color: [255,0,0] | ||
log_level: INFO | ||
``` | ||
#### App Configuration | ||
key | optional | type | default | description | ||
-- | -- | -- | -- | -- | ||
`module` | False | string | `toggle_light` | The module name of the app. | ||
`class` | False | string | `ToggleLight` | The name of the Class. | ||
`entity` | False | string | | entity_id of light/switch/sensor etc. | ||
`entities`| False | list | | A list of entity_id's or entity objects. | ||
`log_level` | True | `'INFO'` | `'DEBUG'` | `'INFO'` | Switches log level. | ||
|
||
#### Entity Object Configuration | ||
key | optional | type | default | description | ||
-- | -- | -- | -- | -- | ||
`entity` | False | string | | The entity_id of the switch or light. | ||
`service_data` | True | map | | Turn on service data. Whenever the door turns on a light or switch, this data will be passed to the service data. Warning: Use only valid combinations. Light combinations are not validated and can cause errors in Home Assistant. |