The problem was always that this is a pretty messy setup and until recently I was not happy with the way one is able to collect data points in Loxone. I have tried 2 options:
1. I wrote a script that pulled in Loxone stat files via FTP and imported them into InfluxDB. This is reliable (well - as reliable as the Miniserver and SD card) but there was always a time lag in importing the files and one is restricted to the Loxone statistics gathering limits.
2. One can use Loxone UDP logging (or SNMP traps or other such things) and a script to receive these events and munge the data (Loxone insists on putting timestamps on their UDP logging for example) before putting in InfluxDB. The problem with this is that it requires some kind of proxy script and UDP transmission is not guaranteed. Loxone does not have a periodic send on UDP logging either, so if you happen to be rebooting your InfluxDB instance when the heating turns off for example, well, it will miss that 'off' data point sent from Loxone - and as heating turns on and off infrequently (for us at least) means that it can be 'stuck' in the wrong state for many hours, days or even longer.
So I wasn't really happy with either of these, and other people weren't happy with them either because of the scripting skills required to set this up.
However, I recently discovered ioBroker as a much better alternative to Home Assistant when it comes to acting as a Z-Wave gateway.
ioBroker happens to have native Loxone and InfluxDB modules (they are called 'adapters') that run 'out of the box' with zero scripting skills required. Just install the package, configure via the web interface and you're good to go.
This is not only better for the non-technical (no scripting required) but it is more robust than UDP Logging and with no lag. Best of all worlds!
How this works is that ioBroker connects to Loxone and uses the web socket communications to pull data points. Ie. Loxone thinks ioBroker is a user logged in to it's web interface and sends updates of everything that user has access to instantly down this web socket. This is more reliable than UDP because if you happen to reboot your ioBroker instance while Loxone changes a data point, that point will be read and updated upon ioBroker re-connecting to Loxone, so it will never get 'stuck'. If you happen to have InfluxDB on a separate box and that is rebooted, ioBroker buffers it's writes and sends them when InfluxDB comes back. Moreover, the ioBroker InfluxDB adapter can be configured to send data points periodically whether it thinks they have changed or not - meaning worst case, even if InfluxDB misses points, things should only get 'stuck' for that short period between re-sending points.
The ioBroker InfluxDB adapter currently allows one to give each reading an 'Alias' which is a nice name (like 'KitchenTemperature') that is easily found in Grafana. Their measurements/tag config is a little weak but the Alias thing works fine and I might fix the tags thing for them ;)
Anyhow, so yes, I mention this to point out it's now possible to get nice graphs out of your Loxone system without any scripting and just some web interface configuration. I know people will be pleased to hear this as I was somewhat berated when I first brought this up and didn't want to do much to help with scripts ;)
If there's demand, I could write a small 'howto' page on the Wiki to describe the setup steps in a bit more detail. Just let me know.
Cheers,
Robin
This is what I just did with UDP.
SQL is more robust and extensive than influx, hence my interest there.
--
You received this message because you are subscribed to the Google Groups "Loxone English" group.
To unsubscribe from this group and stop receiving emails from it, send an email to loxone-englis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/loxone-english/61c9dcfd-a7b1-4680-9fa4-6bffc8d629dd%40googlegroups.com.
Where are you physically running ioBroker, InfluxDB, and Grafana? Do you have these running locally or are any of them sat in the cloud?
Also, wondering if ioBroker allows for triggering events in Loxone and not just reading values?
i.e. to integrate with ecosystems that Loxone doesn't support directly?
--
You received this message because you are subscribed to the Google Groups "Loxone English" group.
To unsubscribe from this group and stop receiving emails from it, send an email to loxone-englis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/loxone-english/1796daeb-957a-4baa-9b37-1fbebd54cfc1%40googlegroups.com.
Out of interest, what data are you putting into InfluxDB and what sensors are you using? Is it primarily temperatures at different locations in the house via one-wire sensors and/or room sensors?
What am I missing?
--
You received this message because you are subscribed to the Google Groups "Loxone English" group.
To unsubscribe from this group and stop receiving emails from it, send an email to loxone-englis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/loxone-english/61c9dcfd-a7b1-4680-9fa4-6bffc8d629dd%40googlegroups.com.
I am using this node script by Andras (also active here): https://github.com/andrasg/loxone-influx - it is based on your statistics importer script.
My plan is to start building the Iobroker piece parallel to loxone (both still talk to KNX) but over time migrate iobroker to become the broker layer for everything.Do you foresee any issues/challenges with this?
can you share how you do the prediction ?
Is this the alternative using Grafana?
Have you written anything on how to setup the Grafana dashboard? Mainly, how to get influxdb regularly updated with data from Loxone?
I am using this node script by Andras (also active here): https://github.com/andrasg/loxone-influx - it is based on your statistics importer script.
I have it running as a docker instance, so far no issues with reliability but then again it is only running for a week now.
The advantage is flexibility in the tagging setup, so if you plan to improve that for IOBroker, it seems like a perfect solution.Tom
On Sat, Feb 22, 2020 at 7:24 AM Rob_in <rain...@gmail.com> wrote:
On Friday, 21 February 2020 10:39:56 UTC+1, Jan De Bock wrote:--This is what I just did with UDP.'Robust' implies never using UDP. In the process I describe Loxone -> ioBroker is TCP websockets and ioBroker -> InfluxDB is also via TCP.SQL is more robust and extensive than influx, hence my interest there.Not going to get into the whole debate about which time series database is best, but if you want to use PostgreSQL knock yourself out.Robin
You received this message because you are subscribed to the Google Groups "Loxone English" group.
To unsubscribe from this group and stop receiving emails from it, send an email to loxone-...@googlegroups.com.
Wow, nice to see someone actually got use of it. I really didn't want to add iobroker and sorts, that's why I turned to this websocket based solution and improved it. Recently, I have moved it to a docker container and running on a Pi. I am about to add some buffering to it, so if influx goes down for few minutes, no data points are lost.
I have this script running for more than a year now, without any issues.
On Tuesday, February 25, 2020 at 8:33:18 AM UTC+1, Tom B wrote:I am using this node script by Andras (also active here): https://github.com/andrasg/loxone-influx - it is based on your statistics importer script.
I have it running as a docker instance, so far no issues with reliability but then again it is only running for a week now.
The advantage is flexibility in the tagging setup, so if you plan to improve that for IOBroker, it seems like a perfect solution.TomOn Sat, Feb 22, 2020 at 7:24 AM Rob_in <rain...@gmail.com> wrote:On Friday, 21 February 2020 10:39:56 UTC+1, Jan De Bock wrote:--This is what I just did with UDP.'Robust' implies never using UDP. In the process I describe Loxone -> ioBroker is TCP websockets and ioBroker -> InfluxDB is also via TCP.SQL is more robust and extensive than influx, hence my interest there.Not going to get into the whole debate about which time series database is best, but if you want to use PostgreSQL knock yourself out.Robin
You received this message because you are subscribed to the Google Groups "Loxone English" group.
To unsubscribe from this group and stop receiving emails from it, send an email to loxone-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/loxone-english/61c9dcfd-a7b1-4680-9fa4-6bffc8d629dd%40googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "Loxone English" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/loxone-english/q8_9Uh-Qvak/unsubscribe.
To unsubscribe from this group and all its topics, send an email to loxone-englis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/loxone-english/647054ec-4f19-4f7a-b3a4-c817941b310e%40googlegroups.com.
Andras,
To unsubscribe from this group and all its topics, send an email to loxone-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/loxone-english/647054ec-4f19-4f7a-b3a4-c817941b310e%40googlegroups.com.
Andras,
To unsubscribe from this group and all its topics, send an email to loxone-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/loxone-english/647054ec-4f19-4f7a-b3a4-c817941b310e%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Loxone English" group.
To unsubscribe from this group and stop receiving emails from it, send an email to loxone-englis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/loxone-english/60109d17-c657-42db-93fd-af7fecb67cdc%40googlegroups.com.
I've tried that too, but seems it recreates itself after every restart of Loxone adapter instance.
--
You received this message because you are subscribed to the Google Groups "Loxone English" group.
To unsubscribe from this group and stop receiving emails from it, send an email to loxone-englis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/loxone-english/e298e6d7-a816-48ec-830f-b9c33401cd43%40googlegroups.com.
- dedicated ioBroker user- Stats group with ioBroker user only- access only to api (webinterface/apps) and single Humidity data for that Stats group- no access to anything else- denied access to Weather server and Weather dataAnd I still get hundreds of weather data via API.
Robin
Hi Rob - would you mind sharing the grafana dashboard you made?
2. One can use Loxone UDP logging (or SNMP traps or other such things) and a script to receive these events and munge the data (Loxone insists on putting timestamps on their UDP logging for example) before putting in InfluxDB. The problem with this is that it requires some kind of proxy script
and UDP transmission is not guaranteed.
Loxone does not have a periodic send on UDP logging either