Created
July 20, 2025 15:21
-
-
Save sarmbruster/87db83eb6a9de078899b95a682859c8f to your computer and use it in GitHub Desktop.
snippet of evcc.yaml for integration an inverter via HA REST API
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - 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