I recently bought the aqara Aqara roller shade companion E1.
The payload for changing the position of the blinds should be in this format according to https://www.zigbee2mqtt.io/devices/ZNJLBL01LM.html:
{“position” :X}
My thing is configured like this:
Type string : position [stateTopic="zigbee2mqtt/rolgordijn_keuken", commandTopic="zigbee2mqtt/rolgordijn_keuken/set", transformationPattern="JSONPATH:$.position"]
Item like this:
String RolgordijnKeukenPosition "Positie" {channel="mqtt:topic:mosquitto:rolgordijn_keuken:position"}
With my knowlegde i was able to come up with this:
RolgordijnKeukenPosition.sendCommand( " {"position" :3} " )
But i get the following error:
2022-08-07 22:15:38.121 [WARN ] [el.core.internal.ModelRepositoryImpl] - Configuration model ‘rolgordijn.rules’ has errors, therefore ignoring it: [35,46]: missing ‘)’ at ‘position’
[35,62]: mismatched input ‘)’ expecting ‘end’
I tried lots of variations but i can’t get it to work. Can anyone help me with this one? Feel like i could be missing something simple. The problem is in the " character.
Thanks.