From 866da9f8a2c6c0dccc224086ec18b1190710d68c Mon Sep 17 00:00:00 2001 From: premultiply <4681172+premultiply@users.noreply.github.com> Date: Fri, 25 Aug 2023 16:31:05 +0200 Subject: [PATCH] Enphase: fix scale and use HTTPS --- templates/definition/meter/enphase.yaml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/templates/definition/meter/enphase.yaml b/templates/definition/meter/enphase.yaml index 32ce9e4ab..54841d27c 100644 --- a/templates/definition/meter/enphase.yaml +++ b/templates/definition/meter/enphase.yaml @@ -23,7 +23,7 @@ render: | {{- if eq .usage "grid" }} power: source: http - uri: http://{{ .host }}/production.json + uri: https://{{ .host }}/production.json method: GET {{- if .token }} auth: @@ -32,12 +32,11 @@ render: | insecure: true {{- end }} jq: .consumption[] | select(.measurementType == "net-consumption").wNow - scale: 0.001 {{- end }} {{- if eq .usage "pv" }} power: source: http - uri: http://{{ .host }}/production.json + uri: https://{{ .host }}/production.json method: GET {{- if .token }} auth: @@ -46,10 +45,9 @@ render: | insecure: true {{- end }} jq: .production[] | select(.measurementType == "production").wNow - scale: 0.001 energy: source: http - uri: http://{{ .host }}/production.json + uri: https://{{ .host }}/production.json method: GET {{- if .token }} auth: @@ -63,7 +61,7 @@ render: | {{- if eq .usage "battery" }} power: source: http - uri: http://{{ .host }}/production.json + uri: https://{{ .host }}/production.json method: GET {{- if .token }} auth: @@ -72,10 +70,9 @@ render: | insecure: true {{- end }} jq: .storage[] | .wNow - scale: 0.001 soc: source: http - uri: http://{{ .host }}/ivp/ensemble/inventory + uri: https://{{ .host }}/ivp/ensemble/inventory method: GET {{- if .token }} auth: