Hey all,
I’m trying to create an automation with an action that runs an HTTP request and cannot figure it out. If I enter http://user:[email protected]/axis-cgi/virtualinput/activate.cgi?schemaversion=1&port=1 into a web browser, the network speaker plays the audio file. I tried adding the following command line switch to my configuration.yaml file:
switch:
- platform: command_line
switches:
axis:
friendly_name: 'Axis Speaker'
command_on: 'curl -k "http://user:[email protected]/axis-cgi/virtualinput/activate.cgi?schemaversion=1&port=1"'
command_off: 'curl -k "http://user:[email protected]/axis-cgi/virtualinput/deactivate.cgi?schemaversion=1&port=1"'
Then, I tried to test the “CALL SERVICE” Service switch.turn_on with entity_id: switch.axis but nothing happens. Am I totally off on how this is supposed to work? I’m brand new to this, so please excuse the dumb question.