Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jcallaghan/4d731c738b7fe13f7425e252e818de1f to your computer and use it in GitHub Desktop.
Save jcallaghan/4d731c738b7fe13f7425e252e818de1f to your computer and use it in GitHub Desktop.
See https://jcallaghan.com/2021/06/smart-dog-training-buttons via my blog for more information.
type: vertical-stack
cards:
- type: entities
title: Back Garden
show_header_toggle: false
entities:
- entity: binary_sensor.paw_button_1
secondary_info: last-updated
- type: custom:fold-entity-row
head:
type: section
label: Configuration
open: false
entities:
- entity: automation.family_poppy_paw_button_1
secondary_info: last-triggered
- entity: input_number.paw_button_1_wait
name: Delay
- entity: input_number.paw_button_volume
- entity: input_text.paw_button_1_tts
name: Announcement
type: custom:text-input-row
- entity: input_text.paw_button_1_notification
name: Notification
type: custom:text-input-row
- type: custom:mini-graph-card
entities:
- entity: binary_sensor.paw_button_1
name: Back Garden
color: green
name: Interaction in the last 24 hours
line_width: 4
hours_to_show: 24
icon: mdi:paw
animate: true
hour24: true
points_per_hour: 6
update_interval: 30
aggregate_func: max
smoothing: false
state_map:
- value: 'off'
label: Idle
- value: 'on'
label: Pressed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment