Home Assistant Graphing Question

I was able to integrate the sensors in home assistant by placing the code below in my configuration.yaml. I was able to also display the 12 sensors using the history graph card in Home Assistant.

The next thing I want to do is to display a bar graph of my total daily power consumption and the total consumption a couple of channels. How do I go about doing this?

Here’s the code I added in my configuration.yaml:

sensor:
  - platform: rest
    name: IoTaWatt
    json_attributes:
      - inputs
      - outputs
    resource: http://192.168.50.40/status?inputs=yes&outputs=yes
    value_template: '{{ value_json.inputs[0].Vrms }}v'
    scan_interval: 5

  - platform: template
    sensors:
      iotawatt_total:
        friendly_name_template: '{{ states.sensor.iotawatt.attributes["outputs"][0].name }}'
        unit_of_measurement: 'Watts'
        value_template: '{{ states.sensor.iotawatt.attributes["outputs"][0].value }}'    
      iotawatt_01:
        friendly_name_template: 'Main 1'
        unit_of_measurement: 'Watts'
        value_template: '{{ states.sensor.iotawatt.attributes["inputs"][1].Watts }}'
      iotawatt_02:
        friendly_name_template: 'Main 2'
        unit_of_measurement: 'Watts'
        value_template: '{{ states.sensor.iotawatt.attributes["inputs"][2].Watts }}'
      iotawatt_03:
        friendly_name_template: 'Landscape Lights'
        unit_of_measurement: 'Watts'
        value_template: '{{ states.sensor.iotawatt.attributes["inputs"][3].Watts }}'
      iotawatt_04:
        friendly_name_template: 'Kates Bedroom'
        unit_of_measurement: 'Watts'
        value_template: '{{ states.sensor.iotawatt.attributes["inputs"][4].Watts }}'
      iotawatt_05:
        friendly_name_template: 'Office & Andrews Bedroom'
        unit_of_measurement: 'Watts'
        value_template: '{{ states.sensor.iotawatt.attributes["inputs"][5].Watts }}'
      iotawatt_06:
        friendly_name_template: 'Downhall, Foyer, Stair, Front Porch'
        unit_of_measurement: 'Watts'
        value_template: '{{ states.sensor.iotawatt.attributes["inputs"][6].Watts }}'
      iotawatt_07:
        friendly_name_template: 'Mudroom, Garage, Family, Porch, Nook'
        unit_of_measurement: 'Watts'
        value_template: '{{ states.sensor.iotawatt.attributes["inputs"][7].Watts }}'
      iotawatt_08:
        friendly_name_template: 'Crawl Space Furnace'
        unit_of_measurement: 'Watts'
        value_template: '{{ states.sensor.iotawatt.attributes["inputs"][8].Watts }}'
      iotawatt_09:
        friendly_name_template: 'Dishwasher'
        unit_of_measurement: 'Watts'
        value_template: '{{ states.sensor.iotawatt.attributes["inputs"][9].Watts }}'
      iotawatt_10:
        friendly_name_template: 'Washer'
        unit_of_measurement: 'Watts'
        value_template: '{{ states.sensor.iotawatt.attributes["inputs"][10].Watts }}'
      iotawatt_11:
        friendly_name_template: 'Kitchen & Dehumidifier'
        unit_of_measurement: 'Watts'
        value_template: '{{ states.sensor.iotawatt.attributes["inputs"][11].Watts }}'
      iotawatt_12:
        friendly_name_template: 'Master Bedroom'
        unit_of_measurement: 'Watts'
        value_template: '{{ states.sensor.iotawatt.attributes["inputs"][12].Watts }}'
      iotawatt_13:
        friendly_name_template: 'Refrigerator'
        unit_of_measurement: 'Watts'
        value_template: '{{ states.sensor.iotawatt.attributes["inputs"][13].Watts }}'
      iotawatt_14:
        friendly_name_template: 'Attic Furnace'
        unit_of_measurement: 'Watts'
        value_template: '{{ states.sensor.iotawatt.attributes["inputs"][14].Watts }}'

Hopefully, someone with HA knowledge will help you out. What you want to do is trivial with Graph+, and there will be an embed option in the next release.

What will the embed option enable me to do? Thanks!

You can display a saved graph in a web frame. Docs here.