signal_messenger: Mention how to receive from Signal running json-rpc (#35832)

This commit is contained in:
Wael Nasreddine 2024-11-20 00:56:49 -08:00 committed by GitHub
parent 949deab8df
commit 4df6326a81
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
```