Git Product home page Git Product logo

cziter15 / ha-tplink-mr6400-sms-notify Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 86 KB

๐Ÿ“ฒ HACS Integration harnessing the capabilities of the TP-Link MR6400, a 4G router, to provide optimized and rapid SMS sending functionality for the HomeAssistant notification platform.

License: MIT License

Python 100.00%
hacs-integration homeassistant-integration mr6400 python sms tp-link hacs iot notify tplink

ha-tplink-mr6400-sms-notify's Introduction

๐Ÿ‘‹ Hi! I am Krzysztof...

I have been passionate about computers since childhood and began programming in elementary school. After completing technical school, I started working as a game programmer. Almost a decade of my life went by in this field, but recently I have shifted my focus towards automation testing software. Additionally, I have developed an interest in designing electronics and programming my own devices.

๐Ÿ“ I was born in Bydgoszcz...

Bydgoszcz is a medium-sized city located in the northern part of Poland. The city is situated on the Brda River, while the district I come from is located on the Vistula River, which is the longest river in Poland.

๐Ÿ‘€ I am interested in the following areas...

  • PCB design
  • Game development
  • Electrical engineering

๐ŸŒฑ I am currently learning...

  • Electronics design
  • Software architecture patterns
  • Modern C++ features
  • Large language models

๐Ÿ’ž๏ธ I like...

  • Being active
  • Road cycling
  • Engaging in useful projects

๐Ÿ“ซ If you require my skills, let me know...

ha-tplink-mr6400-sms-notify's People

Contributors

cziter15 avatar

Stargazers

 avatar

Watchers

 avatar

ha-tplink-mr6400-sms-notify's Issues

MR500 ARCHER

i installed the component from HACS and added the code on the config file but don't send any sms. Do you know if it also works with MR500?

websocket_api script: Error executing script

I have tried to use this integration already few times, and all of them has failed.
Today I had some more time so I tried to gather some logs.

How the setup is made as for now:

  • router is TP-Link MR6400
  • v5.3
  • as I found in few places for testing purposes router and HA are placed in same LAN (same IP pool),
  • local management is allowed via port 80 (no any IP whitelisting),
  • from same source (if I address PC to HomeAssistant IP for tests) I am able to login to TP-Link portal
  • during testing I am logged out of the gui (as it was reported to interrupt tp-link API)
  • I have droppped packets from tp-link facing port and packets from HA while calling notify service are visible

But the service falls by itself, I can see errors:

Logger: custom_components.mr6400sms.devices.router
Source: custom_components/mr6400sms/devices/router.py:53
Integration: mr6400sms ([documentation](https://github.com/cziter15/ha-tplink-mr6400-sms-notify), [issues](https://github.com/cziter15/ha-tplink-mr6400-sms-notify/issues))
First occurred: 18:52:23 (2 occurrences)
Last logged: 18:52:24

    Retrying login (1 of 3) due to exception {Invalid encryption key request because of status 500}
    Retrying login (2 of 3) due to exception {int() can't convert non-string with explicit base}
Logger homeassistant.helpers.script.websocket_api_script
Source: custom_components/mr6400sms/devices/mr6400.py:96
Integration: mr6400sms ([documentation](https://github.com/cziter15/ha-tplink-mr6400-sms-notify), [issues](https://github.com/cziter15/ha-tplink-mr6400-sms-notify/issues))
First occurred: 18:52:25 (1 occurrences)
Last logged: 18:52:25
websocket_api script: Error executing script. Unexpected error for call_service at pos 1: Token is missing. Please login first.

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 468, in _async_step
    await getattr(self, handler)()
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 704, in _async_call_service_step
    response_data = await self._async_run_long_action(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 666, in _async_run_long_action
    return long_task.result()
           ^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 1969, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2006, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/notify/legacy.py", line 264, in _async_notify_message_service
    await self.async_send_message(**kwargs)
  File "/config/custom_components/mr6400sms/notify.py", line 28, in async_send_message
    await self.router_client.send_message(phone_numbers, message)
  File "/config/custom_components/mr6400sms/devices/router.py", line 71, in send_message
    await self._send_sms(phone, message)
  File "/config/custom_components/mr6400sms/devices/mr6400.py", line 96, in _send_sms
    raise RouterException("Token is missing. Please login first.")
custom_components.mr6400sms.devices.router.RouterException: Token is missing. Please login first.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.