Remote
The Remote integration集成将 Home Assistant 与您的设备、服务等连接和集成。 [Learn more] manages the state of the remote entities and allows you to control them.
- Maintains a state per remote and a combined state
all_remotes
. - Registers actions
remote.turn_on
,remote.turn_off
,remote.toggle
, andremote.send_command
to control remotes.
构建模块集成
这个 remote 是一个构建模块集成,无法直接添加到你的 Home Assistant 中,但可以被其他集成使用和提供。
构建模块集成不同于典型的与设备或服务连接的集成。相反,其他将设备或服务集成到 Home Assistant 中的集成使用这个 remote 构建模块来提供实体、服务和其他你可以在自动化或仪表板中使用的功能。
如果你的某个集成具有这个构建模块,这个页面记录了 remote 构建模块所提供的功能。
The state of a remote entity
The state of a remote entity can be either On or Off.
In addition, the entity can have the following states:
- Unavailable: The entity is currently unavailable.
- Unknown: The state is not yet known.
Use the actions
Go to the Developer Tools and open the Actions tab. From the Actions dropdown, choose remote.turn_on
, remote.turn_off
, or remote.toggle
. Under target, select the target device. If you are in YAML mode, enter something like the sample below into the Data field. Once you are done, select Perform action.
{"entity_id":"remote.family_room"}
Data attribute | Optional | Description |
---|---|---|
entity_id |
yes | Only act on a specific remote, else target all. |
See the platform documentation for each type of remote for more detailed examples.