From 4df6326a8162b3ff9977227b862e5e56532d482f Mon Sep 17 00:00:00 2001 From: Wael Nasreddine Date: Wed, 20 Nov 2024 00:56:49 -0800 Subject: [PATCH] signal_messenger: Mention how to receive from Signal running json-rpc (#35832) --- source/_integrations/signal_messenger.markdown | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/source/_integrations/signal_messenger.markdown b/source/_integrations/signal_messenger.markdown index 52f845e5096f..98980e3bfbbb 100644 --- a/source/_integrations/signal_messenger.markdown +++ b/source/_integrations/signal_messenger.markdown @@ -174,3 +174,20 @@ actions: data: message: "Message received!" ``` + +**NOTE** If the parameter `mode` is set to `json-rpc`, then you can use [signal-api-receiver](https://github.com/kalbasit/signal-api-receiver) to receive from Signal as follows: + +```yaml +- resource: "http://127.0.0.1:8105/receive/pop" + sensor: + - name: "Signal message received" + value_template: > + {{ value_json['envelope']['dataMessage']['message'] }} + json_attributes_path: envelope + json_attributes: + - source + - sourceNumber + - sourceUuid + - sourceDevice + - timestamp +```