Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shorten entity IDs #14

Open
Gifford47 opened this issue Jan 4, 2025 · 1 comment
Open

shorten entity IDs #14

Gifford47 opened this issue Jan 4, 2025 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@Gifford47
Copy link

The current entity IDs are very long, f.e.: switch.picam2ctrl_fullpageos_picamera2_picam2ctrl_fullpageos_awbenable

More convenient ID would be: switch.picam2ctrl_fullpageos_awbenable

@irimitenkan
Copy link
Owner

The current entity IDs are very long, f.e.: switch.picam2ctrl_fullpageos_picamera2_picam2ctrl_fullpageos_awbenable

More convenient ID would be: switch.picam2ctrl_fullpageos_awbenable

Mmh, this is a quite strange entity id for AWBEnable

  • It seems your hostname is 'fullpageos' ?
  • switch is not used in entity ids but only for HA discovery topics.

The typical ID is picam2ctrl.<HOSTNAME>.PiCamera2 picam2ctrl.<HOSTNAME>.AwbEnable and generated by HA internally derived from the MQTT device's name + state topic id as I see.

I decided to use the <'HOSTNAME'> because unique identifiers for the device and the topic id are required if more than one webcam is available. Only the PiCamera2 part is redundant.

But it is already planned to setup the topic prefix "picam2ctrl" & "" in the config.json file to be more flexible if only one webcam is available.

@irimitenkan irimitenkan self-assigned this Jan 6, 2025
@irimitenkan irimitenkan added the enhancement New feature or request label Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants