2024年11月24日星期日 上午10:43:13

[Script] automation - How to turn off all lights and media players when everyone is out of the house

1 年 前
#20283 引用
[Script]Turning off all house automations

https://community.home-assistant.io/t/how-to-toggle-multiple-automations-by-one-button/439132/2

https://community.home-assistant.io/t/how-to-turn-off-all-lights-and-media-players-when-everyone-is-out-of-the-house/315131
0
1 年 前
#20284 引用
create new Script

alias: Script-automation.turn_off all
description: " -https://community.home-assistant.io/t/how-to-toggle-multiple-automations-by-one-button/439132/2"
sequence:
  - service: automation.turn_off
    data:
      stop_actions: true
    target:
      entity_id: all
mode: single
0
1 年 前
#20285 引用
create new Script



alias: Script-automation.turn_on all
description: " -https://community.home-assistant.io/t/how-to-toggle-multiple-automations-by-one-button/439132/2"
sequence:
  - service: automation.turn_on
    target:
      entity_id: all
    data: {}
mode: single



0
1 年 前
#22501 引用
Script - turn off all lights in an Area







alias: >-
  Script-light.turn_off all
  -https://community.home-assistant.io/t/turning-off-all-house-lights-with-automation/177784/11
sequence:
  - service: light.turn_off
    data: {}
    target:
      entity_id: all
  - service: light.turn_off  # turn off/on all lights in an Area https://community.home-assistant.io/t/can-you-turn-off-on-all-lights-in-an-area/339234/2?u=msly
    data: {}
    target:
      area_id: book_bedroom
mode: single

0