Skip to content

Instantly share code, notes, and snippets.

@samuel99
Created February 22, 2022 18:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samuel99/2eb1c98136c725baa93b7059fc3321b4 to your computer and use it in GitHub Desktop.
Save samuel99/2eb1c98136c725baa93b7059fc3321b4 to your computer and use it in GitHub Desktop.
sensor:
- platform: rest
scan_interval: 120
resource: https://eu5.fusionsolar.huawei.com/rest/pvms/web/kiosk/v1/station-kiosk-file?kk=SECRETCODE
method: GET
verify_ssl: false
unit_of_measurement: "kW"
name: solpaneler
value_template: >-
{% set d = value_json.data|replace('"', '"')|from_json %}
{{ d.realKpi.realTimePower }}
timeout: 45
device_class: power
headers:
Content-Type: application/json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment