Skip to content

Instantly share code, notes, and snippets.

@zipkid
Last active June 12, 2023 11:00
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 zipkid/db8e3bd150fd0ef52b2853134bdcd155 to your computer and use it in GitHub Desktop.
Save zipkid/db8e3bd150fd0ef52b2853134bdcd155 to your computer and use it in GitHub Desktop.
Automation
- id: <UUID>
alias: Power Alert
description: ""
trigger:
- platform: numeric_state
entity_id: sensor.dsmr_reader_power_consumed
for:
hours: 0
minutes: 5
seconds: 0
above: 4
condition: []
action:
- service: notify.mobile_app
data:
title: Power alert
message: Power usage over 4 kW for 2 minutes
data:
push:
sound:
name: default
critical: 1
volume: 1
mode: single
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment