Skip to content

Instantly share code, notes, and snippets.

View sebestenyb's full-sized avatar

Balazs Sebesteny sebestenyb

View GitHub Profile
@sebestenyb
sebestenyb / etrel.yaml
Created January 15, 2023 05:53
Etrel Inch EV charger sensor config for Home Assistant
- platform: command_line
name: "Etrel Inch Login"
command: "curl 'http://nz-tg1-0015-01-1.lan/api/webOperatorLogin' --header 'Accept: application/json' --data-raw 'email={{ states.input_text.etrel_username.state }}&password={{ states.input_text.etrel_password.state }}' --silent"
value_template: "OK"
json_attributes:
- token
- errorCode
- errorMessage
- platform: rest
name: "Etrel Inch Api"