Platform: Raspberry Pi 4, Pi OS Bullseye, Java openjdk version “11.0.18”, openHAB 3.4.3
I’ve applied a JSONpath transformation to the MSQTT output from my Aqara motion sensor at the channel level via the GUI interface but for some reason it’s failing.
MSQTT output string is:
{“battery”:100,“device_temperature”:30,“illuminance”:23,“illuminance_lux”:23,“linkquality”:163,“occupancy”:false,“power_outage_count”:22,“voltage”:3005}
Outgoing Value Transformation in the Channel configuration is:
JSONPATH:$.occupancy
But output to the item is still the full output string. Can anyone help, please?
openhab.log just gives:
2023-06-15 10:46:54.627 [WARN ] [ofiles.JSonPathTransformationProfile] - Could not transform state ‘{“battery”:100,“device_temperature”:30,“illuminance”:24,“illuminance_lux”:24,“linkquality”:160,“occupancy”:false,“power_outage_count”:22,“voltage”:3005}’ with function ‘JSONPATH:$.occupancy’ and format ‘%s’