Allow light.toggle service to accept all service light turn on params (#8612)

* Allow light.toggle service to accept all service light turn on params

* Minor change
This commit is contained in:
zewelor 2019-03-07 19:15:22 +01:00 committed by Fabian Affolter
parent 418869c9b1
commit c505bdf26b

View File

@ -77,10 +77,7 @@ Turns one or multiple lights off.
### {% linkable_title Service `light.toggle` %} ### {% linkable_title Service `light.toggle` %}
Toggles the state of one or multiple lights using [groups]({{site_root}}/components/group/). Toggles the state of one or multiple lights using [groups]({{site_root}}/components/group/).
Takes the same arguments as [`turn_on`](#service-lightturn_on) service.
*Note*: If `light.toggle` is used for a group of lights, it will toggle the individual state of each light. *Note*: If `light.toggle` is used for a group of lights, it will toggle the individual state of each light.
| Service data attribute | Optional | Description |
| ---------------------- | -------- | ----------- |
| `entity_id` | no | String or list of strings that point at `entity_id`s of lights. Else targets all.
| `transition` | yes | Integer that represents the time the light should take to transition to the new state in seconds.