Loxone Support Community

Find answers, ask questions and become part of the Loxone Community.

Loxone Support CommunityCategory: Loxone ConfigExtracting value from virtual udp input
4 years ago
Extracting value from virtual udp input

I am trying to use a UDP input to read the on off status value of a fan . I have got the output to work and the UDP packet appears in monitor but I am struggling to find the right format to read the 0 or 1 status value :

This is the UDP command recognition the x01 following the x03 is the satus 0x1=on 0x0 = off

masterx03x01tx00x0Cx00x13x00

x00x1Ax00x04x02x056x06x01x080x0Ex00x00x00x12x00x14x00%x00

this is what i tried to set the input value (also need good to be able to ignore the values after that as they may change)

masterx03vtx00x0Cx00x13x00

x00x1Ax00x04x02x056x06x01x080x0Ex00x00x00x12x00x14x00%x00

2 Answers
4 years ago

Hi Lee,

Apologies for the delayed response. In principle in the virtual input command field (see example attached), just enter the text your looking for e.g: x03x01v. The "v" willl give you the value 0 or 1 following the command text you are looking for. Depending on the value you’re looking for, you may want to get a hex value so you’d use "x". More details here: https://www.loxone.com/enen/kb/virtual-http-input but it maybe a bit of a mouthlful, so if you need further help then I’m

happy to help further by booking an appointment here: http://calendar.jsjelec.com/stefan_knight

Attachments
4 years ago

Thanks Stefan

so here is the on UDP monitor output (attached ) and here is the commonad strings i have tried

master\x03\x01v\s28

master\x03\x01h\s28

master\x03\v\s28

none work ;-(

Attachments
4 years ago

Good attempt, you need to match the string being sent. From what I can see it appears you’ll need the following command: master\x03\x\v. Nothing should follow the “\v” as this should return the value that follows which appears to be: 00 or 01. Hope that helps.

4 years ago

Hi tried that did not work either.
I have created a new input from monitor and created a logger. this works fine when the exact matching pattern occurs the log message is generated.
However when I change the string the log message is not sent , so I don’t think it is matching the string