mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-05-02 01:07:36 +00:00

* fixed double 'the' mostly 's/the the /the /', little style changes where 'is' or 'to' was missing * removed duplicate words removed duplicate words like 'to to', 'you you' or 'account account' etc. a batch of pizza-toasts burnt for this.
1.0 KiB
1.0 KiB
layout | title | description | date | sidebar | comments | sharing | footer |
---|---|---|---|---|---|---|---|
page | Switches | Instructions how to setup your switches with Home Assistant. | 2015-01-24 14:39 | true | false | true | true |
Keeps track which switches are in your environment, their state and allows you to control them.
- Maintains a state per switch and a combined state
all_switches
. - Registers services
switch/turn_on
,switch/turn_off
, andswitch/toggle
to control switches.
{% linkable_title Use the services %}
Go the Developer Tools, then to Call Service in the frontend, and choose switch/turn_on
or switch/turn_off
from the list of available services (Available services: on the left). Enter something like the sample below into the Service Data field and hit CALL SERVICE.
{"entity_id":"livingroom_pin2"}
Service data attribute | Optional | Description |
---|---|---|
entity_id |
yes | Only act on specific switch. Else targets all. |