Odianosen25 / Monitor-App

Appdaemon App for Andrew's Monitor Presence Detection System
74 stars 9 forks source link

Ability to rename created binary entities #50

Open skynet01 opened 4 years ago

skynet01 commented 4 years ago

Would be nice to rename binary entities. Right now there is no way to do it, so if you made the mistake during initial set up you are out of luck.

Proposed solutions:

known_devices:

Odianosen25 commented 4 years ago

Right now there is no way to do it, so if you made the mistake during initial set up you are out of luck.

Actually if you change the name used to setup the MAC address, it should reflect the changes. The issue is, I do use these names to generate the entities and not the MAC. Could add labels as you said, but will sure be more complicated unless I am missing something. Will see what I can do

skynet01 commented 4 years ago

I tried changing the name that was used to setup the MAC address but the entities didn't change. Maybe i need to delete some sensors from HA?

Odianosen25 commented 4 years ago

Yes I thinking deleting the sensors is the right thing, and the app should actually do the clean up for you. I will add that to the list. So if the app sees a new device with MAC, it checks if there are other entities with the same MAC and cleans them out, then loads up the new one.

skynet01 commented 4 years ago

Yeah exactly and deleting as well, so if I remove a mac address from config it should remove it from the nodes as well. That way adding, removing, and renaming can be all done from Monitor App config file (or UI in the future). Right now I don't even know how to remove the created entities from home assistant :)