Thanks @rlkoshak , here the channels config:
version: 1
things:
mqtt:topic:9c527dd867:YV01:
bridge: mqtt:broker:9c527dd867
label: YV01-5 iot ug56 milesight
channels:
YV01_valve:
type: number
label: YV01 Valve
config:
stateTopic: ug/uplinkdata
transformationPattern:
- "JSONPATH:$[?(@.deviceName== 'YV01')].valve_1_task.valve_status"
YV01_gpio:
type: number
label: GPIO 1
config:
stateTopic: ug/uplinkdata
transformationPattern:
- "JSONPATH:$[?(@.deviceName== 'YV01')].valve_1_task.gpio_1"
YV01_pulse:
type: number
label: Pulse rule enable
config:
stateTopic: ug/uplinkdata
transformationPattern:
- "JSONPATH:$[?(@.deviceName== 'YV01')].valve_1_task.pulse_rule_enable"
YV01_time:
type: number
label: Time rule enable
config:
stateTopic: ug/uplinkdata
transformationPattern:
- "JSONPATH:$[?(@.deviceName== 'YV01')].valve_1_task.time_rule_enable"
YV01_raw_1:
type: string
label: YV01 Raw
config:
stateTopic: lora/splitted/YV01
YV01_valve_new:
type: number
label: YV01 Valve New
config:
stateTopic: ug/uplinkdata
transformationPattern:
- REGEX:(.*"deviceName":"YV01".*)∩JSONPATH:$.valve_1
Another way could be to split from a single topic to many topics but for this I’ve setup a homeassistant automations too and I don’t like the idea to keep up both.
Anyway now when a payload is received from logviewer I get:
RN org.openhab.binding.mqtt.generic.ChannelState Command 'NULL' from channel 'mqtt:topic:9c527dd867:YV01:YV05_pulse' not supported by type 'NumberValue': Character N is neither a decimal digit number, decimal point, nor "e" notation exponential mark.
flag 21:50:21.547 WARN org.openhab.binding.mqtt.generic.ChannelState Command 'NULL' from channel 'mqtt:topic:9c527dd867:YV01:YV05_time' not supported by type 'NumberValue': Character N is neither a decimal digit number, decimal point, nor "e" notation exponential mark.
flag 21:50:21.549 WARN org.openhab.binding.mqtt.generic.ChannelState Command 'NULL' from channel 'mqtt:topic:9c527dd867:YV01:YV02_pulse' not supported by type 'NumberValue': Character N is neither a decimal digit number, decimal point, nor "e" notation exponential mark.
flag 21:50:21.551 WARN org.openhab.binding.mqtt.generic.ChannelState Command 'NULL' from channel 'mqtt:topic:9c527dd867:YV01:YV04_time' not supported by type 'NumberValue': Character N is neither a decimal digit number, decimal point, nor "e" notation exponential mark.
flag 21:50:21.553 WARN org.openhab.binding.mqtt.generic.ChannelState Command 'NULL' from channel 'mqtt:topic:9c527dd867:YV01:YV01_valve' not supported by type 'NumberValue': Character N is neither a decimal digit number, decimal point, nor "e" notation exponential mark.
flag 21:50:21.554 WARN org.openhab.binding.mqtt.generic.ChannelState Command 'NULL' from channel 'mqtt:topic:9c527dd867:YV01:YV03_valve_new' not supported by type 'NumberValue': Character N is neither a decimal digit number, decimal point, nor "e" notation exponential mark.
flag 21:50:21.556 WARN org.openhab.binding.mqtt.generic.ChannelState Command 'NULL' from channel 'mqtt:topic:9c527dd867:YV01:YV02_valve_new' not supported by type 'NumberValue': Character N is neither a decimal digit number, decimal point, nor "e" notation exponential mark.
flag 21:50:21.558 WARN org.openhab.binding.mqtt.generic.ChannelState Command 'NULL' from channel 'mqtt:topic:9c527dd867:YV01:YV04_gpio' not supported by type 'NumberValue': Character N is neither a decimal digit number, decimal point, nor "e" notation exponential mark.
flag 21:50:21.560 WARN org.openhab.binding.mqtt.generic.ChannelState Command 'NULL' from channel 'mqtt:topic:9c527dd867:YV01:YV03_valve' not supported by type 'NumberValue': Character N is neither a decimal digit number, decimal point, nor "e" notation exponential mark.
flag 21:50:21.561 WARN org.openhab.binding.mqtt.generic.ChannelState Command 'NULL' from channel 'mqtt:topic:9c527dd867:YV01:YV04_valve' not supported by type 'NumberValue': Character N is neither a decimal digit number, decimal point, nor "e" notation exponential mark.
flag 21:50:21.563 WARN org.openhab.binding.mqtt.generic.ChannelState Command 'NULL' from channel 'mqtt:topic:9c527dd867:YV01:YV05_gpio' not supported by type 'NumberValue': Character N is neither a decimal digit number, decimal point, nor "e" notation exponential mark.
flag 21:50:21.565 WARN org.openhab.binding.mqtt.generic.ChannelState Command 'NULL' from channel 'mqtt:topic:9c527dd867:YV01:YV03_gpio' not supported by type 'NumberValue': Character N is neither a decimal digit number, decimal point, nor "e" notation exponential mark.
flag 21:50:21.567 WARN org.openhab.binding.mqtt.generic.ChannelState Command 'NULL' from channel 'mqtt:topic:9c527dd867:YV01:YV01_time' not supported by type 'NumberValue': Character N is neither a decimal digit number, decimal point, nor "e" notation exponential mark.
flag 21:50:21.568 WARN org.openhab.binding.mqtt.generic.ChannelState Command 'NULL' from channel 'mqtt:topic:9c527dd867:YV01:YV04_pulse' not supported by type 'NumberValue': Character N is neither a decimal digit number, decimal point, nor "e" notation exponential mark.
flag 21:50:21.570 WARN org.openhab.binding.mqtt.generic.ChannelState Command 'NULL' from channel 'mqtt:topic:9c527dd867:YV01:YV01_gpio' not supported by type 'NumberValue': Character N is neither a decimal digit number, decimal point, nor "e" notation exponential mark.
flag 21:50:21.571 WARN org.openhab.binding.mqtt.generic.ChannelState Command 'NULL' from channel 'mqtt:topic:9c527dd867:YV01:YV04_valve_new' not supported by type 'NumberValue': Character N is neither a decimal digit number, decimal point, nor "e" notation exponential mark.
flag 21:50:21.573 WARN org.openhab.binding.mqtt.generic.ChannelState Command 'NULL' from channel 'mqtt:topic:9c527dd867:YV01:YV05_valve' not supported by type 'NumberValue': Character N is neither a decimal digit number, decimal point, nor "e" notation exponential mark.
flag 21:50:21.575 WARN org.openhab.binding.mqtt.generic.ChannelState Command 'NULL' from channel 'mqtt:topic:9c527dd867:YV01:YV03_pulse' not supported by type 'NumberValue': Character N is neither a decimal digit number, decimal point, nor "e" notation exponential mark.
flag 21:50:21.577 WARN org.openhab.binding.mqtt.generic.ChannelState Command 'NULL' from channel 'mqtt:topic:9c527dd867:YV01:YV02_time' not supported by type 'NumberValue': Character N is neither a decimal digit number, decimal point, nor "e" notation exponential mark.
flag 21:50:21.578 WARN org.openhab.binding.mqtt.generic.ChannelState Command 'NULL' from channel 'mqtt:topic:9c527dd867:YV01:YV01_pulse' not supported by type 'NumberValue': Character N is neither a decimal digit number, decimal point, nor "e" notation exponential mark.
flag 21:50:21.580 WARN org.openhab.binding.mqtt.generic.ChannelState Command 'NULL' from channel 'mqtt:topic:9c527dd867:YV01:YV02_gpio' not supported by type 'NumberValue': Character N is neither a decimal digit number, decimal point, nor "e" notation exponential mark.
info_circle 21:50:21.584 INFO openhab.event.ItemStateChang
I forgot to mention that payload may vary:
{"applicationID":1,"devEUI":"device","deviceName":"YV05","gatewayTime":"2026-05-19T14:41:23+02:00","gpio_1":1,"valve_1":1}'
or
{"applicationID":1,"devEUI":"device","deviceName":"YV05","gatewayTime":"2026-05-19T18:29:44+02:00","valve_1_task":{"pulse_rule_enable":0,"sequence_id":0,"time_rule_enable":0,"valve_status":0}}'