mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-21 16:27:19 +00:00
signal_messenger: Mention how to receive from Signal running json-rpc (#35832)
This commit is contained in:
parent
949deab8df
commit
4df6326a81
@ -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
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user