I’m trying to execute this action from automation:
alias: Imposta sensibilità sensore tenda
description: ''
trigger:
platform: state
entity_id: input_number.sensibilita_sensore_tenda
condition: []
action:
service: deconz.configure
data:
entity: binary_sensor.vibration_48
field: '/config'
data:
'sensitivity': {{ states('input_number.sensibilita_sensore_tenda') | int }}
bridgeid: 00212EFFFF051D76
mode: single
But I have problem on this row:
'sensitivity': {{ states('input_number.sensibilita_sensore_tenda') | int }}
I tried also with:
'sensitivity': >
{{ states('input_number.sensibilita_sensore_tenda') | int }}
In this way I received no error, but I do not see any change on the sensor.
What is the correct syntax in order to have:
'sensitivity': 39
(for istance)