Skip to content

Commit

Permalink
configuration.yaml: anonimize smartevse url (#68)
Browse files Browse the repository at this point in the history
* configuration.yaml: anonimize url of smartevse

* configuration.yaml: anonimize url of smartevse

Co-authored-by: dingo35 <[email protected]>
  • Loading branch information
dingo35 and dingo35 authored Sep 14, 2022
1 parent 75f85ec commit 088f291
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions integrations/home-assistant/configuration.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#lines to integrate SmartEVSE with HASS through native rest-API; no NodeRed or MQTT needed.
#adapt lines 6,145,146 to the url or ip-address of your SmartEVSE

sensor:
- platform: rest
resource: http://SmartEVSE-51446.lan/settings
resource: http://SmartEVSE-xxxxx.lan/settings
name: smartevse
scan_interval: 300
timeout: 20
Expand Down Expand Up @@ -141,6 +142,6 @@ switch:
- platform: command_line
switches:
smartevse_mode_switch:
command_on: "curl -s -X POST http://SmartEVSE-51446.lan/settings?mode=3 -H 'accept: application/json' -H 'Content-Type: application/json' -d '{}'"
command_off: "curl -s -X POST http://SmartEVSE-51446.lan/settings?mode=0 -H 'accept: application/json' -H 'Content-Type: application/json' -d '{}'"
command_on: "curl -s -X POST http://SmartEVSE-xxxxx.lan/settings?mode=3 -H 'accept: application/json' -H 'Content-Type: application/json' -d '{}'"
command_off: "curl -s -X POST http://SmartEVSE-xxxxx.lan/settings?mode=0 -H 'accept: application/json' -H 'Content-Type: application/json' -d '{}'"
value_template: '{{value_json.mode_id == "3"}}'

0 comments on commit 088f291

Please sign in to comment.