Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save sarmbruster/87db83eb6a9de078899b95a682859c8f to your computer and use it in GitHub Desktop.

Select an option

Save sarmbruster/87db83eb6a9de078899b95a682859c8f to your computer and use it in GitHub Desktop.
snippet of evcc.yaml for integration an inverter via HA REST API
- name: my_grid
type: custom
power:
source: http
uri: http://homeassistant.local:8123/api/states/sensor.sofar_haus_grid_power
method: GET
headers:
- Authorization: Bearer <token>
insecure: true
jq: .state|tonumber*(-1)
timeout: 2s
- name: my_pv
type: custom
power:
source: http
uri: http://homeassistant.local:8123/api/states/sensor.total_power_generation
method: GET
headers:
- Authorization: Bearer <token>
insecure: true
jq: .state|tonumber
timeout: 2s
- name: my_battery
type: custom
power:
source: http
uri: http://homeassistant.local:8123/api/states/sensor.sofar_haus_battery_power
method: GET
headers:
- Authorization: Bearer <token>
insecure: true
jq: .state|tonumber*(-1)
timeout: 2s
soc:
source: http
uri: http://homeassistant.local:8123/api/states/sensor.sofar_haus_battery
method: GET
headers:
- Authorization: Bearer <token>
insecure: true
jq: .state|tonumber
timeout: 2s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment