Switch module (GL-SD-002)
 This documentation was generated from: gl-sd-002_switch.json
  
    | Attribute | Value | 
  
  
    
      | status | 
      Gold | 
    
    
      | product | 
      Switch module (GL-SD-002) | 
    
    
      | modelid | 
      GL-SD-002 | 
    
    
      | manufacturername | 
      GLEDOPTO | 
    
  
1. On/Off light
 Endpoint: /lights
Top level attributes
  
    | Attribute | Datatype | Description | Access | 
  
  
    
      | lastannounced | 
      ISO 8601 timestamp | 
      Timestamp of the last power-cyle or rejoin. | 
      R | 
    
    
      | lastseen | 
      ISO 8601 timestamp | 
      Timestamp of the last communication. | 
      R | 
    
    
      | manufacturername | 
      String | 
      "GLEDOPTO" | 
      R | 
    
    
      | modelid | 
      String | 
      "GL-SD-002" | 
      R | 
    
    
      | name | 
      String | 
      Name of the resource. | 
      RW | 
    
    
      | swversion | 
      String | 
      Firmware version of the device. | 
      R | 
    
    
      | type | 
      String | 
      "On/Off light" | 
      R | 
    
    
      | uniqueid | 
      String | 
      Unique identifier of the resource. | 
      R | 
    
  
State attributes
  
    | Attribute | Datatype | Description | Access | 
  
  
    
      | on | 
      Bool | 
      True when device is on; false when off. | 
      RW | 
    
    
      | reachable | 
      Bool | 
      When true the device is assumed to be operational. | 
      R |