Difference between revisions of "LIFX Classes"

From Hubitat Documentation
Jump to: navigation, search
(GetColor)
(SetColor)
Line 248: Line 248:
 
===SetColor===
 
===SetColor===
 
Packet 102
 
Packet 102
 +
  class hubitat.lifx.commands.SetColor {
 +
      Integer hue
 +
      Integer saturation
 +
      Integer brightness
 +
      Integer kelvin
 +
      Long duration
 +
 
 +
      byte[] getPayload()
 +
      String format()
 +
  }
 +
 
===SetWaveform===
 
===SetWaveform===
 
Packet 103
 
Packet 103

Revision as of 14:32, 24 November 2021

Go to the top of the page

Discovery

GetService

Packet 2

 class hubitat.lifx.commands.GetService {
 
     byte[] getPayload()
     String format()
 }

StateService

Packet 3

 class hubitat.lifx.commands.StateService {
     Short service
     Long port
     
     static Short SERVICE_UDP = 0x01
     static Short SERVICE_RESERVED1 = 0x02
     static Short SERVICE_RESERVED2 = 0x03
     static Short SERVICE_RESERVED3 = 0x04
     static Short SERVICE_RESERVED4 = 0x05
 
     byte[] getPayload()
     String format()
 }

Device

GetHostFirmware

Packet 14

 class hubitat.lifx.commands.GetHostFirmware {
 
     byte[] getPayload()
     String format()
 }

StateHostFirmware

Packet 15

 class hubitat.lifx.commands.StateHostFirmware {
     Long build
     Integer versionMinor
     Integer versionMajor
 
     byte[] getPayload()
     String format()
 }

GetWifiInfo

Packet 16

 class hubitat.lifx.commands.GetWifiInfo {
 
     byte[] getPayload()
     String format()
 }

StateWifiInfo

Packet 17

 class hubitat.lifx.commands.StateWifiInfo {
     Float signal
 
     byte[] getPayload()
     String format()
 }

GetWifiFirmware

Packet 18

 class hubitat.lifx.commands.GetWifiFirmware {
 
     byte[] getPayload()
     String format()
 }

StateWifiFirmware

Packet 19

 class hubitat.lifx.commands.StateWifiFirmware {
     Long build
     Integer versionMinor
     Integer versionMajor
 
     byte[] getPayload()
     String format()
 }

GetPower

Packet 20

 class hubitat.lifx.commands.GetPower {
 
     byte[] getPayload()
     String format()
 }

SetPower

Packet 21

 class hubitat.lifx.commands.SetPower {
     Integer level
 
     byte[] getPayload()
     String format()
 }

StatePower

Packet 22

 class hubitat.lifx.commands.StatePower {
     Integer level
 
     byte[] getPayload()
     String format()
 }

GetLabel

Packet 23

 class hubitat.lifx.commands.GetLabel {
 
     byte[] getPayload()
     String format()
 }

SetLabel

Packet 24

 class hubitat.lifx.commands.SetLabel {
     String label
 
     byte[] getPayload()
     String format()
 }

StateLabel

Packet 25

 class hubitat.lifx.commands.StateLabel {
     String label
 
     byte[] getPayload()
     String format()
 }

GetVersion

Packet 32

 class hubitat.lifx.commands.GetVersion {
 
     byte[] getPayload()
     String format()
 }

StateVersion

Packet 33

 class hubitat.lifx.commands.StateVersion {
     Long vendor
     Long product
 
     byte[] getPayload()
     String format()
 }

SetReboot

Packet 38

 class hubitat.lifx.commands.SetReboot {
 
     byte[] getPayload()
     String format()
 }

GetLocation

Packet 48

 class hubitat.lifx.commands.GetLocation {
 
     byte[] getPayload()
     String format()
 }

SetLocation

Packet 49

 class hubitat.lifx.commands.SetLocation {
     String uuid
     String label
     Long updatedAt
 
     byte[] getPayload()
     String format()
 }

StateLocation

Packet 50

 class hubitat.lifx.commands.StateLocation {
     String uuid
     String label
     Long updatedAt
 
     byte[] getPayload()
     String format()
 }

GetGroup

Packet 51

 class hubitat.lifx.commands.GetGroup {
 
     byte[] getPayload()
     String format()
 }

SetGroup

Packet 52

 class hubitat.lifx.commands.SetGroup {
     String uuid
     String label
     Long updatedAt
 
     byte[] getPayload()
     String format()
 }

StateGroup

Packet 53

 class hubitat.lifx.commands.StateGroup {
     String uuid
     String label
     Long updatedAt
 
     byte[] getPayload()
     String format()
 }

EchoRequest

Packet 58

 class hubitat.lifx.commands.EchoRequest {
     byte[] echoing
 
     byte[] getPayload()
     String format()
 }

EchoResponse

Packet 59

 class hubitat.lifx.commands.EchoResponse {
     byte[] echoing
 
     byte[] getPayload()
     String format()
 }

Light

GetColor

Packet 101

 class hubitat.lifx.commands.GetColor {
 
     byte[] getPayload()
     String format()
 }

SetColor

Packet 102

 class hubitat.lifx.commands.SetColor {
     Integer hue
     Integer saturation
     Integer brightness
     Integer kelvin
     Long duration
 
     byte[] getPayload()
     String format()
 }

SetWaveform

Packet 103

LightState

Packet 107

GetLightPower

Packet 116

SetLightPower

Packet 117

StateLightPower

Packet 118

SetWaveformOptional

Packet 119

GetInfrared

Packet 120

StateInfrared

Packet 121

SetInfrared

Packet 122

GetHevCycle

Packet 142

SetHevCycle

Packet 143

StateHevCycle

Packet 144

GetHevCycleConfiguration

Packet 145

SetHevCycleConfiguration

Packet 146

StateHevCycleConfiguration

Packet 147

GetLastHevCycleResult

Packet 148

StateLastHevCycleResult

Packet 149

MultiZone

SetColorZones

Packet 501

GetColorZones

Packet 502

StateZone

Packet 503

GetMultiZoneEffect

Packet 507

SetMultiZoneEffect

Packet 508

StateMultiZoneEffect

Packet 509

SetExtendedColorZones

Packet 510

GetExtendedColorZones

Packet 511

StateExtendedColorZones

Packet 512

Relay

GetRPower

Packet 816

SetRPower

Packet 817

StateRPower

Packet 818

Tile

GetDeviceChain

Packet 701

StateDeviceChain

Packet 702

SetUserPosition

Packet 703

Get64

Packet 707

State64

Packet 711

Set64

Packet 715

GetTileEffect

Packet 718

SetTileEffect

Packet 719

StateTileEffect

Packet 720