dvdgeisler / DirigeraClient

Dirigera Client API: Java written client API to interface IKEA's new smarthome hub DIRIGERA
MIT License
74 stars 9 forks source link

Some Dump, maybe helps implementing the Light remote #68

Open phil2sat opened 1 year ago

phil2sat commented 1 year ago

Motion Sensor, TRADFRI motion sensor Power Socket, ASKVADER on/off switch Remote Control, Remote Control N2 (included with the bulb) Two Light Bulbs, TRADFRIbulbE27WSglobeopal1055lm

{ "hub" : { "id" : "848a4293-f942-4c85-91a0-7a6cf9f32xxx_1", "relationId" : "848a4293-f942-4c85-91a0-7a6cf9f32xxx", "type" : "gateway", "deviceType" : "gateway", "createdAt" : "2022-11-25T08:39:11.742Z", "isReachable" : true, "lastSeen" : "2023-01-14T13:16:39.296Z", "attributes" : { "customName" : "Flur", "model" : "DIRIGERA Hub for smart products", "manufacturer" : "IKEA of Sweden", "firmwareVersion" : "2.172.1", "hardwareVersion" : "P2.5", "serialNumber" : "848a4293-f942-4c85-91a0-7a6cf9f32xxx", "identifyStarted" : "2000-01-01T00:00:00.000Z", "identifyPeriod" : 0, "otaStatus" : "upToDate", "otaState" : "readyToCheck", "otaProgress" : 0, "otaPolicy" : "autoDownload", "otaScheduleStart" : "00:00", "otaScheduleEnd" : "00:00", "permittingJoin" : false, "backendConnected" : false, "backendConnectionPersistent" : false, "backendOnboardingComplete" : true, "backendRegion" : "eu-central-1", "backendCountryCode" : "DE", "userConsents" : [ { "name" : "analytics", "value" : "disabled" }, { "name" : "diagnostics", "value" : "enabled" } ], "logLevel" : 3, "coredump" : false, "timezone" : "Europe/Berlin", "countryCode" : "XZ", "coordinates" : { "latitude" : 52.3963963963964, "longitude" : 11.102639068440782, "accuracy" : -1 }, "isOn" : false }, "capabilities" : { "canSend" : [ ], "canReceive" : [ "customName", "permittingJoin", "userConsents", "logLevel", "time", "timezone", "countryCode", "coordinates" ] }, "deviceSet" : [ ], "remoteLinks" : [ ] }, "devices" : [ { "id" : "32706b16-319a-4e92-999b-c36682d71bd7_1", "type" : "outlet", "deviceType" : "outlet", "createdAt" : "2023-01-10T18:20:11.000Z", "isReachable" : true, "lastSeen" : "2023-01-14T11:32:27.000Z", "attributes" : { "customName" : "Flur oben Schranklampen", "model" : "ASKVADER on/off switch", "manufacturer" : "IKEA of Sweden", "firmwareVersion" : "1.0.002", "hardwareVersion" : "1", "serialNumber" : "04CD15FFFE67DDDB", "productCode" : "E1836", "isOn" : true, "startupOnOff" : "startPrevious", "lightLevel" : 100, "identifyStarted" : "2000-01-01T00:00:00.000Z", "identifyPeriod" : 0, "permittingJoin" : false, "otaStatus" : "upToDate", "otaState" : "readyToCheck", "otaProgress" : 0, "otaPolicy" : "autoUpdate", "otaScheduleStart" : "00:00", "otaScheduleEnd" : "00:00" }, "capabilities" : { "canSend" : [ ], "canReceive" : [ "customName", "isOn", "lightLevel" ] }, "room" : { "id" : "6672f35e-23ce-425d-b5c1-b1dd03c73eca", "name" : "Flur", "color" : "pantone_16_0940_tcx", "icon" : "rooms_coat_hanger" }, "deviceSet" : [ ], "remoteLinks" : [ "aacebf90-2b03-42c6-8819-223f01935768_1" ], "isHidden" : false }, { "id" : "60d99b7f-fd1c-4cb5-acd2-8212a01dda78_1", "type" : "light", "deviceType" : "light", "createdAt" : "2023-01-10T18:46:40.000Z", "isReachable" : true, "lastSeen" : "2023-01-14T11:32:27.000Z", "attributes" : { "customName" : "Licht Flur oben vorne", "model" : "TRADFRIbulbE27WSglobeopal1055lm", "manufacturer" : "IKEA of Sweden", "firmwareVersion" : "1.0.012", "hardwareVersion" : "1", "serialNumber" : "385B44FFFE954D44", "productCode" : "LED2003G10", "isOn" : true, "startupOnOff" : "startOn", "lightLevel" : 100, "colorTemperature" : 2202, "colorTemperatureMin" : 4000, "colorTemperatureMax" : 2202, "colorMode" : "temperature", "identifyStarted" : "2000-01-01T00:00:00.000Z", "identifyPeriod" : 0, "permittingJoin" : false, "otaStatus" : "upToDate", "otaState" : "readyToCheck", "otaProgress" : 0, "otaPolicy" : "autoUpdate", "otaScheduleStart" : "00:00", "otaScheduleEnd" : "00:00" }, "capabilities" : { "canSend" : [ ], "canReceive" : [ "customName", "isOn", "lightLevel", "colorTemperature" ] }, "room" : { "id" : "6672f35e-23ce-425d-b5c1-b1dd03c73eca", "name" : "Flur", "color" : "pantone_16_0940_tcx", "icon" : "rooms_coat_hanger" }, "deviceSet" : [ ], "remoteLinks" : [ "aacebf90-2b03-42c6-8819-223f01935768_1" ], "isHidden" : false }, { "id" : "848a4293-f942-4c85-91a0-7a6cf9f3295b_1", "relationId" : "848a4293-f942-4c85-91a0-7a6cf9f3295b", "type" : "gateway", "deviceType" : "gateway", "createdAt" : "2022-11-25T08:39:11.742Z", "isReachable" : true, "lastSeen" : "2023-01-14T13:16:39.296Z", "attributes" : { "customName" : "Flur", "model" : "DIRIGERA Hub for smart products", "manufacturer" : "IKEA of Sweden", "firmwareVersion" : "2.172.1", "hardwareVersion" : "P2.5", "serialNumber" : "848a4293-f942-4c85-91a0-7a6cf9f3295b", "identifyStarted" : "2000-01-01T00:00:00.000Z", "identifyPeriod" : 0, "otaStatus" : "upToDate", "otaState" : "readyToCheck", "otaProgress" : 0, "otaPolicy" : "autoDownload", "otaScheduleStart" : "00:00", "otaScheduleEnd" : "00:00", "permittingJoin" : false, "backendConnected" : false, "backendConnectionPersistent" : false, "backendOnboardingComplete" : true, "backendRegion" : "eu-central-1", "backendCountryCode" : "DE", "userConsents" : [ { "name" : "analytics", "value" : "disabled" }, { "name" : "diagnostics", "value" : "enabled" } ], "logLevel" : 3, "coredump" : false, "timezone" : "Europe/Berlin", "countryCode" : "XZ", "coordinates" : { "latitude" : 52.3963963963964, "longitude" : 11.102639068440782, "accuracy" : -1 }, "isOn" : false }, "capabilities" : { "canSend" : [ ], "canReceive" : [ "customName", "permittingJoin", "userConsents", "logLevel", "time", "timezone", "countryCode", "coordinates" ] }, "deviceSet" : [ ], "remoteLinks" : [ ] }, { "id" : "a4b04427-bf94-44b8-b3d9-c8e17b78d715_1", "type" : "sensor", "deviceType" : "motionSensor", "createdAt" : "2023-01-11T21:21:54.000Z", "isReachable" : true, "lastSeen" : "2023-01-11T21:22:13.000Z", "attributes" : { "customName" : "Melder Flur oben", "model" : "TRADFRI motion sensor", "manufacturer" : "IKEA of Sweden", "firmwareVersion" : "24.4.5", "hardwareVersion" : "1", "serialNumber" : "70AC08FFFE8877D5", "productCode" : "E1745", "batteryPercentage" : 100, "isOn" : false, "lightLevel" : 1, "permittingJoin" : false, "otaStatus" : "upToDate", "otaState" : "readyToCheck", "otaProgress" : 0, "otaPolicy" : "autoUpdate", "otaScheduleStart" : "00:00", "otaScheduleEnd" : "00:00", "sensorConfig" : { "scheduleOn" : false, "onDuration" : 120, "schedule" : { "onCondition" : { "time" : "16:30" }, "offCondition" : { "time" : "08:30" } } } }, "capabilities" : { "canSend" : [ "isOn", "lightLevel" ], "canReceive" : [ "customName" ] }, "room" : { "id" : "6672f35e-23ce-425d-b5c1-b1dd03c73eca", "name" : "Flur", "color" : "pantone_16_0940_tcx", "icon" : "rooms_coat_hanger" }, "deviceSet" : [ ], "remoteLinks" : [ ], "isHidden" : false }, { "id" : "aacebf90-2b03-42c6-8819-223f01935768_1", "type" : "controller", "deviceType" : "lightController", "createdAt" : "2023-01-10T19:16:06.000Z", "isReachable" : true, "lastSeen" : "2023-01-14T11:58:57.000Z", "attributes" : { "customName" : "Fernbedienung Flur oben", "model" : "Remote Control N2", "manufacturer" : "IKEA of Sweden", "firmwareVersion" : "1.0.024", "hardwareVersion" : "1", "serialNumber" : "385B44FFFE9A6814", "productCode" : "E2001", "batteryPercentage" : 95, "isOn" : false, "lightLevel" : 1, "permittingJoin" : false, "otaStatus" : "upToDate", "otaState" : "readyToCheck", "otaProgress" : 0, "otaPolicy" : "autoUpdate", "otaScheduleStart" : "00:00", "otaScheduleEnd" : "00:00" }, "capabilities" : { "canSend" : [ "isOn", "lightLevel" ], "canReceive" : [ "customName" ] }, "room" : { "id" : "6672f35e-23ce-425d-b5c1-b1dd03c73eca", "name" : "Flur", "color" : "pantone_16_0940_tcx", "icon" : "rooms_coat_hanger" }, "deviceSet" : [ ], "remoteLinks" : [ ], "isHidden" : false }, { "id" : "eacebb00-54eb-441d-bcd7-8331208abaca_1", "type" : "light", "deviceType" : "light", "createdAt" : "2023-01-10T19:05:12.000Z", "isReachable" : true, "lastSeen" : "2023-01-14T11:32:28.000Z", "attributes" : { "customName" : "Licht Flur oben hinten", "model" : "TRADFRIbulbE27WSglobeopal1055lm", "manufacturer" : "IKEA of Sweden", "firmwareVersion" : "1.0.012", "hardwareVersion" : "1", "serialNumber" : "F4B3B1FFFE681091", "productCode" : "LED2003G10", "isOn" : true, "startupOnOff" : "startOn", "lightLevel" : 100, "colorTemperature" : 2202, "colorTemperatureMin" : 4000, "colorTemperatureMax" : 2202, "colorMode" : "temperature", "identifyStarted" : "2000-01-01T00:00:00.000Z", "identifyPeriod" : 0, "permittingJoin" : false, "otaStatus" : "upToDate", "otaState" : "readyToCheck", "otaProgress" : 0, "otaPolicy" : "autoUpdate", "otaScheduleStart" : "00:00", "otaScheduleEnd" : "00:00" }, "capabilities" : { "canSend" : [ ], "canReceive" : [ "customName", "isOn", "lightLevel", "colorTemperature" ] }, "room" : { "id" : "6672f35e-23ce-425d-b5c1-b1dd03c73eca", "name" : "Flur", "color" : "pantone_16_0940_tcx", "icon" : "rooms_coat_hanger" }, "deviceSet" : [ ], "remoteLinks" : [ "aacebf90-2b03-42c6-8819-223f01935768_1" ], "isHidden" : false } ], "scenes" : [ ], "rooms" : [ { "id" : "6672f35e-23ce-425d-b5c1-b1dd03c73eca", "name" : "Flur", "color" : "pantone_16_0940_tcx", "icon" : "rooms_coat_hanger" } ], "deviceSets" : [ ], "music" : { "playlists" : [ ], "favorites" : [ ] } } { "hub" : { "id" : "848a4293-f942-4c85-91a0-7a6cf9f3295b_1", "relationId" : "848a4293-f942-4c85-91a0-7a6cf9f3295b", "type" : "gateway", "deviceType" : "gateway", "createdAt" : "2022-11-25T08:39:11.742Z", "isReachable" : true, "lastSeen" : "2023-01-14T13:16:39.296Z", "attributes" : { "customName" : "Flur", "model" : "DIRIGERA Hub for smart products", "manufacturer" : "IKEA of Sweden", "firmwareVersion" : "2.172.1", "hardwareVersion" : "P2.5", "serialNumber" : "848a4293-f942-4c85-91a0-7a6cf9f3295b", "identifyStarted" : "2000-01-01T00:00:00.000Z", "identifyPeriod" : 0, "otaStatus" : "upToDate", "otaState" : "readyToCheck", "otaProgress" : 0, "otaPolicy" : "autoDownload", "otaScheduleStart" : "00:00", "otaScheduleEnd" : "00:00", "permittingJoin" : false, "backendConnected" : false, "backendConnectionPersistent" : false, "backendOnboardingComplete" : true, "backendRegion" : "eu-central-1", "backendCountryCode" : "DE", "userConsents" : [ { "name" : "analytics", "value" : "disabled" }, { "name" : "diagnostics", "value" : "enabled" } ], "logLevel" : 3, "coredump" : false, "timezone" : "Europe/Berlin", "countryCode" : "XZ", "coordinates" : { "latitude" : 52.3963963963964, "longitude" : 11.102639068440782, "accuracy" : -1 }, "isOn" : false }, "capabilities" : { "canSend" : [ ], "canReceive" : [ "customName", "permittingJoin", "userConsents", "logLevel", "time", "timezone", "countryCode", "coordinates" ] }, "deviceSet" : [ ], "remoteLinks" : [ ] }, "devices" : [ { "id" : "32706b16-319a-4e92-999b-c36682d71bd7_1", "type" : "outlet", "deviceType" : "outlet", "createdAt" : "2023-01-10T18:20:11.000Z", "isReachable" : true, "lastSeen" : "2023-01-14T11:32:27.000Z", "attributes" : { "customName" : "Flur oben Schranklampen", "model" : "ASKVADER on/off switch", "manufacturer" : "IKEA of Sweden", "firmwareVersion" : "1.0.002", "hardwareVersion" : "1", "serialNumber" : "04CD15FFFE67DDDB", "productCode" : "E1836", "isOn" : true, "startupOnOff" : "startPrevious", "lightLevel" : 100, "identifyStarted" : "2000-01-01T00:00:00.000Z", "identifyPeriod" : 0, "permittingJoin" : false, "otaStatus" : "upToDate", "otaState" : "readyToCheck", "otaProgress" : 0, "otaPolicy" : "autoUpdate", "otaScheduleStart" : "00:00", "otaScheduleEnd" : "00:00" }, "capabilities" : { "canSend" : [ ], "canReceive" : [ "customName", "isOn", "lightLevel" ] }, "room" : { "id" : "6672f35e-23ce-425d-b5c1-b1dd03c73eca", "name" : "Flur", "color" : "pantone_16_0940_tcx", "icon" : "rooms_coat_hanger" }, "deviceSet" : [ ], "remoteLinks" : [ "aacebf90-2b03-42c6-8819-223f01935768_1" ], "isHidden" : false }, { "id" : "60d99b7f-fd1c-4cb5-acd2-8212a01dda78_1", "type" : "light", "deviceType" : "light", "createdAt" : "2023-01-10T18:46:40.000Z", "isReachable" : true, "lastSeen" : "2023-01-14T11:32:27.000Z", "attributes" : { "customName" : "Licht Flur oben vorne", "model" : "TRADFRIbulbE27WSglobeopal1055lm", "manufacturer" : "IKEA of Sweden", "firmwareVersion" : "1.0.012", "hardwareVersion" : "1", "serialNumber" : "385B44FFFE954D44", "productCode" : "LED2003G10", "isOn" : true, "startupOnOff" : "startOn", "lightLevel" : 100, "colorTemperature" : 2202, "colorTemperatureMin" : 4000, "colorTemperatureMax" : 2202, "colorMode" : "temperature", "identifyStarted" : "2000-01-01T00:00:00.000Z", "identifyPeriod" : 0, "permittingJoin" : false, "otaStatus" : "upToDate", "otaState" : "readyToCheck", "otaProgress" : 0, "otaPolicy" : "autoUpdate",