From fdf913ba567a129980b16a98ec40cfb662342897 Mon Sep 17 00:00:00 2001 From: Petro31 <35082313+Petro31@users.noreply.github.com> Date: Thu, 30 Jan 2020 19:52:22 -0500 Subject: [PATCH] Update README.md --- README.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 067b491..8c5c7cc 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Home Assistant Simple Doorbell Notification & TTS +# Home Assistant Light Toggle Automation for Appdaemon [![hacs_badge](https://img.shields.io/badge/HACS-Default-orange.svg?style=for-the-badge)](https://github.com/custom-components/hacs)
Buy Me A Coffee @@ -23,6 +23,18 @@ office_toggle: - switch.office_outlet ``` +#### Turn on light when TV turns on, only at night. +```yaml +tv_toggle: + module: toggle_light + class: ToggleLight + entity: remote.tv + turn_off: false + sundown: true + entities: + - light.living_room +``` + #### Advanced ```yaml office_toggle @@ -49,6 +61,9 @@ key | optional | type | default | description `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. +`turn_on` | False | bool | `true` | enables/disables the turn_on command when `entity` is toggled. +`turn_off` | False | bool | `true` | enables/disables the turn_off command when `entity` is toggled. +`sundown` | False | bool | `false` | only allows the toggle to occur when the sun is down. `log_level` | True | `'INFO'` | `'DEBUG'` | `'INFO'` | Switches log level. #### Entity Object Configuration