I last saw the openhab logs and there I found lines like:
[Time] Temperature on Device SomeSensor changed From nnn to mmm
I also saw TCP bindings where I can define that an item should post information on changes.
My question: is it possible to (without configuring every single item) to have a TCP request when something changes?
Like with the logfile - something changes - it gets written to the logfile (Time, device, “channel”, oldValue, newValue)
But instead this information is posted via TCP request?
Or even better - via HTTP request (Web API call / or Rest)…
What about the events.log?
events.log was what I ment.
There I find lines like:
> 2017-02-13 20:49:59.462 [ItemStateChangedEvent ] - MB3 changed from 2.1573498249053955078125 to 2.1539113521575927734375
> 2017-02-13 20:50:00.440 [ItemStateChangedEvent ] - LifxWZ_Color changed from 0,100,68 to 0,0,87
Und such values I want to see on a TCP (or HTTP) connection.
Not with TCP or HTTP without writing Rules. But you can with the MQTT binding configured in Event Bus mode. In this configuration all changes to all Items get published via MQTT. This is the recommended approach to link multiple OH instances together but it also works well to link OH with other services like Dash or Node-RED.