Receive SMS in HA?

I’ve had the same module in my car for a few days now.

From the beginning I wanted to integrate the module into HA.
Sending an SMS is not the problem, I use the HTTP API of AnySMS, it costs per SMS but for the beginning it is OK. Should be possible with any SMS provider that offers an HTTP API.

In the long run it would be nice to be able to receive and send SMS in HA. On the one hand to save money for the SMS provider (SIM card with SMS flatrate) and on the other hand you could receive SMS. SMS receipt is also possible with most providers, but either only on a shared number and keyword (which won’t work with this module) or with too high costs for a fixed number (>30€ per month)

I’ve already tried to get my Huawei LTE stick to run on Linux, which would work in principle, but I run it all on a Synology and Docker and somehow I don’t get the device in the Docker container. Might be a project for the holidays, or I have to go the way of an additional computer (raspberry pi).

In HA the whole thing is called as REST command.

	rest_command:
		car_heater_on:
		  url: !secret rest_car_heater_on_url
		  method: GET

		car_heater_off:
		  url: !secret rest_car_heater_off_url
		  method: GET

		car_heater_info:
		  url: !secret rest_car_heater_info_url
		  method: GET

		car_heater_temperature:
		  url: !secret rest_car_heater_temperature_url
		  method: GET

secrets.yaml

	rest_car_heater_on_url: http://gateway.any-sms.biz/send_sms.php?id=123456&pass=APIPASSWORD&gateway=28&absender=NUMBERFROM&nummer=NUMBERTO&text=ON&test=0
	rest_car_heater_off_url: http://gateway.any-sms.biz/send_sms.php?id=123456&pass=APIPASSWORD&gateway=28&absender=NUMBERFROM&nummer=NUMBERTO&text=OFF&test=0
	rest_car_heater_info_url: http://gateway.any-sms.biz/send_sms.php?id=123456&pass=APIPASSWORD&gateway=28&absender=NUMBERFROM&nummer=NUMBERTO&text=INFO&test=0
	rest_car_heater_temperature_url: http://gateway.any-sms.biz/send_sms.php?id=123456&pass=APIPASSWORD&gateway=28&absender=NUMBERFROM&nummer=NUMBERTO&text=TEMP&test=0

What I can’t do at the moment is to use Alexa/Siri to control the whole thing.

But I think a momentary switch should work, but I didn’t have time to test it yet.

For now I’ve made an iOS shortcut with menu, which calls the service for the REST command in the background via the HA Api. Better than nothing.