kukulich / home-assistant-jablotron100

Home Assistant custom component for JABLOTRON 100+ alarm system
MIT License
67 stars 24 forks source link

Possibility to change sensor type #14

Closed tpazderka closed 3 years ago

tpazderka commented 3 years ago

Is there any possibility to change the sensor type? I have missed a row and added one device as motion detector instead of window detector and now it has wrong icon/states.

I have tried to change that it the entity_registry configuration but the changes do not take effect and are always overwritten.

kukulich commented 3 years ago

@tpazderka You can change it in .storage/.config.entries (or something like this)

tpazderka commented 3 years ago

Tried that, but the class changes back on server start. I have tried to change the class on running system and even on stopped system, but no luck.

kukulich commented 3 years ago

@tpazderka You probably modified something else. There’s configuration of the integration in the file mentioned above.

tpazderka commented 3 years ago

OK, finally managed to find the correct location... I was changing the class of the device in .storage/core.entity_registry and not in .storage/core.config_entries.