Sharing Templates

I have been digging a bit more into Genieacs and compared to some other solutions, I believe it is missing that we share a bit different templates for DevicePage, IndexPage and even Overview, in a way that we could share each other views from products that we have in our hands.

I would start by the devicepage that export several inputs related to the device. I would be glad to receive also from the members some other interesting views/buttons actions, graphs that could help to enhance Genie itself.

Indexpage

- label: "'Serial number'"
  parameter: DeviceID.SerialNumber
  type: "'device-link'"
  components:
    - type: "'parameter'"
- label: "'Product class'"
  parameter: DeviceID.ProductClass
- label: "'Software version'"
  parameter: Device.DeviceInfo.SoftwareVersion
- label: "'IP'"
  parameter: Device.IP.Interface.2.IPv4Address.1.IPAddress
- label: "'SSID 2.4Ghz'"
  parameter: Device.WiFi.SSID.1.SSID
- label: "'SSID 5Ghz'"
  parameter: Device.WiFi.SSID.2.SSID
- element: "'span.inform'"
  label: "'Last inform'"
  parameter: DATE_STRING(Events.Inform)
  type: "'container'"
  components:
    - type: "'parameter'"
    - chart: "'online'"
      type: "'overview-dot'"
- label: "'Tags'"
  parameter: Tags
  type: "'tags'"
  unsortable: true
  writable: false

DevicePage

- type: "'tags'"
- type: "'ping'"
- type: "'parameter-list'"
  parameters:
    - element: "'span.inform'"
      label: "'Last inform'"
      parameter: DATE_STRING(Events.Inform)
      type: "'container'"
      components:
        - type: "'parameter'"
        - chart: "'online'"
          type: "'overview-dot'"
        - type: "'summon-button'"
          parameters:
            - Device.DeviceInfo.UpTime
    - label: "'Serial number'"
      parameter: DeviceID.SerialNumber
    - label: "'Product class'"
      parameter: DeviceID.ProductClass
    - label: "'OUI'"
      parameter: DeviceID.OUI
    - label: "'Manufacturer'"
      parameter: DeviceID.Manufacturer
    - label: "'Hardware version'"
      parameter: Device.DeviceInfo.HardwareVersion
    - label: "'Software version'"
      parameter: Device.DeviceInfo.SoftwareVersion
    - label: "'MAC'"
      parameter: Device.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.MACAddress
    - label: "'IP'"
      parameter: Device.IP.Interface.2.IPv4Address.1.IPAddress
    - label: "'Uptime'"
      parameter: Device.DeviceInfo.UpTime
    - label: "'CPU Usage'"
      parameter: Device.DeviceInfo.ProcessStatus.CPUUsage
    - label: "'Free Memory'"
      parameter: Device.DeviceInfo.MemoryStatus.Free
- label: "'LAN hosts'"
  parameter: Device.DHCPv4.Server.Pool.1.Client
  type: "'parameter-table'"
  childParameters:
    - label: "'Host name'"
      parameter: Alias
    - label: "'IP address'"
      parameter: IPv4Address.1.IPAddress
    - label: "'MAC address'"
      parameter: Chaddr
    - label: "'Leasing'"
      parameter: IPv4Address.1.LeaseTimeRemaining
- label: "'WiFi Information'"
  parameter: Device.WiFi.Radio
  type: "'parameter-table'"
  childParameters:
    - label: "'Alias'"
      parameter: Alias
    - label: "'Status'"
      parameter: Status
    - label: "'Channel'"
      parameter: Channel
    - label: "'Channel Bandwidth'"
      parameter: CurrentOperatingChannelBandwidth
    - label: "'Bands'"
      parameter: OperatingFrequencyBand
    - label: "'Transmit Power'"
      parameter: TransmitPower
- type: "'parameter-list'"
  parameters:
    - label: "'WLAN SSID 2.4Ghz'"
      parameter: Device.WiFi.SSID.1.SSID
    - label: "'WLAN BSSID 2.4Ghz'"
      parameter: Device.WiFi.SSID.1.BSSID
    - label: "'Associated Devices 2.4GHz'"
      parameter: Device.WiFi.AccessPoint.1.AssociatedDevice
      type: "'parameter-table'"
      childParameters:
        - label: "'MAC address'"
          parameter: MACAddress
        - label: "'SignalStrength'"
          parameter: SignalStrength
    - label: "'WLAN SSID 5Ghz'"
      parameter: Device.WiFi.SSID.2.SSID
    - label: "'WLAN BSSID 5Ghz'"
      parameter: Device.WiFi.SSID.2.BSSID
    - label: "'Associated Devices 5GHz'"
      parameter: Device.WiFi.AccessPoint.2.AssociatedDevice
      type: "'parameter-table'"
      childParameters:
        - label: "'MAC address'"
          parameter: MACAddress
        - label: "'SignalStrength'"
          parameter: SignalStrength
    - label: "'WLAN passphrase'"
      parameter: Device.WiFi.AccessPoint.1.Security.KeyPassphrase
    - label: "'Country Code Configuration 2.4Ghz'"
      parameter: Device.WiFi.Radio.1.RegulatoryRegionSubRegion
    - label: "'Country Code Configuration 5Ghz'"
      parameter: Device.WiFi.Radio.2.RegulatoryRegionSubRegion
- element: "'div'"
  type: "'container'"
  components:
    - element: "'h3'"
      type: "'container'"
      components:
        - "'Faults'"
    - type: "'device-faults'"
- element: "'div.container-full-width'"
  type: "'container'"
  components:
    - element: "'h3'"
      type: "'container'"
      components:
        - "'All parameters'"
    - type: "'all-parameters'"
- type: "'device-actions'"

1 Like