Open psyciknz opened 7 years ago
I think keeping with numeric topics published to the broker is more generic. An end user can then use a higher order system (e.g OH or HA) to translate and action on it. It is also more independent of other languages that Paradox supports.
So you'll see in some of my code I added specific events to topics. Eg zone status to their own topics and a arm/disarm state to a topic.
I've got occasion now, to add a button press as a topic so I can alert on it (son pressed a button which opened the garage door this morning by accident, so I want to get a notification of this event).
I started thinking of ways to do it. It seems you've already got a lot of event defined in the Map files. So I'm thinking of some sort of event to topic translation in the config.
Something like
which replicates this code:
Or the other way we could do it is actually post evetn event to a numeric topic rather than do a text conversion. It means that the events can be assigned to switches or contact items.
Thoughts?