Giter Club home page Giter Club logo

Comments (8)

kwkid avatar kwkid commented on September 25, 2024 1

It's a 2-step install...

  1. Install via HACS. Seems like you have done this already.
  2. Go to Settings -> Device and Services -> Add Integration...you should now see this
  3. Install

image

from ontario_energy_board.

mjb83 avatar mjb83 commented on September 25, 2024

Yep, super noob couldn't find it.

Thanks very much for taking the time to answer. Working great!

from ontario_energy_board.

mjb83 avatar mjb83 commented on September 25, 2024

What about mapping the attributes so I can have each of them on their own entity card? Is this possible?

For instance, I have "sensor.alectra_utilities_corporation_brampton_rate_zone_residential_rate" currently set as a gauge card showing off_peak as 'green' zone, mid_peak as 'yellow' zone, and on_peak as 'red' zone. Is there a way for me to show the attribute 'active_peak' as its own entity so I can have it on its own entity card?

Been trying something like this is configuration.yaml but I can't seem to get it to map:

sensor:

  • platform: alectra_utilities

  • platform: template1
    sensors:
    alectra_utilities_active_peak:
    value_template: "{{states.sensor.alectra_utilities_corporation_brampton_rate_zone_residential_rate.attributes.active_peak}}"

from ontario_energy_board.

kwkid avatar kwkid commented on September 25, 2024

for your example try this.... be careful around spacing / indentation

  • platform: template
    sensors:
    alectra_utilities_active_peak:
    value_template: "{{ state_attr('sensor.alectra_utilities_corporation_brampton_rate_zone_residential_rate','active_peak') }}"
    friendly_name: "Brampton Hydro Rate"

1st line: start with dash platform: template (you had template1)
2nd line...align sensors under platform
3rd line...indent 2 spaces for sensor name
4th line...align value_template under alectra..... (double quotes with inner single quotes)
5th line...align friendly_name under alectra....

once your sensor is setup...you reference it as sensor.alectra_utilities_active peak in your Entities card.

drop the platform: alectra_utilities tag...

from ontario_energy_board.

kwkid avatar kwkid commented on September 25, 2024

should be like this...seems the editor in this tool drops the spaces...

image

from ontario_energy_board.

mjb83 avatar mjb83 commented on September 25, 2024

I feel like I need a line above - platform: template

Does the first line need to be the hacs install name? I tried sensor below but I'm getting an error for duplicate key.

#OntarioPowerAttributes
sensor:

  • platform: template
    sensors:
    alectra_utilities_active_peak:
    value_template: "{{ state_attr('sensor.alectra_utilities_corporation_brampton_rate_zone_residential_rate','active_peak') }}"
    friendly_name: "Brampton Hydro Rate"

from ontario_energy_board.

jrfernandes avatar jrfernandes commented on September 25, 2024

This should work:

sensor: 
  - platform: template
    sensors:
      alectra_utilities_active_peak:
        value_template: "{{ state_attr('sensor.alectra_utilities_corporation_brampton_rate_zone_residential_rate', 'active_peak') }}"
        friendly_name: Alectra Active Peak

Line 1 is if you're adding this to your configuration.yaml file directly, as opposed to using a separate YAML file for sensors. If that's the case, skip line 1.
Line 4 is the ID of your new sensor. Make sure it's unique.
Line 5 gets the active peak from the attribute of the OEB sensor. Make sure the sensor ID matches what you have.
Line 6 is just the friendly name for the sensor, it can be anything.

from ontario_energy_board.

kwkid avatar kwkid commented on September 25, 2024

from ontario_energy_board.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.