Skip to content
This repository has been archived by the owner on Nov 23, 2024. It is now read-only.

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Petro31 authored Jan 30, 2020
1 parent 8661572 commit 184321f
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions README.md
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'` &#124; `'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.

0 comments on commit 184321f

Please sign in to comment.