mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-06-21 10:57:43 +00:00
Add button to start mercury
This commit is contained in:
@@ -29,6 +29,10 @@ mercury_card:
|
||||
template: v3_xs_button
|
||||
entity: button.mercury_reboot
|
||||
name: Reboot
|
||||
- type: custom:button-card
|
||||
template: v3_xs_button
|
||||
entity: button.mercury_start
|
||||
name: Start
|
||||
- type: custom:button-card
|
||||
template: v3_xs_button
|
||||
entity: button.mercury_shutdown
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
script:
|
||||
mercury_start:
|
||||
alias: Mercury · Start
|
||||
icon: mdi:play-box-outline
|
||||
sequence:
|
||||
template:
|
||||
- button:
|
||||
- name: Mercury · Start
|
||||
icon: mdi:power
|
||||
press:
|
||||
- service: wake_on_lan.send_magic_packet
|
||||
data:
|
||||
mac: !secret mercury_mac
|
||||
@@ -17,7 +17,8 @@ automation:
|
||||
entity_id: input_boolean.guest_mode
|
||||
state: "on"
|
||||
action:
|
||||
- service: script.mercury_start
|
||||
- service: button.press
|
||||
entity_id: button.mercury_start
|
||||
- service: notify.telegram
|
||||
data_template:
|
||||
title: "*Mercury · Powering on*"
|
||||
|
||||
Reference in New Issue
Block a user