Hello,
I would like to use folowing command_line switch in my configuration.yaml:
switch:
- platform: command_line
switches:
switchKellerWWP:
command_on: "/usr/bin/curl -X GET http:/192.168.88.59/trigger:on:"
command_off: "/usr/bin/curl -X GET http:/192.168.88.59/trigger:off:"
friendly_name: Schalter WWP
But I get always an error in config check:
Invalid config for [switch.command_line]: invalid slug switchKellerWWP (try switchkellerwwp) for dictionary value @ data[‘switches’]. Got OrderedDict([(‘switchKellerWWP’, OrderedDict([(‘command_on’, ‘/usr/bin/curl -X GET http:/192.168.88.59/trigger:on:’), (‘command_off’, ‘/usr/bin/curl -X GET http:/192.168.88.59/trigger:off:’), (‘friendly_name’, ‘Schalter WWP’)]))]). (See ?, line ?).
Can s.b. give me a hint?
Best regards,
Stefan