{
    "i18n": true,
    "type": "tabs",
    "tabsStyle": {
        "width": "calc(100% - 100px)"
    },
    "items": {
        "mainTab": {
            "type": "panel",
            "label": "Main settings",
            "items": {
                "donateTxt": {
                    "type": "staticText",
                    "text": "donateTxt",
                    "xs": 12,
                    "sm": 12,
                    "md": 6,
                    "lg": 4,
                    "xl": 4
                },
                "donateImage": {
                    "type": "staticImage",
                    "label": "label",
                    "href" : "https://www.paypal.com/donate/?hosted_button_id=ZTX3VP9LZBDCG",
                    "src" : "paypal-button.png",
                    "newLine": true,
                    "xs": 6,
                    "sm": 4,
                    "md": 2,
                    "lg": 2,
                    "xl": 2
                },
                "mainHdr1": {
                    "newLine": true,
                    "type": "header",
                    "text": "Integration",
                    "size": 2
                },
                "integration": {
                    "type": "select",
                    "label": "Huawei Device Integration",
                    "options":[{"label": "SDongle (communication expansion module)", "value":0}, {"label": "SmartLogger (monitors and manages PV and energy storage systems)", "value":1},{"label": "EMMA (Huawei Energy Management Assistant)", "value":2}],
                    "newLine": true,
                    "xs": 12,
                    "sm": 12,
                    "md": 6,
                    "lg": 4,
                    "xl": 4
                },
                "mainHdr2": {
                    "newLine": true,
                    "type": "header",
                    "text": "Device Settings",
                    "size": 2
                },
                "address": {
                    "type": "text",
                    "label": "address",
                    "tooltip": "The device ip address",
                    "newLine": true,
                    "xs": 12,
                    "sm": 12,
                    "md": 6,
                    "lg": 4,
                    "xl": 4
                },
                "port": {
                    "type": "number",
                    "label": "port",
                    "min" : 1,
                    "max" : 655565,
                    "default": 502,
                    "newLine": true,
                    "tooltip": "The modbus TCP port",
                    "xs": 12,
                    "sm": 12,
                    "md": 6,
                    "lg": 4,
                    "xl": 4
                },
                "modbusIds": {
                    "type": "text",
                    "label": "Modbus inverter IDs",
                    "default": "1",
                    "newLine": true,
                    "tooltip": "The modbus inverter IDs, separated with character ,",
                    "xs": 12,
                    "sm": 12,
                    "md": 6,
                    "lg": 4,
                    "xl": 4
                },
                "updateInterval": {
                    "type": "number",
                    "label": "Update interval (sec)",
                    "min" : 5,
                    "max" : 120,
                    "default": 20,
                    "newLine": true,
                    "tooltip": "Update interval to update the values from the devices",
                    "xs": 12,
                    "sm": 12,
                    "md": 6,
                    "lg": 4,
                    "xl": 4
                }
            }    
        },
        "tab4": {
            "type": "panel",
            "label": "Integration Settings",
            "items": {
                "mainHdr1": {
                    "newLine": true,
                    "type": "header",
                    "text": "SDongle Settings",
                    "size": 2
                },
                "chipsTxt": {
                    "type": "staticText",
                    "text": "Provides the collected data from the SDongle",
                    "newLine": true,
                    "xs": 12,
                    "sm": 12,
                    "md": 6,
                    "lg": 4,
                    "xl": 4
                },
                "sd_active": {
                    "type": "checkbox",
                    "label": "sd.active",
                    "newLine": true,
                    "tooltip": "SDongle active",
                    "disabled": "data.integration != 0",
                    "xs": 12,
                    "sm": 12,
                    "md": 6,
                    "lg": 4,
                    "xl": 4
                }, 
                "sDongleId": {
                    "type": "text",
                    "label": "SDongleA modbus ID",
                    "disabled": "data.integration != 0",
                    "newLine": true,
                    "xs": 12,
                    "sm": 12,
                    "md": 6,
                    "lg": 4,
                    "xl": 4
                },    
                "mainHdr2": {
                    "newLine": true,
                    "type": "header",
                    "text": "SmartLogger Settings",
                    "size": 2
                },
                "sl_meterId": {
                    "type": "text",
                    "label": "sl.meterId",
                    "newLine": true,
                    "tooltip": "The Meter modbus ID",
                    "disabled": "data.integration != 1",
                    "xs": 12,
                    "sm": 12,
                    "md": 6,
                    "lg": 4,
                    "xl": 4
                },
                "mainHdr3": {
                    "newLine": true,
                    "type": "header",
                    "text": "EMMA Settings",
                    "size": 2
                },
                "chipsTxt1": {
                    "type": "staticText",
                    "text": "Placeholder for future Settings",
                    "newLine": true,
                    "xs": 12,
                    "sm": 12,
                    "md": 6,
                    "lg": 4,
                    "xl": 4
                }
            }
        },
        "tab5": {
            "type": "panel",
            "label": "Modbus-proxy",
            "items": {
                "modbusProxyHdr1": {
                    "newLine": true,
                    "type": "header",
                    "text": "Modbus tcp proxy for multiple client connections",
                    "size": 2
                },
                "chipsTxt": {
                    "type": "staticText",
                    "text": "Third party device such as wallbox, energy manager etc. can receive and send data even if the modbus interface of inverter is already in use. In addition you can mirror the sun2000 data to another IoBroker instance.",
                    "newLine": true,
                    "xs": 12,
                    "sm": 12,
                    "md": 6,
                    "lg": 4,
                    "xl": 4
                },
                "ms_active": {
                    "type": "checkbox",
                    "label": "ms.aktive",
                    "newLine": true,
                    "tooltip": "Modbus-proxy via TCP is active",
                    "xs": 12,
                    "sm": 12,
                    "md": 6,
                    "lg": 4,
                    "xl": 4
                }, 
                "ms_address": {
                    "type": "text",
                    "label": "ms.address",
                    "newLine": true,
                    "tooltip": "If want to listen only at localhost use 127.0.0.1",
                    "xs": 12,
                    "sm": 12,
                    "md": 6,
                    "lg": 4,
                    "xl": 4
                },
                "ms_port": {
                    "type": "port",
                    "label": "ms.port",
                    "newLine": true,
                    "tooltip" : "The Modbus-proxy TCP port",
                    "xs": 12,
                    "sm": 12,
                    "md": 6,
                    "lg": 4,
                    "xl": 4
                },
                "ms_log": {
                    "type": "checkbox",
                    "label": "ms.log",
                    "newLine": true,
                    "tooltip": "Advanced logging",
                    "xs": 12,
                    "sm": 12,
                    "md": 6,
                    "lg": 4,
                    "xl": 4
                }
            }
        },
        "tab3": {
            "type": "panel",
            "label": "Energy control",
            "items": {
                "mainHdr1": {
                    "newLine": true,
                    "type": "header",
                    "text": "Battery charge control",
                    "size": 2
                },
                "chipsTxt1": {
                    "type": "staticText",
                    "text": "This control is set in the opject path `sun2000.0.inverter.x.control.battery`",
                    "newLine": true,
                    "xs": 12,
                    "sm": 12,
                    "md": 6,
                    "lg": 4,
                    "xl": 4
                },
                "cb_tou": {
                    "type": "checkbox",
                    "label": "Create default TOU setting",
                    "newLine": true,
                    "help": "The `default TOU settings` is interesting for the `force battery charging from the grid` function, which is required for variable energy prices.",
                    "xs": 12,
                    "sm": 12,
                    "md": 6,
                    "lg": 4,
                    "xl": 4
                },
                "staticLink1": {
                    "type": "staticLink",
                    "text": "Description with examples",
                    "href": "https://github.com/bolliy/ioBroker.sun2000/wiki/Battery-control",
                    "button": true,
                    "icon": "info",
                    "newLine": true,
                    "xs": 12,
                    "sm": 12,
                    "md": 6,
                    "lg": 3,
                    "xl": 3
                },
                "mainHdr2": {
                    "newLine": true,
                    "type": "header",
                    "text": "Force charge discharge battery",
                    "size": 2
                },
                "chipsTxt2": {
                    "type": "staticText",
                    "text": "This control is set in the opject path `sun2000.0.inverter.x.control.battery`",
                    "newLine": true,
                    "xs": 12,
                    "sm": 12,
                    "md": 6,
                    "lg": 4,
                    "xl": 4
                },
                "staticLink2": {
                    "type": "staticLink",
                    "text": "Description with examples",
                    "href": "https://github.com/bolliy/ioBroker.sun2000/wiki/Erzwungenes-Laden-und-Entladen-der-Batterie-(Force-charge-discharge-battery)",
                    "button": true,
                    "icon": "info",
                    "newLine": true,
                    "xs": 12,
                    "sm": 12,
                    "md": 6,
                    "lg": 3,
                    "xl": 3
                },
                "mainHdr3": {
                    "newLine": true,
                    "type": "header",
                    "text": "Export control",
                    "size": 2
                },
                "chipsTxt3": {
                    "type": "staticText",
                    "text": "This control is set in the opject path `sun2000.0.inverter.0.control.grid`",
                    "newLine": true,
                    "xs": 12,
                    "sm": 12,
                    "md": 6,
                    "lg": 4,
                    "xl": 4
                },
                "staticLink3": {
                    "type": "staticLink",
                    "text": "Description with examples",
                    "href": "https://github.com/bolliy/ioBroker.sun2000/wiki/Begrenzung-Netzeinspeisung-(Export-Control)",
                    "button": true,
                    "icon": "info",
                    "newLine": true,
                    "xs": 12,
                    "sm": 12,
                    "md": 6,
                    "lg": 3,
                    "xl": 3
                }
            }
        },  
        "tab7": {
            "type": "panel",
            "label": "Further Register",
            "items": {
                "mainHdr1": {
                    "newLine": true,
                    "type": "header",
                    "text": "Further battery register data",
                    "size": 2
                },
                "ds_bu": {
                    "type": "checkbox",
                    "label": "battery units",
                    "newLine": true,
                    "help": "This register data is stored in the opject path `sun2000.x.inverter.x.battery.unit`",
                    "xs": 12,
                    "sm": 12,
                    "md": 6,
                    "lg": 4,
                    "xl": 4
                },
                "ds_bp": {
                    "type": "checkbox",
                    "label": "battery packs",
                    "newLine": true,
                    "help": "This register data is stored in the opject path `sun2000.x.inverter.x.battery.unit.x.pack`",
                    "xs": 12,
                    "sm": 12,
                    "md": 6,
                    "lg": 4,
                    "xl": 4
                }
            }
        },
        "tab2": {
            "type": "panel",
            "label": "Modbus timing",
            "items": {
                "timmingHdr1": {
                    "newLine": true,
                    "type": "header",
                    "text": "Modbus timing Settings",
                    "size": 2
                },
                "timeout": {
                    "type": "number",
                    "label": "timeout (ms)",
                    "min" : 5000,
                    "max" : 30000,
                    "newLine": true,
                    "tooltip": "Modbus connection timeout",
                    "xs": 12,
                    "sm": 12,
                    "md": 6,
                    "lg": 4,
                    "xl": 4
                },      
                "delay": {
                    "type": "number",
                    "label": "delay (ms)",
                    "min" : 0,
                    "max" : 6000,
                    "newLine": true,
                    "tooltip": "Delay between modbus requests",
                    "xs": 12,
                    "sm": 12,
                    "md": 6,
                    "lg": 4,
                    "xl": 4
                },
                "connectDelay": {
                    "type": "number",
                    "label": "connect delay (ms)",
                    "min" : 2000,
                    "max" : 10000,
                    "newLine": true,
                    "tooltip": "Delay after modbus connected",
                    "xs": 12,
                    "sm": 12,
                    "md": 6,
                    "lg": 4,
                    "xl": 4
                },
                "autoAdjust": {
                    "type": "checkbox",
                    "label": "auto-adjust",
                    "newLine": true,
                    "tooltip": "Automatic adjustment of the modbus settings",
                    "xs": 12,
                    "sm": 12,
                    "md": 6,
                    "lg": 4,
                    "xl": 4
                }          
            }
        },  
        "tab6": {
            "type": "panel",
            "label": "help",
            "items": {
                "Hdr1": {
                    "newLine": true,
                    "type": "header",
                    "text": "How do I get help?",
                    "size": 2
                },
                "chipsTxt": {
                    "type": "staticText",
                    "text": "Do you need help? There are multiple ways of getting support. ",
                    "newLine": true,
                    "xs": 12,
                    "sm": 12,
                    "md": 6,
                    "lg": 4,
                    "xl": 4
                },
                "staticLink1": {
                    "type": "staticLink",
                    "text": "Available help options",
                    "href": "https://github.com/bolliy/ioBroker.sun2000/wiki/Hilfe-(support)",
                    "icon": "info",
                    "button": true,
                    "newLine": true,
                    "xs": 12,
                    "sm": 12,
                    "md": 6,
                    "lg": 3,
                    "xl": 3
                }
            }   
        }    
    }
}