Support GSM alphabet when sending SMS (#23760)

Co-authored-by: Erik Montnemery <erik@montnemery.com>
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
Oscar Calvo 2022-08-22 02:33:08 -06:00 committed by GitHub
parent 543010d981
commit 33b53d01d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,6 +26,36 @@ This integration provides the following platforms:
## Notifications
An SMS message can be sent by calling the `notify.sms`. It will send the message to all phone numbers specified in the `target` parameter.
To use notifications, please see the [getting started with automation page](/getting-started/automation/).
### Send message
```yaml
action:
service: notify.sms
data:
message: "This is a message for you!"
target: "+5068081-8181"
```
### Sending SMS using GSM alphabet
Some devices (receiving or sending) do not support Unicode (the default encoding). For these you can disable Unicode:
```yaml
action:
service: notify.sms
data:
message: "This is a message for you in ANSI"
target: "+5068081-8181"
data:
unicode: False
```
### Manual confiration
To configure the notification service, edit your `configuration.yaml` file:
```yaml
@ -38,10 +68,12 @@ notify:
recipient: PHONE_NUMBER
```
### Getting SMS messages
You can also receive SMS messages that are sent to the SIM card number in your device.
Every time there is a message received, `event: sms.incoming_sms` is fired with date, phone number and text message.
To use notifications, please see the [getting started with automation page](/getting-started/automation/).
## Notes about the operation system
If the integration is used with the Home Assistant Operating System, then version [3.6](https://github.com/home-assistant/hassos/releases/tag/3.6) or higher is required.