Skip to content

Instantly share code, notes, and snippets.

@ganey
Last active January 17, 2021 12:48
Show Gist options
  • Save ganey/367248a8170fe6f297dbbe256d17d395 to your computer and use it in GitHub Desktop.
Save ganey/367248a8170fe6f297dbbe256d17d395 to your computer and use it in GitHub Desktop.
Electricity Price HomeAssistant BluePrint
blueprint:
name: Electricity Price Blueprint
description: Call Service based on electricity price
domain: automation
input:
price_sensor:
name: Price Sensor
description: This sensor will be checked for price.
limit_number:
name: Max Price
description: The price limit to call the service
target_service:
name: Service
description: The service to call when the price goes above the limit
trigger:
platform: numeric_state
entity_id: !input price_sensor
above: !input limit_number
action:
service: !input target_service
@ganey
Copy link
Author

ganey commented Jan 17, 2021

I use this with an Octopus Energy pricing sensor to stop/start folding@home / bitcoin mining during peak pricing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment