Hi,
I did not change this config, but now I’m getting errors on this switch:
switch:
- platform: command_line
switches:
evse:
friendly_name: EVSE activeren
command_on: "curl http://192.168.2.98/setStatus?active=true"
command_off: "curl http://192.168.2.98/setStatus?active=false"
command_state: "/usr/bin/curl -X GET http://192.168.2.98/getParameters"
value_template: '{{ value_json.list[0].evseState == True}}'
Invalid config for [switch]: required key not provided @ data[‘platform’]. Got None. (See ?, line ?). Please check the docs at https://home-assistant.io/components/switch/
What is wrong with it?