1technophile / OpenMQTTGateway

MQTT gateway for ESP8266 or ESP32 with bidirectional 433mhz/315mhz/868mhz, Infrared communications, BLE, Bluetooth, beacons detection, mi flora, mi jia, LYWSD02, LYWSD03MMC, Mi Scale, TPMS, BBQ thermometer compatibility & LoRa.
https://docs.openmqttgateway.com
GNU General Public License v3.0
3.57k stars 786 forks source link

Garagem Open/Close x LoRA X distance 2km x OpenMQTTGateway #566

Closed lscosta90br closed 4 years ago

lscosta90br commented 4 years ago

HI, I am designing an IoT project to automate my need to open and close an electronic gate that is 2km away. Here are some suggestions that I can use in the project:

How can I employ OpenMQTTGateway in this project?

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like A clear and concise description of what you want to happen.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

1technophile commented 4 years ago

Hi, You could use it like that

Controller ->OMG on ESP32 LORA ->Custom firmware on ESP32 LORA -> Push button ....................Wifi..........................................LORA..............................................................Wire

The custom firmware consist on a program based on modified version of LoraReceiver.ino which trigger a relay or equivalent to simulate the push button of your door.

Added to that I would add a sensor to know the door state: Controller <-OMG on ESP32 LORA <-Custom firmware on ESP32 LORA <- Sensor ....................Wifi..........................................LORA..............................................................Wire

lscosta90br commented 4 years ago

Hi,

There is no ready firmware like the tasmota or esp-home project for Lora, with a web interface just to configure the button and the sensor!

spattinson commented 4 years ago

Can you see if you can build omg and run it as i am getting panic reboot on my ttgo tbeam? My ticket: https://github.com/1technophile/OpenMQTTGateway/issues/564#issue-574317976 You should be able to work over that distance no problem. Range is affected by the lora parameters you use, bandwidth, spreading factor, tx power, coding rate. You should need no special antenna at that range, i tested up to a mile in an urban environment as that range suits my project. Omg should be fine to act as mqtt lora bridge, the other end you need custom firmware which you should find something to base it off on github.you might as well stick to mqtt style messages, just keep them as short as possible to reduce latency and be a good neighbor.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.