Exposing Leafy Energy prices as sensors in Home Assistant
In the Leafy Energy demo material you show how to expose dynamic prices as sensor entities. This makes it very easy to build automations based on pricing.
Price sensors in YAML
A fictional example of what a sensor definition might look like:
sensor:
- platform: leafy_energy
site_id: home_001
resources:
- current_price
- tomorrow_min_price
- tomorrow_max_price
Using template sensors
- Determine the cheapest three hours for tomorrow and create a template sensor holding those time slots.
- Turn a boolean entity on when price drops below a defined threshold.
These sensors are the foundation for almost all Leafy Energy demo automations in Home Assistant.
Comments
0 comments
Please sign in to leave a comment.