Add button to start mercury

This commit is contained in:
Georgi Gardev
2023-09-21 17:14:09 +03:00
parent 67b2aa84c2
commit 83b63e743b
2 changed files with 14 additions and 9 deletions
@@ -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
+10 -9
View File
@@ -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*"