Add examples for knx.send action configuration (#34904)

This commit is contained in:
Matthias Alphart 2024-09-24 22:40:02 +02:00 committed by GitHub
parent e51d9a5474
commit 0185ea5da7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -348,6 +348,33 @@ response:
default: false
{% endconfiguration %}
{% raw %}
```yaml
# Example script to send a fixed value and the state of an entity
alias: My Script
sequence:
- action: knx.send
data:
address: 1/1/1
type: percent
payload: 50
response: false
- action: knx.send
data:
address: 1/1/1
payload: [128] # 50 % as 1-byte raw value
response: false
- action: knx.send
data:
address: 3/3/3
type: temperature
payload: "{{ states('sensor.dew_point') }}"
response: false
```
{% endraw %}
### Read
You can use the `homeassistant.update_entity` action call to issue GroupValueRead requests for all `*state_address` of an entity.