Command_line switch missing unique_id configuration variable

I have several switches at home leveraging the command_line switch integration and they work well:

However, the integration is missing the “unique_id” configuration variable. Because of this, there are two issues:

  1. I’m not allowed to modify the entry from the Home Assistant UI
  2. I cannot assign the corresponding entities to Areas

Other integrations that I’m using for my DIY devices, like “template cover” for instance, allow to specify a unique_id.

It would be extremely useful if unique_id could be added to the command_line switch integration.

Same with command_line sensor, it would be nice for both of them to add unique_id for yaml configuration so the automatic lovelace dashboard could be used properly with areas.

1 Like