LoRa
Moderators: leecollings, remb0
LoRa
Hi all,
Since LoRa is rolling out in some big places in The Netherlands and the biggest telecom provider also has plans to roll out natively, i was wondering if it would be possible to add support LoRa in Domoticz. Has anyone experimented with LoRa in combination with Domoticz?
It is relativly easy to create a LoRa gateway so it seems. See http://www.pi-in-the-sky.com/index.php? ... ra-gateway
and http://ava.upuaut.net/store/index.php?r ... uct_id=121
I see great advantages!!
Since LoRa is rolling out in some big places in The Netherlands and the biggest telecom provider also has plans to roll out natively, i was wondering if it would be possible to add support LoRa in Domoticz. Has anyone experimented with LoRa in combination with Domoticz?
It is relativly easy to create a LoRa gateway so it seems. See http://www.pi-in-the-sky.com/index.php? ... ra-gateway
and http://ava.upuaut.net/store/index.php?r ... uct_id=121
I see great advantages!!
-
- Posts: 32
- Joined: Sunday 08 March 2015 13:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2.4739
- Contact:
Re: LoRa
Sounds cool. Are there already some consumer products available with these?
Peter
Peter
RaspberryPI
ZWave
RFXtrx433E
ZWave
RFXtrx433E
-
- Posts: 52
- Joined: Wednesday 03 September 2014 22:23
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: LoRa
would be great to make a gateway for the zwave products to the lora/thing network.Eduard wrote:Hi all,
Since LoRa is rolling out in some big places in The Netherlands and the biggest telecom provider also has plans to roll out natively, i was wondering if it would be possible to add support LoRa in Domoticz. Has anyone experimented with LoRa in combination with Domoticz?
It is relativly easy to create a LoRa gateway so it seems. See http://www.pi-in-the-sky.com/index.php? ... ra-gateway
and http://ava.upuaut.net/store/index.php?r ... uct_id=121
I see great advantages!!
Are there lora nodes available in the netherlands? for example sending gps location of an object?
-
- Posts: 32
- Joined: Sunday 08 March 2015 13:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2.4739
- Contact:
Re: LoRa
I saw a report about probably LoRa in the Netherlands just now on Dutch tv. Looks like Amsterdam is fully covered right now
RaspberryPI
ZWave
RFXtrx433E
ZWave
RFXtrx433E
-
- Posts: 1602
- Joined: Friday 18 October 2013 23:33
- Target OS: Raspberry Pi / ODroid
- Domoticz version: BETA
- Location: Arnhem/Nijmegen Nederland
- Contact:
Re: LoRa
What are the options with a lora network for me?
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
-
- Posts: 2
- Joined: Thursday 28 April 2016 22:37
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: LoRa
Consumer products in holland coming in september:
https://shop.thethingsnetwork.com/
https://shop.thethingsnetwork.com/
- gizmocuz
- Posts: 2484
- Joined: Thursday 11 July 2013 18:59
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Top of the world
- Contact:
Re: LoRa
Well, there is the problem with the 'fair usage' policy. ....you are not able to transmit a lot of times, and data should be short
But, it also depends on which network you are connected too.
For instance, if you made a Lora node that transmits a temperature, and using The Things Network, then you can use their MQTT broker service to receive it.
As you do not want to transmit a complete MQTT diagram that Domoticz directly supports (because of the fair use policy, and bandwidth),
you might as well code an in between application that pushes this to Domoticz via virtual sensors.
Going out from domoticz to Lora, should not be to hard, but here again, mind the fair usage policy !
You can create an lora gateway (arduino + dragino shield for example), and send data via serial, the serial data is then transmitted via Lora
Hope this makes some sense ?
But, it also depends on which network you are connected too.
For instance, if you made a Lora node that transmits a temperature, and using The Things Network, then you can use their MQTT broker service to receive it.
As you do not want to transmit a complete MQTT diagram that Domoticz directly supports (because of the fair use policy, and bandwidth),
you might as well code an in between application that pushes this to Domoticz via virtual sensors.
Going out from domoticz to Lora, should not be to hard, but here again, mind the fair usage policy !
You can create an lora gateway (arduino + dragino shield for example), and send data via serial, the serial data is then transmitted via Lora
Hope this makes some sense ?
Quality outlives Quantity!
- Bernd
- Posts: 27
- Joined: Tuesday 04 February 2014 8:44
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2023.1
- Location: The Netherlands, De Wijk
- Contact:
Re: LoRa and The Things Network (TTN)
I would like to re-activate this thread.
I have a sensor, working on the LoRa network TTN (The Things Network). I see the data in my Console page and would like to link that to Domoticz.
My weather station is connected over Weather Underground to Domoticz, so a similar solution for connecting LoRa-TTN nodes should be possible as well.
Before I dig into MQTT myself (it is all brand new to me) I was wondering if there are smart people around here who already solved this and would like to share it.
Thanks,
Bernd
https://www.thethingsnetwork.org/docs/applications/
Raspberry Pi 4 2GB (RPi OS Light)
RFXCOM RFXtrx433E, firmware version = 1025
RFXCOM RFXtrx433E, firmware version = 1025
-
- Posts: 71
- Joined: Tuesday 11 August 2015 17:35
- Target OS: Linux
- Domoticz version: 2025.1
- Location: Netherlands
- Contact:
Re: LoRa and The Things Network (TTN)
I agree with Bernd,
I would very much like to see a sort of virtual hardware device that bridges between the TTN network and Domoticz.
-
- Posts: 197
- Joined: Wednesday 31 May 2017 16:06
- Target OS: NAS (Synology & others)
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: LoRa
Should be nice feature! Most of my sensors do not need high frequence.
If there is any possibility I would use it.
If there is any possibility I would use it.

Synology with Domoticz build (V2024.7) in Docker
- Bernd
- Posts: 27
- Joined: Tuesday 04 February 2014 8:44
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2023.1
- Location: The Netherlands, De Wijk
- Contact:
The Things Network (TTN)
I have looked into what is needed to link TTN to Domoticz.
It will take me another year to puzzle that all out and build an application.
If anybody on this forum has the time and the plan to create an API, based on one of the tools mentioned here https://www.thethingsnetwork.org/docs/applications/, I would be extremely happy.
In the meantime I will try to give it a start, but it is not my peace of cake ....
It will take me another year to puzzle that all out and build an application.
If anybody on this forum has the time and the plan to create an API, based on one of the tools mentioned here https://www.thethingsnetwork.org/docs/applications/, I would be extremely happy.

In the meantime I will try to give it a start, but it is not my peace of cake ....

Raspberry Pi 4 2GB (RPi OS Light)
RFXCOM RFXtrx433E, firmware version = 1025
RFXCOM RFXtrx433E, firmware version = 1025
- kiddigital
- Posts: 438
- Joined: Thursday 10 August 2017 6:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: LoRa
I already started a bit on this topic a few weeks back but time is sparse 
Not rocket science so I hope to get something out over the coming months...
Verzonden vanaf mijn iPhone met Tapatalk

Not rocket science so I hope to get something out over the coming months...
Verzonden vanaf mijn iPhone met Tapatalk
One RPi with Domoticz, RFX433e, aeon labs z-wave plus stick GEN5, ha-bridge 5.4.0 for Alexa, Philips Hue Bridge, Pimoroni Automation Hat
One RPi with Pi foundation standard touch screen to display Dashticz
One RPi with Pi foundation standard touch screen to display Dashticz
- Bernd
- Posts: 27
- Joined: Tuesday 04 February 2014 8:44
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2023.1
- Location: The Netherlands, De Wijk
- Contact:
Re: LoRa
Sounds great.
Which of the API-tools are you considering? Than I can start walking the same road.
It surely isn't rocket science for people, familiair with coding etc.
I have my footsteps in radio engineering, RF, etc. A whole new area at my door, this interfacing issue ...
Which of the API-tools are you considering? Than I can start walking the same road.
It surely isn't rocket science for people, familiair with coding etc.
I have my footsteps in radio engineering, RF, etc. A whole new area at my door, this interfacing issue ...

Raspberry Pi 4 2GB (RPi OS Light)
RFXCOM RFXtrx433E, firmware version = 1025
RFXCOM RFXtrx433E, firmware version = 1025
-
- Posts: 21
- Joined: Friday 06 December 2013 21:07
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: LoRa
Hi,
Have my lora gw up and running here. Sensors are reporting. Commands can be send via Lora.
I assume MQTT connection is the way forward to integrate into Domoticz ?
This works on my domoticz pi, i get the sensor data on the pi.
I'm now looking into how to integrate this with the MQTT gateway of Domoticz, anybody experience with this ?
thx Gerard
Have my lora gw up and running here. Sensors are reporting. Commands can be send via Lora.
I assume MQTT connection is the way forward to integrate into Domoticz ?
Code: Select all
mosquitto_sub -h <Region>.thethings.network -t '+/devices/+/up' -u '<AppID>' -P '<AppKey>' -v
I'm now looking into how to integrate this with the MQTT gateway of Domoticz, anybody experience with this ?
thx Gerard
Raspberry PI, RFX 433E, Omnik Solar, Vair Co2, 1-wire, Qubino, TTN lora, Velux KF200, Kaku, Luftdaten, Meteo
-
- Posts: 71
- Joined: Tuesday 11 August 2015 17:35
- Target OS: Linux
- Domoticz version: 2025.1
- Location: Netherlands
- Contact:
Re: LoRa
I am getting TTN data into my Domoticz in the following way:
First I added the “data storage” integration to my TTN application.
In the integration overview the link: "go to platform " leads you to a customized Swagger page. There I choose “query/{device-ID}” filled in device ID and a time (5 to 15 minutes)
Click “try it out!”.
That gives you a CURL string. This string is the key that you enter in a LUA script running in Domoticz.
In Domoticz I use a LUA script like this:
result in domoticz like this:
https://drive.google.com/file/d/0B8byxN ... p=sharing
First I added the “data storage” integration to my TTN application.
In the integration overview the link: "go to platform " leads you to a customized Swagger page. There I choose “query/{device-ID}” filled in device ID and a time (5 to 15 minutes)
Click “try it out!”.
That gives you a CURL string. This string is the key that you enter in a LUA script running in Domoticz.
In Domoticz I use a LUA script like this:
Code: Select all
local idxVolt = 643 -- virtual sensor for monitoring battary of node
local idxT_H = 642 -- virtual temp/humidity sensor
commandArray = {}
time = os.date("*t")
if ((time.min % 5)==0) then -- Run every 5 minutes.
json = (loadfile "/home/pi/domoticz/scripts/lua/JSON.lua")()
local config = assert(io.popen("curl -X GET etc-etc... between brackets the exact curl string from swagger page..."))
local devices = config:read('*all')
config:close()
local dataLoRa = json:decode(devices)
if (dataLoRa == nil) then -- if no data available then
print ("dataLoRa-1 string is empty ") -- prints this text in the logfile when no data
else -- if data available extract json results from it
local hum = dataLoRa[1].hum -- the [1] selects the first dataset from data storage, this does not need to be the
local temp = dataLoRa[1].temp -- last dataset received in TTN, if ?last=5m selects the time period for the TTN data
local volt = dataLoRa[1].volt / 1000 -- converts millivolt to volt
commandArray[1] = {['UpdateDevice'] = idxVolt .. '|0|' .. volt}
commandArray[2] = {['UpdateDevice'] = idxT_H .. "|0|" .. temp .. ";" .. hum .. ";0"}
print ("data from TTN imported") -- prints this line in log if succesfull
end
end
return commandArray
https://drive.google.com/file/d/0B8byxN ... p=sharing
- kiddigital
- Posts: 438
- Joined: Thursday 10 August 2017 6:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: LoRa
This topic is relative old but maybe relevant again as it is only one of a few topics on Lora and LoraWAN (and The Things Network aka TTN).kiddigital wrote: ↑Friday 23 February 2018 21:21 I already started a bit on this topic a few weeks back but time is sparse
Not rocket science so I hope to get something out over the coming months...
Verzonden vanaf mijn iPhone met Tapatalk
From Domoticz 2020.2 the TTNMQTT module is greatly improved and it is now easy to get your Lora TTN data into Domoticz.
See this Wiki page for more details.
One RPi with Domoticz, RFX433e, aeon labs z-wave plus stick GEN5, ha-bridge 5.4.0 for Alexa, Philips Hue Bridge, Pimoroni Automation Hat
One RPi with Pi foundation standard touch screen to display Dashticz
One RPi with Pi foundation standard touch screen to display Dashticz
-
- Posts: 5
- Joined: Wednesday 27 December 2017 9:41
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: LoRa
Are there any plans to implement sending commands to the Things Network? I would love to be able to set switches in my device from Domoticz.
/Magnus
/Magnus
- kiddigital
- Posts: 438
- Joined: Thursday 10 August 2017 6:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: LoRa
No plans yet, but if you can provide a good example case (preferably including an example data exchange), I can have a look to see if it is easy or not..timberwolf wrote:Are there any plans to implement sending commands to the Things Network? I would love to be able to set switches in my device from Domoticz.
/Magnus
One RPi with Domoticz, RFX433e, aeon labs z-wave plus stick GEN5, ha-bridge 5.4.0 for Alexa, Philips Hue Bridge, Pimoroni Automation Hat
One RPi with Pi foundation standard touch screen to display Dashticz
One RPi with Pi foundation standard touch screen to display Dashticz
- kiddigital
- Posts: 438
- Joined: Thursday 10 August 2017 6:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: LoRa
Since Beta build 13871 (or higher), the TTNMQTT module now connects to the Community Edition (v3) of The Things Network and handles the new message format of v3.
@bernd, @dude, @costo, @timberwolf, stil using LoRa/TTN? Wondering if this v3 works for you as well. Thx for any feedback.
@bernd, @dude, @costo, @timberwolf, stil using LoRa/TTN? Wondering if this v3 works for you as well. Thx for any feedback.
One RPi with Domoticz, RFX433e, aeon labs z-wave plus stick GEN5, ha-bridge 5.4.0 for Alexa, Philips Hue Bridge, Pimoroni Automation Hat
One RPi with Pi foundation standard touch screen to display Dashticz
One RPi with Pi foundation standard touch screen to display Dashticz
Who is online
Users browsing this forum: No registered users and 1 guest