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