I’ve been using OpenHAB (1.x) for quite some time now, and I feel that I’ve figured out how to do most stuff, from calculating the sun’s position to chaining rules and timers together. Unfortunately, I’m a little stumped right now, and I’m not even sure what I want is possible (without extreme messy code).
I use XMPP for status information and querying the status of items. For example, an XMPP message is sent to me when a fault condition is detected in the heating or various other systems/appliances. Equally, I can send a ‘command’ (a.k.a. text string) to my (dummy) XMPP item, and it will reply with some information based on the text I sent.
Now, for my own debugging purposes, I would like a couple of things which I will attempt to explain/describe as best I can:
- I would like to be able to toggle a flag somewhere (REST API, XMPP, however) that will send me any “changes” in the state of items via XMPP. E.g. BG_TEMPERATURE changed from 12.3 to 12.4 degrees or FRONT_DOOR changed to OPEN.
I know that I can add a rule for every individual item to achieve this. That would however be detrimental to the rule codebase with my 150+ items. Is there a ‘wildcard’ that I can use to make a rule that when “*” changes, an action is performed?
- It would be handy to be able to enable ‘debug’ on any given item on the fly, equally for XMPP. Basically, I want the same thing as mentioned above, but then for ‘updates’ instead of ‘changes’. E.g. I would sent a command to OH (“send XMPP debug FRONT_DOOR”) and every update would be reported via XMPP. Logically, I would want a ‘debug off’ command, but that’s icing on the cake.
Have I gone totally nuts, or am I missing an easy way of implementing this? Thanks in advance!