Hi, I can’t get any further when evaluating a json_string.
mosquitto_pub -t homeassistant/payload -m '{"value":"-0.6,0.6,-0.6,3,-0.1,3,-0.1,0.6"}'
The value is not in [ ].
yaml:
action:
- service: xiaomi_miot.set_miot_property
data:
entity_id: vacuum.viomi_v18_a534_robot_cleaner
siid: 6
piid: 2
value: '{{trigger.payload_json.value}}'
trigger.payload_json.value is properly recognized/defined as a sting object.
result:
service: set_miot_property
service_data:
entity_id: vacuum.viomi_v18_a534_robot_cleaner
siid: 6
piid: 2
value:
- -0.6
- 0.6
- -0.6
- 3
- -0.1
- 3
- -0.1
- 0.6
If value: -0.6,0.6,-0.6,3,-0.1,3,-0.1,0.6
is entered in the yaml by hand, everything is ok.
Can this be bypassed? Greetings, Jens