Switch via command line

Hello All,

I am trying to make a switch to open and close my window using an AXA Remote.
It works well in Domoticz with a virtual switch and the commands http://192.168.x.x/open and http://192.168.x.x/close.
After I write the folowing lines in the configurating yaml ther appears a switch in my Entitys but without a unieqe ID

switch:
platform: command_line
switches:
axa_remote:
command_on: “curl -X POST http://192.168.x.x/open
command_off: “curl -X POST http://192.168.x.x/close

What"s wrong?

Try this.

switch:
  - platform: command_line
    switches:
      axa_remote:
        command_on: 'curl -X POST "http://192.168.x.x/open"'
        command_off: 'curl -X POST "http://192.168.x.x/close"'

Thanks butt no difference.

Is it possible for the switch to get a unique id?

What for? Why do you need one?

I want to make a switch in my Gui do I van open/ close the window. And later adding a hygro-censor to automodel the AXA-remote

To automate the AXA-remote.

You do not need a unique-id to do that. Every entity has an entity_id. Use that to automate it, same as normal.

you’re rite. I have it work.