From 088f291e468a8dee73d688e7ac19db858069476e Mon Sep 17 00:00:00 2001 From: dingo35 Date: Wed, 14 Sep 2022 04:39:30 -0400 Subject: [PATCH] configuration.yaml: anonimize smartevse url (#68) * configuration.yaml: anonimize url of smartevse * configuration.yaml: anonimize url of smartevse Co-authored-by: dingo35 --- integrations/home-assistant/configuration.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/integrations/home-assistant/configuration.yaml b/integrations/home-assistant/configuration.yaml index 9ed89ce8..50f7cfbb 100644 --- a/integrations/home-assistant/configuration.yaml +++ b/integrations/home-assistant/configuration.yaml @@ -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 @@ -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"}}'