DeerMaximum / Technische-Alternative-CoE

Custom Home Assistant integration to read data from a C.M.I. via CoE
MIT License
11 stars 2 forks source link

Option to delete entities to be sent #30

Closed DeerMaximum closed 8 months ago

DeerMaximum commented 1 year ago

Is your feature request related to a problem? Please describe. Option to delete entities to be sent

Additional context From https://github.com/DeerMaximum/Technische-Alternative-CoE/issues/29#issuecomment-1722196374

TweetsOfNiklas commented 11 months ago

I today tried to change the name of the entity. But that somehow didn't work. Now the Input Boolean doesn't get updated in CMI. I also looked at Debug Logs. But nothing there either. So seems like the change of the renamed entity is not triggering. I now added a new input boolean with a new entity name and got it working now. But an option to manage all the sent values would be very appreciated.

romeocontrol commented 8 months ago

Hello, seems to me this ist the location of information about entities to send. Probably there is a reason to hide it! A lot of data in this file, search for 'COE'. I did NOT TEST it!

.storage/core.config_entries

DeerMaximum commented 8 months ago

@romeocontrol Yes, you can manually delete the values from the entities_to_send list in the file to delete entities. Please note, however, that the CAN channels of all entities can then change, as these are the positions in the list. You should also reduce the slot_count by the number of entities removed.

I would recommend making a backup before you try this out

romeocontrol commented 8 months ago

This did not work reliable for me, seems the data are stored extra somewhere else. The easiest way for me was the threedot menu and delete/Löschen. New configured, the inputs are stored without action. Then you can add the entities to send, which is easy to do. So the stored and actual configuration stays synchron and no errors may appear later. RT