dvdgeisler / DirigeraClient

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

Dump with control outlet, remote and Tredansen blind #70

Closed CJDumbleton closed 1 year ago

CJDumbleton commented 1 year ago

Thanks for all your work on this. Here is my output to add to your collection.

Setup is

I've removed the serial numbers and id numbers and replaced with \ or \. Let me know if that causes a problem.

{
  "hub" : {
    "id" : "<SERIAL NUMBER>_1",
    "relationId" : "<SERIAL NUMBER>",
    "type" : "gateway",
    "deviceType" : "gateway",
    "createdAt" : "2022-09-14T13:37:18.879Z",
    "isReachable" : true,
    "lastSeen" : "2023-02-12T17:45:09.365Z",
    "attributes" : {
      "customName" : "Bungalow",
      "model" : "DIRIGERA Hub for smart products",
      "manufacturer" : "IKEA of Sweden",
      "firmwareVersion" : "2.197.0",
      "hardwareVersion" : "P2.5",
      "serialNumber" : "<SERIAL NUMBER>",
      "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-west-1",
      "backendCountryCode" : "GB",
      "userConsents" : [ {
        "name" : "analytics",
        "value" : "enabled"
      }, {
        "name" : "diagnostics",
        "value" : "enabled"
      } ],
      "logLevel" : 3,
      "coredump" : false,
      "timezone" : "Europe/London",
      "countryCode" : "XZ",
      "isOn" : false
    },
    "capabilities" : {
      "canSend" : [ ],
      "canReceive" : [ "customName", "permittingJoin", "userConsents", "logLevel", "time", "timezone", "countryCode", "coordinates" ]
    },
    "deviceSet" : [ ],
    "remoteLinks" : [ ]
  },
  "devices" : [ {
    "id" : "<ID_NUMBER>",
    "type" : "outlet",
    "deviceType" : "outlet",
    "createdAt" : "2023-01-24T16:03:02.000Z",
    "isReachable" : true,
    "lastSeen" : "2023-02-11T07:33:31.000Z",
    "attributes" : {
      "customName" : "Oil radiator smart plug",
      "model" : "TRADFRI control outlet",
      "manufacturer" : "IKEA of Sweden",
      "firmwareVersion" : "2.3.089",
      "hardwareVersion" : "1",
      "serialNumber" : "<SERIAL NUMBER>",
      "productCode" : "E1603",
      "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" : "<ID_NUMBER>",
      "name" : "Kitchen",
      "color" : "ikea_blue_no_58",
      "icon" : "rooms_pot_with_lid"
    },
    "deviceSet" : [ ],
    "remoteLinks" : [ ],
    "isHidden" : false
  }, {
    "id" : "<ID_NUMBER>",
    "type" : "speaker",
    "deviceType" : "speaker",
    "createdAt" : "2023-01-06T04:08:26.457Z",
    "isReachable" : true,
    "lastSeen" : "2023-02-12T13:51:20.734Z",
    "attributes" : {
      "customName" : "Sonos Move",
      "model" : "Sonos Move S17 ColorBlack",
      "manufacturer" : "Sonos, Inc.",
      "firmwareVersion" : "70.4-36090",
      "hardwareVersion" : "1.25.1.7-2.2",
      "serialNumber" : "<SERIAL NUMBER>",
      "productCode" : "S17Black",
      "identifyStarted" : "0001-01-01T00:00:00.000Z",
      "identifyPeriod" : 0,
      "playback" : "playbackIdle",
      "playbackLastChangedTimestamp" : "2023-02-12T13:51:20.734Z",
      "playbackAudio" : { },
      "playbackPosition" : {
        "position" : 0,
        "timestamp" : "2023-02-12T13:51:20.734Z"
      },
      "playbackAvailableActions" : {
        "crossfade" : true,
        "pause" : false,
        "repeat" : [ "off", "playItem", "playlist" ],
        "seek" : false,
        "shuffle" : true,
        "playbackNext" : false,
        "playbackPrev" : false
      },
      "playbackModes" : {
        "crossfade" : false,
        "repeat" : "off",
        "shuffle" : false
      },
      "volume" : 22,
      "isMuted" : false,
      "audioGroup" : "5e36bd51-74cb-4a0f-9f63-5e573c2740e0"
    },
    "capabilities" : {
      "canSend" : [ ],
      "canReceive" : [ "playback", "playbackAudio", "volume", "isMuted" ]
    },
    "deviceSet" : [ ],
    "remoteLinks" : [ ],
    "isHidden" : true
  }, {
    "id" : "<ID_NUMBER>",
    "type" : "outlet",
    "deviceType" : "outlet",
    "createdAt" : "2022-11-07T18:28:11.000Z",
    "isReachable" : true,
    "lastSeen" : "2023-02-12T09:00:00.000Z",
    "attributes" : {
      "customName" : "Studio display smart plug",
      "model" : "TRADFRI control outlet",
      "manufacturer" : "IKEA of Sweden",
      "firmwareVersion" : "2.3.089",
      "hardwareVersion" : "1",
      "serialNumber" : "<SERIAL NUMBER>",
      "productCode" : "E1603",
      "isOn" : true,
      "startupOnOff" : "startPrevious",
      "lightLevel" : 100,
      "identifyStarted" : "2023-02-05T15:28:01.000Z",
      "identifyPeriod" : 5,
      "permittingJoin" : false,
      "otaStatus" : "upToDate",
      "otaState" : "readyToCheck",
      "otaProgress" : 0,
      "otaPolicy" : "autoUpdate",
      "otaScheduleStart" : "00:00",
      "otaScheduleEnd" : "00:00"
    },
    "capabilities" : {
      "canSend" : [ ],
      "canReceive" : [ "customName", "isOn", "lightLevel" ]
    },
    "room" : {
      "id" : "<ID_NUMBER>",
      "name" : "Living room",
      "color" : "ikea_beige_no_3",
      "icon" : "rooms_arm_chair"
    },
    "deviceSet" : [ ],
    "remoteLinks" : [ ],
    "isHidden" : false
  }, {
    "id" : "<SERIAL NUMBER>_1",
    "relationId" : "<SERIAL NUMBER>",
    "type" : "gateway",
    "deviceType" : "gateway",
    "createdAt" : "2022-09-14T13:37:18.879Z",
    "isReachable" : true,
    "lastSeen" : "2023-02-12T17:45:09.365Z",
    "attributes" : {
      "customName" : "Bungalow",
      "model" : "DIRIGERA Hub for smart products",
      "manufacturer" : "IKEA of Sweden",
      "firmwareVersion" : "2.197.0",
      "hardwareVersion" : "P2.5",
      "serialNumber" : "<SERIAL NUMBER>",
      "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-west-1",
      "backendCountryCode" : "GB",
      "userConsents" : [ {
        "name" : "analytics",
        "value" : "enabled"
      }, {
        "name" : "diagnostics",
        "value" : "enabled"
      } ],
      "logLevel" : 3,
      "coredump" : false,
      "timezone" : "Europe/London",
      "countryCode" : "XZ",
      "isOn" : false
    },
    "capabilities" : {
      "canSend" : [ ],
      "canReceive" : [ "customName", "permittingJoin", "userConsents", "logLevel", "time", "timezone", "countryCode", "coordinates" ]
    },
    "deviceSet" : [ ],
    "remoteLinks" : [ ]
  }, {
    "id" : "<ID_NUMBER>",
    "type" : "controller",
    "deviceType" : "blindsController",
    "createdAt" : "2022-11-08T18:27:24.000Z",
    "isReachable" : true,
    "lastSeen" : "2023-02-12T14:00:34.000Z",
    "attributes" : {
      "customName" : "Kettle blind remote",
      "model" : "TRADFRI open/close remote",
      "manufacturer" : "IKEA of Sweden",
      "firmwareVersion" : "24.4.5",
      "hardwareVersion" : "1",
      "serialNumber" : "<SERIAL NUMBER>",
      "productCode" : "E1766",
      "batteryPercentage" : 80,
      "isOn" : false,
      "lightLevel" : 1,
      "blindsCurrentLevel" : 0,
      "blindsState" : "",
      "permittingJoin" : false,
      "otaStatus" : "upToDate",
      "otaState" : "readyToCheck",
      "otaProgress" : 0,
      "otaPolicy" : "autoUpdate",
      "otaScheduleStart" : "00:00",
      "otaScheduleEnd" : "00:00"
    },
    "capabilities" : {
      "canSend" : [ "isOn", "lightLevel", "blindsState" ],
      "canReceive" : [ "customName" ]
    },
    "room" : {
      "id" : "<ID_NUMBER>",
      "name" : "Kitchen",
      "color" : "ikea_blue_no_58",
      "icon" : "rooms_pot_with_lid"
    },
    "deviceSet" : [ ],
    "remoteLinks" : [ ],
    "isHidden" : false
  }, {
    "id" : "<ID_NUMBER>",
    "type" : "controller",
    "deviceType" : "blindsController",
    "createdAt" : "2022-11-07T18:07:09.000Z",
    "isReachable" : true,
    "lastSeen" : "2023-02-11T12:14:54.000Z",
    "attributes" : {
      "customName" : "Glassware remote",
      "model" : "TRADFRI open/close remote",
      "manufacturer" : "IKEA of Sweden",
      "firmwareVersion" : "24.4.5",
      "hardwareVersion" : "1",
      "serialNumber" : "<SERIAL NUMBER>",
      "productCode" : "E1766",
      "batteryPercentage" : 50,
      "isOn" : false,
      "lightLevel" : 1,
      "blindsCurrentLevel" : 0,
      "blindsState" : "",
      "permittingJoin" : false,
      "otaStatus" : "upToDate",
      "otaState" : "readyToCheck",
      "otaProgress" : 0,
      "otaPolicy" : "autoUpdate",
      "otaScheduleStart" : "00:00",
      "otaScheduleEnd" : "00:00"
    },
    "capabilities" : {
      "canSend" : [ "isOn", "lightLevel", "blindsState" ],
      "canReceive" : [ "customName" ]
    },
    "room" : {
      "id" : "<ID_NUMBER>",
      "name" : "Kitchen",
      "color" : "ikea_blue_no_58",
      "icon" : "rooms_pot_with_lid"
    },
    "deviceSet" : [ ],
    "remoteLinks" : [ ],
    "isHidden" : false
  }, {
    "id" : "<ID_NUMBER>",
    "type" : "blinds",
    "deviceType" : "blinds",
    "createdAt" : "2022-12-29T15:26:38.000Z",
    "isReachable" : false,
    "lastSeen" : "2023-02-12T12:33:45.000Z",
    "attributes" : {
      "customName" : "Kettle blind",
      "model" : "TREDANSEN block-out cellul blind",
      "manufacturer" : "IKEA of Sweden",
      "firmwareVersion" : "24.4.10",
      "hardwareVersion" : "1",
      "serialNumber" : "<SERIAL NUMBER>",
      "productCode" : "E2022",
      "batteryPercentage" : 93,
      "blindsTargetLevel" : 0,
      "blindsCurrentLevel" : 0,
      "blindsState" : "stopped",
      "permittingJoin" : false,
      "otaStatus" : "upToDate",
      "otaState" : "readyToCheck",
      "otaProgress" : 0,
      "otaPolicy" : "autoUpdate",
      "otaScheduleStart" : "00:00",
      "otaScheduleEnd" : "00:00"
    },
    "capabilities" : {
      "canSend" : [ ],
      "canReceive" : [ "customName", "blindsCurrentLevel", "blindsTargetLevel", "blindsState" ]
    },
    "room" : {
      "id" : "<ID_NUMBER>",
      "name" : "Kitchen",
      "color" : "ikea_blue_no_58",
      "icon" : "rooms_pot_with_lid"
    },
    "deviceSet" : [ ],
    "remoteLinks" : [ "<ID_NUMBER>" ],
    "isHidden" : false
  }, {
    "id" : "<ID_NUMBER>",
    "type" : "blinds",
    "deviceType" : "blinds",
    "createdAt" : "2022-12-29T15:26:33.000Z",
    "isReachable" : true,
    "lastSeen" : "2023-02-12T17:20:07.000Z",
    "attributes" : {
      "customName" : "Glassware blind",
      "model" : "TREDANSEN block-out cellul blind",
      "manufacturer" : "IKEA of Sweden",
      "firmwareVersion" : "",
      "hardwareVersion" : "1",
      "serialNumber" : "<SERIAL NUMBER>",
      "productCode" : "E2022",
      "batteryPercentage" : 89,
      "blindsTargetLevel" : 100,
      "blindsCurrentLevel" : 100,
      "blindsState" : "stopped",
      "permittingJoin" : false,
      "otaStatus" : "upToDate",
      "otaState" : "readyToCheck",
      "otaProgress" : 0,
      "otaPolicy" : "autoUpdate",
      "otaScheduleStart" : "00:00",
      "otaScheduleEnd" : "00:00"
    },
    "capabilities" : {
      "canSend" : [ ],
      "canReceive" : [ "customName", "blindsCurrentLevel", "blindsTargetLevel", "blindsState" ]
    },
    "room" : {
      "id" : "<ID_NUMBER>",
      "name" : "Kitchen",
      "color" : "ikea_blue_no_58",
      "icon" : "rooms_pot_with_lid"
    },
    "deviceSet" : [ ],
    "remoteLinks" : [ "<ID_NUMBER>" ],
    "isHidden" : false
  } ],
  "scenes" : [ {
    "id" : "<ID_NUMBER>",
    "info" : {
      "name" : "Studio display on",
      "icon" : "scenes_clean_sparkles"
    },
    "type" : "userScene",
    "triggers" : [ {
      "id" : "<ID_NUMBER>",
      "type" : "app",
      "disabled" : false
    }, {
      "id" : "<ID_NUMBER>",
      "type" : "time",
      "triggeredAt" : "2023-02-12T09:00:00.522Z",
      "disabled" : false,
      "trigger" : {
        "days" : [ "Mon", "Tue", "Wed", "Fri", "Sat", "Thu", "Sun" ],
        "time" : "09:00"
      },
      "nextTriggerAt" : "2023-02-13T09:00:00.000Z"
    } ],
    "actions" : [ {
      "id" : "<ID_NUMBER>",
      "type" : "device",
      "deviceId" : "<ID_NUMBER>",
      "attributes" : {
        "isOn" : true
      }
    } ],
    "commands" : [ ],
    "createdAt" : "2023-02-05T15:16:13.485Z",
    "lastCompleted" : "2023-02-12T09:00:00.538Z",
    "lastTriggered" : "2023-02-12T09:00:00.538Z",
    "undoAllowedDuration" : 30
  }, {
    "id" : "<ID_NUMBER>",
    "info" : {
      "name" : "Studio display off",
      "icon" : "scenes_clean_sparkles"
    },
    "type" : "userScene",
    "triggers" : [ {
      "id" : "<ID_NUMBER>",
      "type" : "app",
      "triggeredAt" : "2023-02-05T15:19:25.903Z",
      "disabled" : false
    }, {
      "id" : "<ID_NUMBER>",
      "type" : "time",
      "triggeredAt" : "2023-02-11T21:30:00.440Z",
      "disabled" : false,
      "trigger" : {
        "days" : [ "Wed", "Thu", "Sun", "Tue", "Mon", "Sat", "Fri" ],
        "time" : "21:30"
      },
      "nextTriggerAt" : "2023-02-12T21:30:00.000Z"
    } ],
    "actions" : [ {
      "id" : "<ID_NUMBER>",
      "type" : "device",
      "deviceId" : "<ID_NUMBER>",
      "attributes" : {
        "isOn" : false
      }
    } ],
    "commands" : [ ],
    "createdAt" : "2023-02-05T15:19:01.399Z",
    "lastCompleted" : "2023-02-11T21:30:00.448Z",
    "lastTriggered" : "2023-02-11T21:30:00.448Z",
    "undoAllowedDuration" : 30,
    "lastUndo" : "2023-02-05T15:19:25.912Z"
  } ],
  "rooms" : [ {
    "id" : "<ID_NUMBER>",
    "name" : "Bedroom",
    "color" : "ikea_yellow_no_28",
    "icon" : "rooms_bed"
  }, {
    "id" : "<ID_NUMBER>",
    "name" : "Living room",
    "color" : "ikea_beige_no_3",
    "icon" : "rooms_arm_chair"
  }, {
    "id" : "<ID_NUMBER>",
    "name" : "Kitchen",
    "color" : "ikea_blue_no_58",
    "icon" : "rooms_pot_with_lid"
  } ],
  "deviceSets" : [ ],
  "music" : {
    "playlists" : [ ],
    "favorites" : [ {
      "id" : "<ID_NUMBER>",
      "title" : "All",
      "type" : "PLAYLIST",
      "imageURL" : "https://sonos.plex.tv/img?height=1&minSize=1&upscale=1&url=https%3A%2F%2F178-79-142-46.3550c476b0ea407db29e112765e20202.plex.direct%3A8443%2Fplaylists%2F41878%2Fcomposite%2F1593097040%3FX-Plex-Client-Identifier%3Dsonos-04bcb8fb-e8a1-4f52-9680-5098e41d1124%26X-Plex-Token%3DYGLAnRgdwY2AkQH_XQyP&width=300"
    }, {
      "id" : "<ID_NUMBER>",
      "title" : "Classical",
      "type" : "PLAYLIST",
      "imageURL" : "https://sonos.plex.tv/img?height=1&minSize=1&upscale=1&url=https%3A%2F%2F178-79-142-46.3550c476b0ea407db29e112765e20202.plex.direct%3A8443%2Fplaylists%2F41875%2Fcomposite%2F1587806908%3FX-Plex-Client-Identifier%3Dsonos-04bcb8fb-e8a1-4f52-9680-5098e41d1124%26X-Plex-Token%3DYGLAnRgdwY2AkQH_XQyP&width=300"
    }, {
      "id" : "<ID_NUMBER>",
      "title" : "Various Artists RD",
      "type" : "PLAYLIST",
      "imageURL" : "https://sonos.plex.tv/img?height=1&minSize=1&upscale=1&url=https%3A%2F%2F178-79-142-46.3550c476b0ea407db29e112765e20202.plex.direct%3A8443%2Fplaylists%2F42191%2Fcomposite%2F1593069805%3FX-Plex-Client-Identifier%3Dsonos-04bcb8fb-e8a1-4f52-9680-5098e41d1124%26X-Plex-Token%3DYGLAnRgdwY2AkQH_XQyP&width=300"
    } ]
  }
}
CJDumbleton commented 1 year ago

Testing feedback: I added the hassio-repository to my Home Assistant. The Tredansen block-out cellular blinds and Tradfri control outlets appeared as devices. And I can successfully control them all. No problems. Exactly what I was looking for. Thanks.