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

Add support to send text messages #85

Open
Momro opened this issue Oct 4, 2024 · 2 comments
Open

Add support to send text messages #85

Momro opened this issue Oct 4, 2024 · 2 comments

Comments

@Momro
Copy link

Momro commented Oct 4, 2024

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 Momro changed the title Add support for text messages to be sent Add support to send text messages Oct 4, 2024
@AlexandrErohin
Copy link
Owner

This integrations supports many routers but only some of them has sms feature. I don't think it is good to add feature which would be unavailable for most of users
You may use this code as individual python script https://www.home-assistant.io/integrations/python_script/

@Momro
Copy link
Author

Momro commented Oct 6, 2024

It appears to be not exactly possible to do this in python code because one cannot sideload pip libraries though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants