{
  type: 'panel',
  i18n: true,
  items: {
    apiToken: {
      newLine: true,
      repeat: false,
      visible: true,
      hidden: 'data.localConnection && data.expertSettings',
      disabled: 'data.localConnection',
      xs: 12,
      sm: 12,
      md: 6,
      lg: 4,
      xl: 4,
      help: 'Get the Token ID from Solax',
      helpLink: 'https://global.solaxcloud.com/blue/#/ecosystem',
      type: 'password',
      label: 'Token ID',
    },
    serialNumber: {
      newLine: false,
      hidden: 'data.localConnection && data.expertSettings',
      disabled: "data.localConnection'",
      xs: 12,
      sm: 12,
      md: 6,
      lg: 4,
      xl: 4,
      help: 'serial Number',
      type: 'text',
      label: 'serial Number',
    },
    requestInterval: {
      newLine: true,
      hidden: 'data.localConnection && data.expertSettings',
      disabled: 'data.localConnection',
      xs: 12,
      sm: 12,
      md: 6,
      lg: 4,
      xl: 4,
      min: 1,
      max: 120,
      help: 'Request Interval (minutes)',
      type: 'number',
      label: 'Request Interval',
    },
    hostIP: {
      newLine: true,
      hidden: '!data.localConnection || !data.expertSettings',
      disabled: '!data.localConnection',
      xs: 12,
      sm: 12,
      md: 6,
      lg: 4,
      xl: 4,
      help: 'Local IP Wifi Pocket Stick',
      type: 'text',
      label: 'Local IP Wifi Pocket Stick',
    },
    passwordWifi: {
      newLine: false,
      repeat: false,
      visible: true,
      hidden: '!data.localConnection || !data.expertSettings',
      disabled: '!data.localConnection',
      xs: 12,
      sm: 12,
      md: 8,
      lg: 4,
      xl: 4,
      help: 'Webinterface Password Wifi Pocket Stick',
      type: 'password',
      label: 'Webinterface Password Wifi Pocket Stick',
    },
    requestIntervalLocal: {
      newLine: true,
      hidden: '!data.localConnection || !data.expertSettings',
      disabled: '!data.localConnection',
      xs: 12,
      sm: 12,
      md: 6,
      lg: 4,
      xl: 4,
      min: 1,
      max: 3600,
      default: 10,
      help: 'Request Interval (seconds)',
      type: 'number',
      label: 'Request Interval',
    },
    countsOfOffline: {
      newLine: false,
      hidden: '!data.localConnection || !data.expertSettings',
      disabled: '!data.localConnection',
      xs: 12,
      sm: 12,
      md: 6,
      lg: 4,
      xl: 4,
      min: 1,
      max: 100,
      default: 5,
      help: 'Count of failed queries until detected as offline',
      type: 'number',
      label: 'Count of failed queries',
    },
    historyDays: {
      newLine: true,
      xs: 12,
      sm: 12,
      md: 6,
      lg: 4,
      xl: 4,
      min: 1,
      max: 365,
      default: 10,
      help: 'Number of days of history data',
      type: 'number',
      label: 'Number of days',
    },
    firmwareVersion: {
      newLine: false,
      hidden: '!data.localConnection || !data.expertSettings',
      disabled: '!data.localConnection',
      type: 'select',
      label: 'Firmware Version',
      help: 'Firmware Version Wifi-Stick',
      options: [
        {
          label: '2.xxx.xx',
          value: 2,
        },
        {
          label: '3.xxx.xx',
          value: 3,
        },
      ],
      xs: 12,
      sm: 12,
      md: 6,
      lg: 4,
      xl: 4,
    },
    systemGeoData: {
      newLine: true,
      type: 'checkbox',
      label: 'Use astro data from the system settings',
      xs: 12,
      sm: 12,
      md: 6,
      lg: 4,
      xl: 4,
    },
    nightMode: {
      newLine: false,
      type: 'checkbox',
      label: 'Query data at night',
      xs: 12,
      sm: 12,
      md: 6,
      lg: 4,
      xl: 4,
    },
    longitude: {
      newLine: true,
      hidden: 'data.systemGeoData',
      xs: 12,
      sm: 12,
      md: 6,
      lg: 4,
      xl: 4,
      help: 'longitude',
      type: 'text',
      label: 'longitude',
    },
    latitude: {
      newLine: false,
      hidden: 'data.systemGeoData',
      xs: 12,
      sm: 12,
      md: 6,
      lg: 4,
      xl: 4,
      help: 'latitude',
      type: 'text',
      label: 'latitude',
    },
    _helpLine: {
      newLine: true,
      type: 'divider',
      color: 'secondary',
      xs: 12,
      sm: 12,
      md: 12,
      lg: 12,
      xl: 12,
    },
    expertSettings: {
      newLine: true,
      type: 'checkbox',
      label: 'Expert Settings (Please read the Documentation before!)',
      xs: 12,
      sm: 12,
      md: 6,
      lg: 6,
      xl: 6,
    },
    localConnection: {
      newLine: true,
      type: 'checkbox',
      hidden: '!data.expertSettings',
      confirm: {
        text: 'Warning Local-Mode',
        condition: 'data.localConnection',
        title: 'Please confirm!',
        type: 'warning',
        ok: 'I have read the warning',
        cancel: 'I prefer to use the API cloud',
      },
      label: 'Local Connection to Wifi Pocket Stick',
      xs: 12,
      sm: 12,
      md: 6,
      lg: 6,
      xl: 6,
    },
    _helpLink: {
      type: 'staticLink',
      hidden: '!data.expertSettings',
      button: true,
      variant: 'contained',
      icon: 'info',
      label: 'Readme Expert Settings',
      href: 'https://github.com/simatec/ioBroker.solax/blob/master/README.md#experteneinstellungen',
      newLine: true,
      xs: 12,
      sm: 12,
      md: 12,
      lg: 12,
      xl: 12,
    },
    _helpLine2: {
      newLine: true,
      type: 'divider',
      color: 'secondary',
      xs: 12,
      sm: 12,
      md: 12,
      lg: 12,
      xl: 12,
    },
    _donateTxt: {
      type: 'staticText',
      text: 'If you like this project and would like to support its development, you are welcome to leave a donation.',
      newLine: true,
      xs: 12,
      sm: 12,
      md: 12,
      lg: 12,
      xl: 12,
    },
    _donate: {
      type: 'staticImage',
      tooltip: 'PayPal.Me',
      noTranslation: true,
      href: 'https://paypal.me/mk1676',
      src: 'https://img.shields.io/badge/paypal-donate%20%7C%20spenden-blue.svg',
      newLine: true,
      xs: 7,
      sm: 3,
      md: 3,
      lg: 1.2,
      xl: 1.2,
    },
    _githubSponsor: {
      type: 'staticImage',
      tooltip: 'GitHub Sponsors',
      noTranslation: true,
      href: 'https://github.com/sponsors/simatec',
      src: 'https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%A4&logo=GitHub&color=%23fe8e86',
      xs: 5,
      sm: 2,
      md: 2,
      lg: 0.8,
      xl: 0.8,
    },
  },
}