Hi Guys,
Im trying to send a Json value as a key value in a service, If I try to send it manually everything is working.
service: xiaomi_miot.call_action
data:
entity_id: vacuum.dreame_p2187_51af_robot_cleaner
siid: 4
aiid: 1
params:
- piid: 1
value: 18
- piid: 10
value: '{"selects":[[6,1,0,2,1], [3,1,0,2,1]]}'
force_params: true
But if I ty to input the value as a variable like:
service: xiaomi_miot.call_action
data:
entity_id: vacuum.dreame_p2187_51af_robot_cleaner
siid: 4
aiid: 1
params:
- piid: 1
value: 18
- piid: 10
value: '{"selects":{{variable}}}'
force_params: true
in the debugger it is sending:
service: xiaomi_miot.call_action
data:
entity_id: vacuum.dreame_p2187_51af_robot_cleaner
siid: 4
aiid: 1
params:
- piid: 1
value: 18
- piid: 10
value:
selects:
- -6
-1
-0
-2
-1
- -3
-1
-0
-2
-1
force_params: true
How can I avoid this formatting?
Thanks!