podarilo se mi zatim pouze zprovoznit zacatek, vlozenim do config.yaml takto
Kód: Vybrat vše
rest:
- authentication: digest
scan_interval: 10
resource: http://192.168.x.x/ # IP of solax module
payload: "optType=ReadRealTimeData&pwd=xxx" # replace xxxxxxxxxx with password in whole file
method: POST
headers:
Content-Type: "application/x-www-form-urlencoded"
sensor:
- name: "solax_rest_data"
json_attributes:
- sn
- ver
- type
- Data
- Information
value_template: 'OK' # dummy value, not used; avoids the "State max length is 255 characters" error