From 9b38c2842a2543bee66dc29fcf276ba5f4194274 Mon Sep 17 00:00:00 2001 From: Shlomi Green Date: Tue, 23 Apr 2024 14:16:24 +0300 Subject: [PATCH] Updated README, added a comment about title param. --- README.md | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 68fcce7..3a93589 100644 --- a/README.md +++ b/README.md @@ -70,8 +70,9 @@ Restart Home Assistant and add the following section to your *configuration.yaml notify: - platform: greenapi name: greenapi - instance_id: #Set the instanceid - token: #Set the greenapi token. + instance_id: #REQUIRED: Set the instanceid + token: #REQUIRED: Set the greenapi token. + target: #OPTIONAL! Set the detault target. If you set the default target here, you won't have to specify it again in your service calls. ``` * instance_id is the Green API instance id. @@ -80,21 +81,11 @@ notify: * For groups, the id should end with *@g.us* * For chats, the id should end with *@c.us* -You can also set the default target in your notify service configuration, so that you don't have to specify it every time you call the service. -Example: -```yaml -notify: - - platform: greenapi - name: me - instance_id: #Set the instanceid - token: #Set the greenapi token. - target: #Set the default target. -``` - ## Sending a message To Send a message you call the service and provide the following parameters: * message (**Required**): Test to send. +* title (**OPTIONAL**): Add a title for the message in **bold**. * target (**OPTIONAL** if you've already defined the default target in your notify service, otherwise required): The chat/group id to send the message to. ![Send text message](screenshots/text_message.png)