Hi all,
i’m trying to send order through modbus service to an equipment.
This equipment accept only write done with function 16 and in order to satisfy this requirement I must send at least 2 registers with an array.
So I created an input_select in order to trigger an automation and with static value is working fine:
- alias: fresh_air_f1_set_speed
trigger:
platform: state
entity_id: input_select.fresh_air_f1_speed
action:
service: modbus.write_register
data_template:
hub: hub2
unit: 1
address: 8965
value: ["{{states('input_select.fresh_air_f1_speed') | int}}"]
action:
service: modbus.write_register
data_template:
hub: hub2
unit: 1
address: 8962
value: [23205]
’ value: ["{{states(‘input_select.fresh_air_f1_speed’) | int}}"]‘
The above syntax has the following error