Please this doesn't work as i tought...
I have been able to add 2 features in the PR I linked before
- Option to use the selected Serial Port name as the event name. All names start with 'serial', and are appended with their interface, f.e. HW Serial0 -> serial0, HW Serial1 -> serial1, USB HWCDC -> serialhwcdc, etc. (Only available when Event processing Generic is selected)
- Option to append the Task number to the event name, f.e. Serial8 when task 8 is used for the plugin. (Only available when Event processing Generic or RFLink is selected)
I have 2 serial inputs, one connected in device so:
Communication - Serial Server VictronMPTT HW Serial0
Communication - Serial Server VictronBMW HW Serial1
one connected at pin 32 and one at 33
in rules I expected to write :
Code: Select all
on !Serial0* do
Publish,ESP_DIMMIBOX/VictrMPTT,{substring:8:15:%eventvalue%}
endon
on !Serial1* do
Publish,ESP_DIMMIBOX/VictrBMW,{substring:8:15:%eventvalue%}
endon
to obtain different topic on mqtt, but the extension 0 or 1 isn't good, it produce nothing
the only way to publish something is to use the classic syntax:
without difference form serial0 or serial1
where am I wrong?
Build: ESP_Easy_mega_20230822_display_ESP32_4M316k Aug 22 2023