UNPKG

oma-json

Version:

JSON schemas description from LwM2M [Open Mobile Alliance](http://www.openmobilealliance.org/wp/OMNA/LwM2M/LwM2MRegistry.html)

45 lines (43 loc) 1.49 kB
/* tslint:disable */ /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run json-schema-to-typescript to regenerate this file. */ /** * used to control a light source, such as a LED or other light. It allows a light to be turned on or off and its dimmer setting to be control as a % between 0 and 100. An optional colour setting enables a string to be used to indicate the desired colour. */ export interface LightControl { /** * If present, the type of sensor defined as the UCUM Unit Definition e.g. “Cel” for Temperature in Celcius. */ "5701"?: string; /** * A string representing a value in some color space */ "5706"?: string; /** * The application type of the sensor or actuator as a string, for instance, “Air Pressure”. */ "5750"?: string; /** * The total power in Wh that the light has used. */ "5805"?: number; /** * The power factor of the actuactor. */ "5820"?: number; /** * This resource represents a power source, which can be controlled, the setting of which is a Boolean value (1,0) where 1 is on and 0 is off */ "5850"?: boolean; /** * This resource represents dimmer setting, which has an Integer value between 0 and 100 as a percentage. */ "5851"?: number; /** * The time in seconds that the device has been on. Writing a value of 0 resets the counter. */ "5852"?: number; }