新建一个scenes.ymal文件,里面用来定义你不同的场景,下面以我的为例。
- name: TV
entities:
switch.keting_iptv: on
media_player.sony_tv:
state: on
source: HDMI3
is_volume_muted: false
switch.plug_158d000114b282: off
- name: Movie
entities:
switch.plug_158d000114b282: on
switch.keting_iptv: off
media_player.sony_tv:
state: on
source: HDMI2
is_volume_muted: true
# script.gongfang:
# state: on
- name: poweroff_tv
entities:
switch.keting_iptv: off
switch.plug_158d000114b282: off
media_player.sony_tv: off