{% if delete == true then %}
Edit ModBus Device
Device Deleted
Device with filename {{file}} has been removed.
Back to ModBus
{% elseif serialerror == true then %}
Edit ModBus Device
Filename / serial mismatch
The serial number of the device does not match the one in the file.
Back to Bus Configuration
{% elseif fileerror == true then%}
Edit ModBus Device
Invalid file
The specified file does not appear to be a valid ModBus device file.
Back to bus configuration
{% elseif porterror == true then%}
Edit ModBus Device
Device / bus mismatch
The device being edited is not on the currently selected bus.
Back to bus configuration
{% elseif mismatch == 1 then%}
Invalid bus
Either an invalid bus was specified, or the bus cannot be matched
to a valid ModBus entry in the serial config file ".
Back to bus configuration
{% else %} {% if mode == "new" then %}
Add New ModBus Device
{%else%}
Edit ModBus Device
Editing device {{label}} with filename {{filename}} :
{% end %}
Device Label:
Device Serial:
{{serial}}
ModBus:
{{bus}}
Template File:
Select a template
{% for _,t in pairs(templates) do %}
{{t.description}}
{% end %} {% if templateerror == true then%}
Configured Template not Found
{% end %}
Device Address:
Serial Config:
{{config}}
{% if saved == true then %} {% if newdevice == true then %}
Saved new device with serial {{serial}}
{% else %}
Changes saved.
{% end %} {% end %}
{% if mode == "edit" then %}
{% end %}
{% end %}