Skip to content

Instantly share code, notes, and snippets.

@andycb
Last active November 23, 2021 17:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andycb/fde1a7471b5e252e2551f4a4b6cbfba2 to your computer and use it in GitHub Desktop.
Save andycb/fde1a7471b5e252e2551f4a4b6cbfba2 to your computer and use it in GitHub Desktop.
Home Assistant Coffee
type: vertical-stack
cards:
- type: vertical-stack
cards:
- type: entity
entity: sensor.coffeemaker_c10a29_brew_state
name: Status
- type: button
tap_action:
action: call-service
service: mqtt.publish
service_data:
topic: CoffeeMaker/COFFEEMAKER-1/command
payload: Brew
target: {}
show_name: true
name: Make Coffee!
hold_action:
action: none
icon: mdi:coffee
alias: Coffee Done
description: ''
trigger:
- platform: state
entity_id: sensor.mqtt_sensor
to: KeepWarm
from: Brewing
condition: []
action:
- service: notify.notify
data:
message: ☕️Coffee is ready! Get it while its fresh!
mode: single
alias: Coffee Forgotten
description: ''
trigger:
- platform: state
entity_id: sensor.mqtt_sensor
to: KeepWarm
from: Brewing
for:
hours: 0
minutes: 10
seconds: 0
milliseconds: 0
condition: []
action:
- service: notify.notify
data:
message: ☕️You've Forgotten Your Coffee!
mode: single
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment