UDP problem on NSPanel (Nextion) and esp easy
Moderators: grovkillen, Stuntteam, TD-er
UDP problem on NSPanel (Nextion) and esp easy
Hi,
I have Sonoff NSPanel with ESP Easy Mega fw and I am trying to send UDP command from button on screen to Loxone. Problem is that it is always two commands on separete line.
12 12:48:29.179 Loxone 192.168.20.25 NSPAnel 514 NSPanel_1_disp_idx=12
9 12:48:25.939 Loxone 192.168.20.25 NSPAnel 514 NSPanel_1_disp_value=1
It si sendidn IDX and Value separated, I need it together to be able to read it properly with loxone. Checking "Single event with all values:" doesnt help. It is shown on one line in esp log but it didnt send on one line via udp.
Please help
I have Sonoff NSPanel with ESP Easy Mega fw and I am trying to send UDP command from button on screen to Loxone. Problem is that it is always two commands on separete line.
12 12:48:29.179 Loxone 192.168.20.25 NSPAnel 514 NSPanel_1_disp_idx=12
9 12:48:25.939 Loxone 192.168.20.25 NSPAnel 514 NSPanel_1_disp_value=1
It si sendidn IDX and Value separated, I need it together to be able to read it properly with loxone. Checking "Single event with all values:" doesnt help. It is shown on one line in esp log but it didnt send on one line via udp.
Please help
Re: UDP problem on NSPanel (Nextion) and esp easy
Are you sending via the ESPEasy p2p?
If so, then you could also send more info via an event.
See: https://espeasy.readthedocs.io/en/lates ... nd-publish
For example: ( with N being the unit nr to send to)
This can then be handled on the receiving end in the rules like this:
If so, then you could also send more info via an event.
See: https://espeasy.readthedocs.io/en/lates ... nd-publish
For example: ( with N being the unit nr to send to)
Code: Select all
sendTo,N,"event,MyEvent=123,456,789"
Code: Select all
on MyEvent do
logEntry,"1:%eventvalue1% 2:%eventvalue2% 3:%eventvalue3%"
endon
Re: UDP problem on NSPanel (Nextion) and esp easy
I communicate with Loxone (Entred as a controller).
So this command should be entered into rules?
so on my event:
the rule will be like this?
So this command should be entered into rules?
so on my event:
Code: Select all
EVENT: disp#idx=763
EVENT: disp#value=1
Code: Select all
on disp do
logEntry,"1:%idx% 2:%value%"
endon
Re: UDP problem on NSPanel (Nextion) and esp easy
The documentation on Rules does have examples on how to use variables in rules, it could be something like:kudykam wrote: ↑01 Jan 2023, 10:29 I communicate with Loxone (Entred as a controller).
So this command should be entered into rules?
so on my event:the rule will be like this?Code: Select all
EVENT: disp#idx=763 EVENT: disp#value=1
Code: Select all
on disp do logEntry,"1:%idx% 2:%value%" endon
Code: Select all
on disp#all do
logEntry,"idx=%eventvalue1% value=%eventvalue2%"
endon
What controller do you have configured to send the data to Loxone?
/Ton (PayPal.me)
Re: UDP problem on NSPanel (Nextion) and esp easy
The example I gave was to send the eventvalues to the log so you can see what you receive.
This logEntry command is seriously useful for debugging.
This logEntry command is seriously useful for debugging.
Re: UDP problem on NSPanel (Nextion) and esp easy
OK thanks,
and how do I send it do UDP?
and how do I send it do UDP?
Re: UDP problem on NSPanel (Nextion) and esp easy
Well, that's the question I'm requesting an answer on
/Ton (PayPal.me)
Re: UDP problem on NSPanel (Nextion) and esp easy
Generic UDP with Loxone IP, controller Nr. 1
Re: UDP problem on NSPanel (Nextion) and esp easy
I think we are talking about differnt controllers, I've been trying to ask for the ESPEasy Controller, but you seem to point to an external device
In ESPEasy there is the 'SendToUDP,ip,port,commandstring' command. The commandstring you will have to create yourself, where you can use variables to fill in the parameters, as expected by Loxone (their documentation seems quite elaborate)
In ESPEasy there is the 'SendToUDP,ip,port,commandstring' command. The commandstring you will have to create yourself, where you can use variables to fill in the parameters, as expected by Loxone (their documentation seems quite elaborate)
/Ton (PayPal.me)
Who is online
Users browsing this forum: Bing [Bot] and 116 guests