Zigbee2mqtt + Zemismart Jinja issues

Hello,
fintally I got to the stage, where Zigbee2MQTTT is working:
Zigbee adaptor Sonoff installed
Zigbee2MQTT/Mosquitto installed
Blind in Z2M is working
OH:
Broker Installed

Things created:

UID: mqtt:homeassistant_zigbee2mqtt_5F0x0c4314fffe7ae644:0106506a0b:zigbee2mqtt_5F0x0c4314fffe7ae644
label: Roleta1
thingTypeUID: mqtt:homeassistant_zigbee2mqtt_5F0x0c4314fffe7ae644
configuration:
  topics:
    - select/0x0c4314fffe7ae644/mode
    - select/0x0c4314fffe7ae644/motor_working_mode
    - cover/0x0c4314fffe7ae644/cover
    - sensor/0x0c4314fffe7ae644/motor_working_mode
    - sensor/0x0c4314fffe7ae644/linkquality
    - sensor/0x0c4314fffe7ae644/mode
    - select/0x0c4314fffe7ae644/border
    - select/0x0c4314fffe7ae644/motor_direction
    - sensor/0x0c4314fffe7ae644/border
    - sensor/0x0c4314fffe7ae644/percent_state
    - sensor/0x0c4314fffe7ae644/motor_direction
  basetopic: homeassistant
bridgeUID: mqtt:broker:0106506a0b
location: Detská

I can even see the Roller Blind in the Openhab.

tail -f is showing some Jinja bugs:

2022-05-30 13:36:22.180 [WARN ] [t.generic.ChannelStateTransformation] - Executing the JINJA-transformation failed: An error occurred while transformation. UnknownTokenException: Unknown token found: value_json.motor_direction
2022-05-30 13:36:22.184 [WARN ] [t.generic.ChannelStateTransformation] - Executing the JINJA-transformation failed: An error occurred while transformation. UnknownTokenException: Unknown token found: value_json.mode
2022-05-30 13:36:22.189 [WARN ] [t.generic.ChannelStateTransformation] - Executing the JINJA-transformation failed: An error occurred while transformation. UnknownTokenException: Unknown token found: value_json.percent_state
2022-05-30 13:36:28.521 [WARN ] [t.generic.ChannelStateTransformation] - Executing the JINJA-transformation failed: An error occurred while transformation. UnknownTokenException: Unknown token found: value_json.motor_direction
2022-05-30 13:36:28.526 [WARN ] [t.generic.ChannelStateTransformation] - Executing the JINJA-transformation failed: An error occurred while transformation. UnknownTokenException: Unknown token found: value_json.percent_state
2022-05-30 13:36:28.529 [WARN ] [t.generic.ChannelStateTransformation] - Executing the JINJA-transformation failed: An error occurred while transformation. UnknownTokenException: Unknown token found: value_json.mode

What can I see in the Z2MQTT Interface, the formating should be:

{
    "linkquality": 78,
    "motor_working_mode": "continuous",
    "position": 50,
    "running": false,
    "state": "OPEN",
    "border": "down",
    "mode": null,
    "motor_direction": null,
    "percent_state": null
}

What I have done wrong? should there be some JINJA formatting? is there a simple fix?

Thank you,
Michal, Slovakia

this is probably because the status of the items was null. I rewrited them by sendCommand.
Now the question is, how can I command the Blinds. Tried everything.

Roleta1.sendCommand(“CLOSE”)
Roleta1.sendCommand(DOWN)
Roleta1.sendCommand(100)
Roleta1.sendCommand(0)

and tenths of other combinations. Is there anybody who knows how to command MQTT?
documentation to zigbee2mqtt says this:

I can command the Blind from Z2M, but not from openhab - the blind is ONLINE:


note that i have changed the Roleta1 to roleta1 to test the change.

thank you anyone!
M

well, I have just realised the other way how to do it

rule "test_button_short_press"
when
    Channel "mihome:sensor_switch:286c0785f092:158d000125665d:button" triggered SHORT_PRESSED
then
    logInfo("test_button.rules", "Short pressed")
    val mqttActions = getActions("mqtt", "mqtt:broker:0106506a0b")
    mqttActions.publishMQTT("zigbee2mqtt/roleta1/set", "OPEN")
end

is there a way how to do it through sendCommand?
thanks!