jswim788
(John Schmitz)
May 20, 2025, 4:16pm
1
OH 5.0 M2. I’m just starting to use zigbee2mqtt through the MQTT binding. I’ve got it set up and it appears to work. My first test is with a door contact sensor linked to a Switch Item. I prefer that the Switch be ON when the contact is closed (“true” according to the zigbee2mqtt log), so I tried to use inversion in the channel link. But I get a warning every time a message comes in. Any ideas?
2025-05-19 22:05:57.661 [WARN ] [l.HomeAssistantChannelTransformation] - Applying template {"latest_version":"{{ value_json['update']['latest_version'] }}","installed_version":"{{ value_json['update']['installed_version'] }}","update_percentage":{{ value_json['update'].get('progress', 'null') }},"in_progress":{{ (value_json['update']['state'] == 'updating')|lower }}} for component update/0x282c02bfffe6668d/update failed: Cannot find method get with 2 parameters in class com.hubspot.jinjava.objects.collections.SizeLimitingPyMap (class com.hubspot.jinjava.interpret.FatalTemplateErrorsException)
The corresponding log from zigbee2mqtt is this:
[2025-05-19 22:05:57] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/DoorSensor1', payload '{"battery":100,"battery_low":false,"contact":true,"linkquality":156,"tamper":false,"update":{"installed_version":48,"latest_version":63,"state":"available"},"voltage":3000}'
Link configuration:
"DoorSensor1 -\u003e mqtt:homeassistant:ChelanMQTTBroker:zigbee2mqttDoorSensor1:contact_binary_sensor": {
"class": "org.openhab.core.thing.link.ItemChannelLink",
"value": {
"channelUID": {
"segments": [
"mqtt",
"homeassistant",
"ChelanMQTTBroker",
"zigbee2mqttDoorSensor1",
"contact_binary_sensor"
],
"uid": "mqtt:homeassistant:ChelanMQTTBroker:zigbee2mqttDoorSensor1:contact_binary_sensor"
},
"configuration": {
"properties": {
"profile": "basic-profiles:invert"
}
},
"itemName": "DoorSensor1"
}
},
jswim788
(John Schmitz)
May 20, 2025, 6:51pm
2
Looks like it is this issue. Hopefully the fix makes into M3:
opened 06:27PM - 02 Feb 25 UTC
bug
since the update of zigbee2mqtt from 2.0.0 to 2.1.0 i have many of the following… messages in openhab.log:
```
2025-02-02 19:15:58.201 [WARN ] [l.HomeAssistantChannelTransformation] - Applying template {"latest_version":"{{ value_json['update']['latest_version'] }}","installed_version":"{{ value_json['update']['installed_version'] }}","update_percentage":{{ value_json['update'].get('progress', 'null') }}} for component update/0xec1bbdfffe70ad72/update failed: Cannot find method get with 2 parameters in class com.hubspot.jinjava.objects.collections.SizeLimitingPyMap (class com.hubspot.jinjava.interpret.FatalTemplateErrorsException)
2025-02-02 19:15:58.705 [WARN ] [l.HomeAssistantChannelTransformation] - Applying template {"latest_version":"{{ value_json['update']['latest_version'] }}","installed_version":"{{ value_json['update']['installed_version'] }}","update_percentage":{{ value_json['update'].get('progress', 'null') }}} for component update/0xec1bbdfffe70ad72/update failed: Cannot find method get with 2 parameters in class com.hubspot.jinjava.objects.collections.SizeLimitingPyMap (class com.hubspot.jinjava.interpret.FatalTemplateErrorsException)
2025-02-02 19:15:59.209 [WARN ] [l.HomeAssistantChannelTransformation] - Applying template {"latest_version":"{{ value_json['update']['latest_version'] }}","installed_version":"{{ value_json['update']['installed_version'] }}","update_percentage":{{ value_json['update'].get('progress', 'null') }}} for component update/0xec1bbdfffe70ad72/update failed: Cannot find method get with 2 parameters in class com.hubspot.jinjava.objects.collections.SizeLimitingPyMap (class com.hubspot.jinjava.interpret.FatalTemplateErrorsException)
2025-02-02 19:15:59.814 [WARN ] [l.HomeAssistantChannelTransformation] - Applying template {"latest_version":"{{ value_json['update']['latest_version'] }}","installed_version":"{{ value_json['update']['installed_version'] }}","update_percentage":{{ value_json['update'].get('progress', 'null') }}} for component update/0xec1bbdfffe70ad72/update failed: Cannot find method get with 2 parameters in class com.hubspot.jinjava.objects.collections.SizeLimitingPyMap (class com.hubspot.jinjava.interpret.FatalTemplateErrorsException)
```
it is probably related to the following change in zigbee2mqtt:
[https://github.com/Koenkk/zigbee2mqtt/pull/25632](https://github.com/Koenkk/zigbee2mqtt/pull/25632)
## Your Environment
* Version used: OH 4.3.2 zigbee2mqtt: 2.1.0
```
runtimeInfo:
version: 4.3.2
buildString: Release Build
locale: de-AT
systemInfo:
configFolder: /etc/openhab
userdataFolder: /var/lib/openhab
logFolder: /var/log/openhab
javaVersion: 17.0.14
javaVendor: Azul Systems, Inc.
javaVendorVersion: Zulu17.56+15-CA
osName: Linux
osVersion: 5.15.0-130-generic
osArchitecture: amd64
availableProcessors: 4
freeMemory: 213005480
totalMemory: 901775360
uptime: 903399
startLevel: 100
addons:
- automation-jsscripting
- binding-airquality
- binding-androidtv
- binding-astro
- binding-avmfritz
- binding-chromecast
- binding-exec
- binding-fineoffsetweatherstation
- binding-homematic
- binding-icalendar
- binding-ipcamera
- binding-ipp
- binding-jeelink
- binding-logreader
- binding-mail
- binding-modbus
- binding-mqtt
- binding-network
- binding-networkupstools
- binding-ntp
- binding-openweathermap
- binding-snmp
- binding-systeminfo
- binding-telegram
- binding-tr064
- binding-upnpcontrol
- persistence-influxdb
- persistence-mapdb
- transformation-exec
- transformation-jinja
- transformation-jsonpath
- transformation-map
- transformation-regex
- ui-basic
clientInfo:
device:
ios: false
android: false
androidChrome: false
desktop: true
iphone: false
ipod: false
ipad: false
edge: false
ie: false
firefox: false
macos: false
windows: true
cordova: false
phonegap: false
electron: false
nwjs: false
webView: false
webview: false
standalone: false
os: windows
pixelRatio: 1
prefersColorScheme: light
isSecureContext: false
locationbarVisible: true
menubarVisible: true
navigator:
cookieEnabled: true
deviceMemory: N/A
hardwareConcurrency: 8
language: de-AT
languages:
- de-AT
- de
- en
onLine: true
platform: Win32
screen:
width: 2560
height: 1440
colorDepth: 24
support:
touch: false
pointerEvents: true
observer: true
passiveListener: true
gestures: false
intersectionObserver: true
themeOptions:
dark: dark
filled: true
pageTransitionAnimation: default
bars: light
homeNavbar: default
homeBackground: default
expandableCardAnimation: default
blocklyRenderer: geras
userAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,
like Gecko) Chrome/132.0.0.0 Safari/537.36
timestamp: 2025-02-02T18:25:34.500Z
```