mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-20 07:46:52 +00:00
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:
parent
418869c9b1
commit
c505bdf26b
@ -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.
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user