Skip to content

Instantly share code, notes, and snippets.

View Jhonattan-Souza's full-sized avatar
💭
Shaken, not stirred.

Jhonattan Souza Jhonattan-Souza

💭
Shaken, not stirred.
  • XP Inc
  • Rio de Janeiro
View GitHub Profile
@Jhonattan-Souza
Jhonattan-Souza / appliance_power_monitor.yaml
Created March 17, 2023 19:39
Appliance power monitor blueprint
blueprint:
name: Appliance Power Monitor
description: Monitors the activity of a home appliance based on the power (W) it consumes and triggers actions based on start, running, and stop events. You can use the variables {{ elapsed_time }}, {{ energy_used }}, and {{ event_type }} in all the steps (start, running, and stop).
domain: automation
input:
power_entity:
name: Power Entity
description: Entity representing the power consumption of the appliance.
selector:
entity: