pai icon indicating copy to clipboard operation
pai copied to clipboard

organize entities by index instead of by name

Open sproit opened this issue 2 years ago • 2 comments

In some usages it might make more sense to get PAI to publish to topics such as paradox/states/zones/1/open instead of paradox/states/zones/some_area_name/open as in a Paradox system the zone numbers are decoupled from physical inputs anyway and as such can easily be kept constant over the lifetime of an installation.

A concrete example is the case where the name of a zone changes because the use of the zone changes slightly (Anne's room becomes Bob's room) but the application listening and logging PAI via MQTT wants to keep the same history without too much trouble.

If the name would just be a property, this would be a trivial event to process for the client application.

I can see multiple points in the code where I could start refactoring, but it seems like a rather big architectural change; so, I'd rather ask about it first :) Feasible? Not recommended?

sproit avatar May 31 '23 15:05 sproit

I had a feature request somewhere about it. But I would like to make that optional and not default. HomeAssistant with Auto Discovery is not the only platform that can be used with PAI. Some people use OpenHAB or Homebridge and there are a lot more available. It is not intuitive to have numbers in there when you have to manually configure all bindings yourself.

yozik04 avatar May 31 '23 15:05 yozik04

Yes, fore sure it would be optional. Would it be a lot of effort? If I find the time and get a little guidance I might give it a try.

sproit avatar May 31 '23 17:05 sproit

Duplicate of #181. Will close this one.

yozik04 avatar Mar 30 '24 21:03 yozik04