elad-bar / ha-blueiris

Integration with Blue Iris Video Security Software
179 stars 42 forks source link

Inconsistency between device names and entityID's #200

Open keithfree opened 1 year ago

keithfree commented 1 year ago

This is a pretty minor issue, but since I've been looking at entityID's lately I thought I'd share. When renaming a device in HA, there is a prompt asking whether or not entityID's should also be renamed. This behavior does not work as expected if you rename a device added by this addon immediately after installing it. I believe this is due to inconsistencies between how the addon names devices and entities.

Renaming a device and choosing yes to the entityID rename would work if the bolded texts above matched. For example, if you initially rename the device to " " so they match, and then rename to something else the entityID's would get updated automatically.

There are a number of ways to solution this but my preference would be to just have the addon pull the full camera name and ignore the (). If folks feel that's too restricting, then I'd suggest updating the configuration option and letting the end user choose which name is used (full or short) and then use that for the device name and entityID names.