Skip to content

Commit

Permalink
signal_messenger: Mention how to receive from Signal running json-rpc (
Browse files Browse the repository at this point in the history
  • Loading branch information
kalbasit authored Nov 20, 2024
1 parent 949deab commit 4df6326
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions source/_integrations/signal_messenger.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

0 comments on commit 4df6326

Please sign in to comment.