Interface DeviceClass

  • All Implemented Interfaces:

    
    public interface DeviceClass
    
                        

    Device classes are "things" HA knows about that can handle values with units.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Unit addDiscovery(JSONObject json, String unitOfMeasurement) Modifies the given JSON object by removing the "icon" and replacing with the "device type" if this type is not NONE.
      abstract String getName()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • addDiscovery

         Unit addDiscovery(JSONObject json, String unitOfMeasurement)

        Modifies the given JSON object by removing the "icon" and replacing with the "device type" if this type is not NONE.