Skip to content

Instantly share code, notes, and snippets.

@MaxVRAM
Created March 8, 2021 20:15
Show Gist options
  • Save MaxVRAM/39e4283b22436fc7726df8c33bbadbe6 to your computer and use it in GitHub Desktop.
Save MaxVRAM/39e4283b22436fc7726df8c33bbadbe6 to your computer and use it in GitHub Desktop.
HA Reset Button (press and hold unlock)
type: 'custom:button-card'
hold_action:
action: call-service
service: script.pimainrestart
entity: script.pimainrestart
aspect_ratio: 1/1
styles:
card:
- font-size: 14px
- height: 50px
show_name: false
show_label: false
icon: 'mdi:restart'
lock:
enabled: true
unlock: hold
duration: 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment