core: The sms integration “SMS notifications via GSM-modem” doesn't work ob core 2021.7 (2021.7.0 - 2021.7.2)
The problem
The sms integration “SMS notifications via GSM-modem” doesn’t work on core 2021.7 (2021.7.0 - 2021.7.3), but it works fine on 2021.6.6. Please check, thanks
What is version of Home Assistant Core has the issue?
2021.7.3
What was the last working version of Home Assistant Core?
2021.6.6
What type of installation are you running?
Home Assistant OS
Integration causing the issue
SMS notifications via GSM-modem
Link to integration documentation on our website
https://www.home-assistant.io/integrations/sms
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Logger: homeassistant.components.sms.gateway
Source: components/sms/gateway.py:167
Integration: SMS notifications via GSM-modem (documentation, issues)
First occurred: 20:32:50 (1 occurrences)
Last logged: 20:32:50
Failed to initialize, error ERR_NOTSUPPORTED
Logger: homeassistant.components.sms.notify
Source: components/sms/notify.py:24
Integration: SMS notifications via GSM-modem (documentation, issues)
First occurred: 20:32:50 (1 occurrences)
Last logged: 20:32:50
SMS gateway not found, cannot initialize service
Logger: homeassistant.components.notify
Source: components/notify/init.py:311
Integration: notify (documentation, issues)
First occurred: 20:32:50 (1 occurrences)
Last logged: 20:32:50
Failed to initialize notification service sms
Additional information
No response
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 6
- Comments: 53 (16 by maintainers)
Created PR with fix. Please review.
Is it working in your tests? What do you mean by manual deleting it… Can you give step by step what did you do…
Twilio is dependent on internet connectivity. GSM modem is not. Not a valid solution to the GSM modem problem 😕 2021.6.6 is working until ocalvo is back and maybe can have a look.
guys, I give up with SMS integration.
I am currently using twilio trial for free to implement sms function,
simply register on https://www.twilio.com/try-twilio?promo=qLyrBG with promotion or directly https://www.twilio.com
There are of course restrictions on the trial version, but it is more than enough for me at the moment
for more infomation: https://support.twilio.com/hc/en-us/articles/360036052753-Twilio-Free-Trial-Limitations
after registration, setting in configuration.yaml file:
twilio:account_sid: ACCOUNT_SID_FROM_TWILIOauth_token: AUTH_TOKEN_FROM_TWILIO>notify:- name: NOTIFIER_NAMEplatform: twilio_smsfrom_number: E164_PHONE_NUMBER or SENDER_IDhttps://www.home-assistant.io/integrations/twilio_sms/
maybe this can help you.
I have created a draft PR for the work to support incoming SMS. It needs a new version of python-gammu that incorporates this bug fix.
I did the update to core-2021.8.3 and sending SMS works, Thank you, it’s a good job to fix the problem. Receiving SMS is not working yet
Most likely, yes. I believe this is a bug in either gammu or Alpine or both, as the same GSM modem works fine in my development environment (Windows WSL) and fails in the production environment (RPI4)
To workaround this bug, I am planning on doing local polling to the device.
@pvizeli - any help from HA team regarding this…? It seems that this is the problem of new OS release / HA core…
Twilio is not relevant here, it does not compare. Do you know how to dynamically switch to the 3G network when landline broke-down ? Metering does not seem to do the trick.
I have confirmed the fix in my production environment. I can still send SMS messages, however, as expected, receiving SMS seems to broken in this new version. I am working on adding local polling support to gammu to the integration to overcome this problem.
you are right, it’s no required for hardware such as a modem or SIM card , but you need a constant Internet connection, i.e. this solution is not intended for emergencies without the Internet