Mecheng70 Posted August 5, 2021 Posted August 5, 2021 Has anyone been able to get the emeter resources into HA? There is a new energy module and I would like to integrate this into it. thoughts?
Mecheng70 Posted August 16, 2021 Author Posted August 16, 2021 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 2
bpwwer Posted August 17, 2021 Posted August 17, 2021 I believe the AMI-NEM_Meter node server will handle (at least some of ) that. 1
Mecheng70 Posted August 17, 2021 Author Posted August 17, 2021 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.
Recommended Posts