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
|
template: v3_xs_button
|
||||||
entity: button.mercury_reboot
|
entity: button.mercury_reboot
|
||||||
name: Reboot
|
name: Reboot
|
||||||
|
- type: custom:button-card
|
||||||
|
template: v3_xs_button
|
||||||
|
entity: button.mercury_start
|
||||||
|
name: Start
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: v3_xs_button
|
template: v3_xs_button
|
||||||
entity: button.mercury_shutdown
|
entity: button.mercury_shutdown
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
script:
|
template:
|
||||||
mercury_start:
|
- button:
|
||||||
alias: Mercury · Start
|
- name: Mercury · Start
|
||||||
icon: mdi:play-box-outline
|
icon: mdi:power
|
||||||
sequence:
|
press:
|
||||||
- service: wake_on_lan.send_magic_packet
|
- service: wake_on_lan.send_magic_packet
|
||||||
data:
|
data:
|
||||||
mac: !secret mercury_mac
|
mac: !secret mercury_mac
|
||||||
|
|
||||||
automation:
|
automation:
|
||||||
- alias: Mercury · Power on at 10am when guest mode enabled
|
- alias: Mercury · Power on at 10am when guest mode enabled
|
||||||
@@ -17,7 +17,8 @@ automation:
|
|||||||
entity_id: input_boolean.guest_mode
|
entity_id: input_boolean.guest_mode
|
||||||
state: "on"
|
state: "on"
|
||||||
action:
|
action:
|
||||||
- service: script.mercury_start
|
- service: button.press
|
||||||
|
entity_id: button.mercury_start
|
||||||
- service: notify.telegram
|
- service: notify.telegram
|
||||||
data_template:
|
data_template:
|
||||||
title: "*Mercury · Powering on*"
|
title: "*Mercury · Powering on*"
|
||||||
|
|||||||
Reference in New Issue
Block a user