home-assistant-tplink-router icon indicating copy to clipboard operation
home-assistant-tplink-router copied to clipboard

Add support to send text messages

Open Momro opened this issue 4 months ago • 2 comments

Hi,

I have a TL-MR100 v2.0. I use a SIM card and the LTE connection of the router as fallback internet. I would like to utilize the SIM card for short text messages, too, but I cannot find an integration that does that.

I was able to connect and send a text message like this:

python
[...]
from tplinkrouterc6u import (
...     TplinkRouterProvider,
...     TplinkRouter,
...     TplinkC1200Router,
...     TPLinkMRClient,
...     TPLinkDecoClient,
...     Connection
... )

router = TplinkRouterProvider.get_client('http://192.168.9.1', 'xxxxx')
router.authorize()
router.send_sms("017622181435", "hallo aus der python console")
router.logout()

This uses https://pypi.org/project/tplinkrouterc6u/#status though, and I was told that you cannot add Python libraries in HAOS, so I'm a bit stuck here.

Any chance you could add this to your integration?

Momro avatar Oct 04 '24 14:10 Momro