Jump to content

Energy into HA from ISY


Recommended Posts

  • 2 weeks later...
Posted

Here is how to do this:

Both of these go into the configuration.yaml

sensor:
  #ISY Main Meter
  - platform: rest
    name: isy_meter
    resource: http://172.16.5.251/rest/emeter/metering/
    json_attributes_path: "$.AMIMetering"
    username: !secret isy994_username
    password: !secret isy994_password
    authentication: basic
    headers:
      Content-Type: text/xml
    scan_interval: 30
    value_template: 'OK'
    json_attributes:
      - "currSumDelivered"
      - "currSumReceived"
      - "maxDemandDelivered"
      - "maxDemandReceived"
      - "dftSummation"
      - "dailyFreezeTime"
      - "readingSnapshotTime"
      - "maxDemandDeliveredTime"
      - "maxDemandReceivedTime"
      - "maxCurrTier1Delivered"
      - "maxCurrTier1Received"
      - "maxCurrTier2Received"
      - "maxCurrTier3Received"
      - "maxCurrTier4Received"
      - "maxCurrTier5Received"
      - "maxCurrTier6Received"
      - "maxCurrTier7Received"
      - "instantaneousDemand"
      - "currDayDelivered"
      - "currDayReceived"
      - "previousDayDelivered"
      - "previousDayReceived"
      - "currParProfileTimeDelivered"
      - "currParProfileTimeReceived"
      - "currParProfileIntDelivered"
      - "currParProfileIntReceived"
      - "lastIntervalDataValue"
      - "lastIntervalDataEndTime"
      - "deltaEnergyDelivered"


 

sensor:
  - platform: template
    sensors:
      main_meter_power:
        device_class: power
        friendly_name: "Main Meter"
        unit_of_measurement: 'kW'
        value_template: '{{ (states.sensor.isy_meter.attributes["instantaneousDemand"]["#text"] | int) / 1000 }}'
        icon_template: mdi:mdi-current-ac
      main_meter_energy_today:
        device_class: energy
        friendly_name: "Energy Imported Today"
        unit_of_measurement: 'Wh'
        value_template: '{{ (states.sensor.isy_meter.attributes["currDayDelivered"]["#text"] | int)  }}'    
        icon_template: mdi:mdi-current-ac
      main_meter_energy_yesterday:
        device_class: energy
        friendly_name: "Energy Imported Yesterday"
        unit_of_measurement: 'Wh'
        value_template: '{{ (states.sensor.isy_meter.attributes["currDayReceived"]["#text"] | int)  }}'    
        icon_template: mdi:mdi-current-ac

 

  • Like 2
Posted
25 minutes ago, bpwwer said:

I believe the AMI-NEM_Meter node server will handle (at least some of ) that.

I wasn't aware that the node server is supported in HA.  

Guest
This topic is now closed to further replies.

  • Recently Browsing

    • No registered users viewing this page.
  • Who's Online (See full list)

    • There are no registered users currently online
  • Forum Statistics

    • Total Topics
      37k
    • Total Posts
      371.4k
×
×
  • Create New...