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

SMS Integration breaks encoding when sending SMS from Ghuango G5 GSM alarm (SIM800C) #80917

Closed
diemon24 opened this issue Oct 24, 2022 · 8 comments

Comments

@diemon24
Copy link

The problem

Sending and receiving SMS in the home assistant works great if I use my smartphone. I send sms from home assistant and receive it on my smartphone, I can even reply back and get a notification in home assistant. But it doesn't work when I send an on/off command to my Ghuango G5 GSM alarm. After long checks, I made sure that the SMS integration of the home assistant changes the modem settings or sets some kind of encoding that the alarm does not understand. To send a command to turn on the alarm, it is enough to send an SMS with the number "1" (without quotes), and to disarm it, "0".

I send SMS with modem settings AT+CMGF=1
AT+CSCS= "GSM" through the USB serial program and in the terminal mode I receive a response SMS about the security status. When I do this in the home assistant, I do not receive a reply SMS. It looks weird even if I disable unicode.

What version of Home Assistant Core has the issue?

20220907.0

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

SMS

Link to integration documentation on our website

https://www.home-assistant.io/integrations/sms/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

@home-assistant
Copy link

Hey there @ocalvo, mind taking a look at this issue as it has been labeled with an integration (sms) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of sms can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Change the title of the issue.
  • @home-assistant unassign sms Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


sms documentation
sms source
(message by IssueLinks)

@ocalvo
Copy link
Contributor

ocalvo commented Oct 24, 2022

Please send the sms using the GSM alphabet as described here

@diemon24
Copy link
Author

Please send the sms using the GSM alphabet as described here

No. This is doesn’t working. I tested this.

@ocalvo
Copy link
Contributor

ocalvo commented Oct 25, 2022

Please send the sms using the GSM alphabet as deacribed here

Has this ever worked before?

@diemon24
Copy link
Author

diemon24 commented Oct 25, 2022

Has this ever worked before?

No, this is first installation.
I've tried different Unicode configurations, but it doesn't solve the problem. I have a feeling that something is forcing the modem to use a non-GSM modem encoding, but sets a different AT+CSCS= parameter when sending SMS. Could this be?

@ocalvo
Copy link
Contributor

ocalvo commented Oct 25, 2022

Has this ever worked before?

No, this is first installation.

By default Gammu uses PDU mode to send and receives SMS.

This issue is asking for a new feature where we expose the USE_SMSTEXTMODE feature from gammu via python-gammu and then via the Hass-sms integration.

The problem is that I don't know if currently python-gammu exposes this or not.

I think our best option is to file another issue against python-gammu to see if we can enable this.

Issue filed:
gammu/python-gammu#93

@diemon24
Copy link
Author

Has this ever worked before?

No, this is first installation.

By default Gammu uses PDU mode to send and receives SMS.

This issue is asking for a new feature where we expose the USE_SMSTEXTMODE feature from gammu via python-gammu and then via the Hass-sms integration.

The problem is that I don't know if currently python-gammu exposes this or not.

I think our best option is to file another issue against python-gammu to see if we can enable this.

Issue filed: gammu/python-gammu#93

Thx you. Waiting…. I will google how to manually set the gammu parameter USE_SMSTEXTMODE

@github-actions github-actions bot added the stale label Nov 24, 2022
@diemon24
Copy link
Author

diemon24 commented Nov 26, 2022

Thx you very much! I don’t know what you made, i updated HA and this working!

@github-actions github-actions bot locked and limited conversation to collaborators Dec 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants