esphome / feature-requests

ESPHome Feature Request Tracker
https://esphome.io/
404 stars 26 forks source link

SIM7080G #1379

Open stlnick2 opened 2 years ago

stlnick2 commented 2 years ago

Describe the problem you have/What new integration you would like

Id like to use the sim7080g similar to the sim800 but through mqtt (or another way to control and see status through home assistant) instead of text also 3g is depreciated.

Please describe your use case for this integration and alternatives you've tried:

I'm wanting to do automotive integrations with it. Trigger aftermarket remote start, battery voltage, temperature sensor, has built in GPS too...

Additional context

I have a AT&T LTE-M sim installed and have registered on the network as far as i can tell. I have not gotten any further. Reference material I've been using https://www.waveshare.com/wiki/SIM7080G_Cat-M/NB-IoT_HAT

mist commented 3 months ago

A very interesting feature of the SIM7000 series is direct MQTT support. If I understand it correctly the MQTT connection can be directly built by the SIM7000-modem, therefore no hassle with different internet connections is needed.

Publishing seems to be as easy as issuing AT+SMPUB=<topic>,<contentlength>,<qos>,<retain>. (After configuring server, user, pass, ssl, ... with other AT-commands). So this could be implemented as pretty easy fallback: No WiFi available => Use the SIM8000 for publishing and subscribing. (Of course the mqtt-server must be made internet-accessible first)

I think many users wanting to use esphome outside their home and still be connected would benefit from this.

This issue is similar to #477, #1591 and #1810.

Application Note for MQTT: https://simcom.ee/documents/SIM7000x/SIM7000%20Series_MQTT_Application%20Note_V1.00.pdf or https://www.waveshare.net/w/upload/d/d0/SIM7000_Series_MQTT_Application_Note_V1.00.pdf

Example code: https://github.com/Xinyuan-LilyGO/LilyGo-T-SIM7080G/blob/master/examples/ModemMqttPulishExample/ModemMqttPulishExample.ino

randybb commented 3 months ago

the same with native https - you can use it for HA webhooks :)