pai icon indicating copy to clipboard operation
pai copied to clipboard

option to use entity numbers instead of names

Open englishman-hu opened this issue 5 years ago • 4 comments

PAI sends MQTT messages into topics pattern like "paradox/states/zones/name/property". In case of changing the zone labels, it requires the reconfiguration of any systems receiving the messages.

Feature description

It would be useful to have a configuration option, when enabled the mqtt topics look like "paradox/states/zones/zone#/property" (and likewise for other entities as partitions, outputs, etc). Also the entity name could be published in a separate subtopic (e.g. paradox/states/zones/zone#/label")

englishman-hu avatar Oct 11 '20 10:10 englishman-hu

Doable, but how frequently it is needed? We all setup our alarm only once.

yozik04 avatar Oct 13 '20 18:10 yozik04

Well, it happens sometimes that you change a zone or pgm label. (At least I've done it 3-4 times since my alarm was installed.) Every such action will break my (hundreds of lines) OpenHab config. Absolute entity (zone, pgm, partition) numbers normally do not change at all. So I would prefer to build my configuration based on those not-likely-changing parameters rather than probably-changing labels. Having implemented both my suggestions, the integration would follow those label changes automatically without tedious reconfiguration.

englishman-hu avatar Oct 13 '20 20:10 englishman-hu

Valid point. Will think about it.

yozik04 avatar Oct 14 '20 04:10 yozik04

I assume you really need to think about it, because I have sometime, when I have multiple object in one location, I label them in babyware with the same name, as result I see in mqtt only one sensor, instead of multiple.

Bl00d-B0b avatar Feb 09 '21 14:02 Bl00d-B0b