Command-line switch broken

I hade this lines in my configuration.yaml and still has:
switch:

The switch worked really well and activated and deactived recording for my cameras.The urls also worked inside my automations. But after I updated to 2024.8.2 the switch is missing and all automation stopped working. But no config errors, all seems ok but nothing works.

What am I missing here?

What HA version you had installed before upgrading to 2024.8?
I am asking because a syntax for comnand_line was changed many major versions ago. But may be I am missing something.
Probably you will have to change your code for switches according new syntax for command_line. Check docs.

Somewhere in the 2022.x version :slight_smile: But I figured it out yesterday, so the switch now lookes like this:

command_line: