Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FR] Option to use official web API #76

Open
Saentist opened this issue Jan 25, 2024 · 2 comments
Open

[FR] Option to use official web API #76

Saentist opened this issue Jan 25, 2024 · 2 comments

Comments

@Saentist
Copy link

As was suggested by @marcovtwout

It's better to use and official way to GET data and SET parameter's
documentation link
https://www.showdoc.com.cn/262556420217021

Templates by device models can be made also.

And will be more informative then this basic scrape in configuration.yaml with work from lot of time

multiscrape:
  - name: HA scraper
    resource: https://server.growatt.com/singlePage/getPlantData
    scan_interval: 300
    method: POST
    headers:
      Content-Type: application/x-www-form-urlencoded
    payload: 'plantId=xxxxxxx' #plant id number
    sensor:
      - unique_id: 4200TLXE_today
        name: Inv1 day 
        value_template: '{{ value_json.obj.eToday }}'
        unit_of_measurement: kWh 
      - unique_id: 4200TLXE_month
        name: Inv1 Month
        value_template: '{{ value_json.obj.eMonth }}'
        unit_of_measurement: kWh 
      - unique_id: 4200TLXE_total
        name: inv1_tot
        value_template: '{{ value_json.obj.eTotal }}'
        unit_of_measurement: kWh 
        device_class: energy
        state_class: total_increasing
      - unique_id: 4200TLXE_now
        name: inv1_realtime
        value_template: '{{ value_json.obj.pac }}'
        unit_of_measurement: kW 
@simonf2004
Copy link

hello, if i understand it correctly this is only usefull for installers or distibutors isnt it? I cant seem to create an account on oss.growatt.com if i am not either of those two. Is there a way around this? thanks

@Saentist
Copy link
Author

End user portal
server.growatt.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants