Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LoRa / LoRaWan support #4039

Closed
gabrielklein opened this issue Oct 12, 2018 · 27 comments
Closed

LoRa / LoRaWan support #4039

gabrielklein opened this issue Oct 12, 2018 · 27 comments
Labels
feature request (devs?) Action - awaiting response from developers

Comments

@gabrielklein
Copy link

Have you look for this feature in other issues and in the wiki?
Yes

Is your feature request related to a problem? Please describe.
No

Describe the solution you'd like
A way to be able to communicate with a sonoff (or custom board) using the LoRa communication channel.

Example:
https://www.aliexpress.com/item/ESP32-OLED-Display-Bluetooth-WIFI-Lora-32-Module-IOT-Development-Board-module/32914396758.html

Describe alternatives you've considered
Doing everything myself. :)

Additional context
None

(Please, remember to close the issue when the problem has been addressed)

@ascillato
Copy link
Contributor

ascillato commented Oct 12, 2018

Hi,

The actual scope of Tasmota is Home Automation by wifi and mqtt. How LoRa fits there?

What are your ideas and use case for a sonoff device with LoRa extra hardware?

(about your example device, remember that Tasmota of this repository doesn't work on ESP32 devices)

@ascillato2 ascillato2 added the question Type - Asking for Information label Oct 12, 2018
@ascillato
Copy link
Contributor

I add this just for reference.

Those are SPI devices. The data sent/received is similar to the RF Bridge
LoRa (LongRange) is a IoT communication channel intended for very low consumption sensors in a wide area (like a field or a city)

Library: https://github.com/weustace/LoRaLib
Datasheet: http://www.hoperf.com/upload/rf/RFM95_96_97_98W.pdf
Devices:

@ascillato2 ascillato2 added the awaiting feedback Action - Waiting for response or more information label Oct 12, 2018
@Frogmore42
Copy link
Contributor

A LoRa to MQTT gateway makes sense and a LoRa sensor makes sense, but it seems like a sensor that has both makes much less.

There appears to be an existing project for the gateway
https://www.loraserver.io/

If you want a sensor, this might help
https://github.com/sandeepmistry/arduino-LoRa

@ascillato
Copy link
Contributor

@gabrielklein

What are your ideas and use case for a sonoff device with LoRa extra hardware?

@ascillato
Copy link
Contributor

@gabrielklein

What are the features of Tasmota that you want to use along with LoRa extra hardware in a sonoff device?

@gabrielklein
Copy link
Author

Hi, I have a few SX12xx board.

I have some birds but they are too far from my house and internet connection.

I want to have a few sensors:

  • Temperature of water
  • Temperature of the air
  • Water heater
  • Air heater
  • Weight of Seeds

Some rules:

  • Switch on "water heater" if temperature is <0°c
  • Switch on "air heater" if temperature is <0°c
  • Switch on / off some light
  • Report temperature and energy usage
  • Report weight of seeds (alert if too low)

@ascillato2 ascillato2 added enhancement Type - Enhancement that will be worked on and removed awaiting feedback Action - Waiting for response or more information question Type - Asking for Information labels Oct 13, 2018
@ascillato2
Copy link
Collaborator

So, your idea is that Tasmota reads LoRa as a bridge to mqtt like the sonoff bridge. Nice.

@hamwong
Copy link

hamwong commented Oct 17, 2018

I think beside WIFI is not a bad choice, after 1.5 years using on IOT at home, I found IOT on WIFI is a problem when item more than 6x,

@jimmys01
Copy link

I am also very interested to tasmota supporting RFM69 and/or LoRa radios. This is huge for battery powered sensors that only report once every 10 minutes or once per day etc.

@Frogmore42
Copy link
Contributor

I am confused by this request. Tasmota runs on the esp8266. The esp8266 has a WiFi radio that uses a lot of power. If low power and battery operated is what you want/need, look at lowpowerlabs
https://lowpowerlab.com/guide/moteino/
There you will find things are suitable for use from batteries.

The reason people choose the esp8266 is because it has WiFi. Even if you turn off the radio and never use it, the chip will use too much power for long battery life. Tasmota is not designed to be battery friendly. There are things that can be done to minimize consumption, but it will not be easy.

@jimmys01
Copy link

The esp8266 will act like a gateway for the LoRa. The nodes dont matter, they can be esp8266 or arduino based. The arduino based are perfect for battery life. The esp8266 node can also be very usefull for deployments that have power available but no internet access near by. Imagine it like a sonoff RF but for distances up to several kilometers

@Jason2866
Copy link
Collaborator

So for Tasmota there would be a driver needed for a LoRa receiver to switch relais on / off?
So why not build an simple LoRa receiver device that triggers a GPIO from Sonoff to switch it?
IMHO overkill (needed resources) for Tasmota would be if a LoRa Transceiver should be added to a Tasmota device to transmit values from Sensors connected to.
For this use cases there are LoRa Sensors available.
@jimmys01 Your comparison with sonoff RF is just like that. Just receiving signal to switch not more.

@Cloolalang
Copy link

https://github.com/1technophile/OpenMQTTGateway/releases

@Jason2866
Copy link
Collaborator

Jason2866 commented May 21, 2019

Since there is a possibility to add a LoRa 2 mqtt gateway this feature request can be closed?
Nobody is working on implementing a PoC for Tasmota

@gemu2015
Copy link
Contributor

gemu2015 commented Aug 7, 2019

@ascillato
Copy link
Contributor

@gemu2015

Cool !!!

Please, can you make a pull request? Thanks.

@meingraham
Copy link
Collaborator

@gabrielklein - are you still interested?

@gemu2015 you may also want to post a message in the Tasmota Discord server. Andreas Spiess (the guy with the Swiss accent) seems to be a heavy LoRa user... and he uses Tasmota. Maybe he'd be interested.

Mike

@gemu2015
Copy link
Contributor

gemu2015 commented Aug 7, 2019

@ascillato
i may pr the ibeacon driver. it is extremely simple and the hardware is easy to adapt and it works stable. (only rec,trx ) it claims the serial port.
you need a hm17 ble4 module and the above ble 4 beacons.

the moritz driver is not complete yet and it is extremely complicated. the max devices are bidirectional and have to be paired and messages have to be acknowledged.
what works is automatic pairing of all devices (when in learning mode) and reporting all states.
this is complete for pushbuttons and window contacts. (they only report states)
but the thermostats are much more complex. (what works is setting the thermostat temperatures by mqtt command)
however the thermostats have a bunch of presets that must still be implemented
(e.g. time table of preconfigured temperatures for every weekday)
i am working on a web ui and mqtt for that.
also this driver needs a 24c256 i2c eeprom to store all the data needed for up to (50 devices)
the CC1101 is connected via hardware spi.
the max solution is a proprietary solution even the protocol had to be reverse engineered.
the CC1101 driver for the max devices comes from Rudolf Koenigs culfw project.

@meingraham
i have currently no solution for other lora sensors that are needed by @gabrielklein (temperature, etc or even actors, it would also be extremely important that at least actors should be bidirectional)

@gabrielklein
Copy link
Author

@meingraham I have too many interests and not enough time :)

Tasmota as LoRa Gateway: I'm looking more in a LoRaWan solution these days. The price of gateways goes down.
Tasmota as LoRa client: Using LoRa instead of WiFi to send data definitely makes sense. As an example a Pow2 module could send data every x minutes over LoRa.

@gemu2015 Thank you for the beacons, I should receive them in 2-3 weeks...

@ascillato2
Copy link
Collaborator

Closing this issue as initial support has been added by @gemu2015 on PR #3309.

Thanks. 👍


Support Information (Guide)

See Wiki for more information.
See FAQ for common questions/answers and links if none of your question is in the list.
See Chat for more user experience.
See Community for forum.
See Code of Conduct

@MarkTyr
Copy link

MarkTyr commented Jan 14, 2022

How can i use the Lora support in Tasmota?

MQTT -> ESP32 with Tasmota -> LORA -> ESP32 with Tasmota -> MQTT

@ascillato
Copy link
Contributor

ascillato commented Jan 14, 2022

Hi, there was a confusion in this issue. The PR linked is not Lora. It is just the support for a sensor.

So far, LORA Gateways are not supported in Tasmota. Sorry. Any PR is very welcome.

@ascillato2 ascillato2 added feature request (devs?) Action - awaiting response from developers and removed enhancement Type - Enhancement that will be worked on labels Jan 14, 2022
@mcarbonneaux
Copy link

mcarbonneaux commented Sep 18, 2022

@c64emulator
Copy link

Hi, there was a confusion in this issue. The PR linked is not Lora. It is just the support for a sensor.

So far, LORA Gateways are not supported in Tasmota. Sorry. Any PR is very welcome.

This feature request is closed? Should this be reopened?

@barbudor
Copy link
Contributor

Hi
For feature requests, the suggested process is now to open a Discussion
So would be cool if you start a new Discussion and describe your use case.
If we can grab use cases and come to spec the feature, someone might pickup the task

@c64emulator
Copy link

Here comes my use case for a ESP32 with LoRa (e.g. HELTEC LoRa32) on tasmota:
I want to read the energy consumption in our house. In germany (where we leave) the good old ferrari counters are replaced with new digital electricity meters. This meters have a IR interface with some specific protocol (sml). Tasmota provides support for this protocol. So far so good...
BUT: This meters are placed somewhere in the house, where WiFi is not available (cellar, roof) or in metal cabinets where rf does not come through. Another use case: a friend is living in a neighbourhood, where the meters of all houses are located in a room 200m from its own house.
Therefore I would give LoRa a chance.
My idea:
electricity meter with IR sender -> Ir diode head -> ESP32 with Tasmota (for decoding) -> LoRA (for transmission) -> ESP32 with Tasmota (as receiver) -> MQTT

@barbudor
Copy link
Contributor

Don't duplicate posts
The suggestion was to open a new discussion, not to spread the same text across multiple threads

Repository owner locked as spam and limited conversation to collaborators Oct 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature request (devs?) Action - awaiting response from developers
Projects
None yet
Development

No branches or pull requests