{
  "id": 4702506,
  "title": "One Java API for HomeKit, Matter, and Google Home",
  "url": "https://urgent.news/2026/08/31/one-java-api-for-homekit-matter-and-google-home",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-08-31T19:30:15.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/codenameone/one-java-api-for-homekit-matter-and-google-home-2g85"
  },
  "original_language": "en",
  "account": "Codename One is an open-source framework that enables developers to create native iOS, Android, desktop, and web applications using a single Java or Kotlin codebase. A recent update to the Codename One HomeKit API introduces a unified approach to interacting with various smart home platforms, including HomeKit, Matter, and Google Home.\n\nThe new API simplifies the process of listing accessories, reading and writing traits, monitoring changes, running scenes, and commissioning Matter devices. It also provides a mechanism for handling scenarios where different platforms return inconsistent results.\n\nTraits, which describe the functionality of a device rather than its underlying platform, are central to the new API. Devices expose traits such as ON_OFF, BRIGHTNESS, or TARGET_TEMPERATURE through services, allowing applications to request specific data points without having to worry about platform-specific quirks.\n\nThe update addresses issues related to trait conversions, which can be tricky to handle correctly. For example, Matter brightness levels range from 0 to 254, while HomeKit uses a different scale. The API ensures that these differences are accounted for when reading and writing traits.\n\nAvailability checks have also been improved. The API now returns more detailed information about why a device might not be available, such as whether the platform is not installed, requires user authorization, or is in commissioning mode. This allows applications to provide more user-friendly feedback and handle errors more gracefully.\n\nOne notable limitation is that the Google Home accessory graph is not currently supported by the Codename One HomeKit API. To add a Matter accessory to a user's Google Home, developers would need to utilize Google Home APIs, a Google Cloud project, and a Home Developer Console registration. However, Codename One cannot generate these credentials for developers.\n\nIn cases where a batch read or write operation partially succeeds, the API returns an array of TraitReadings, each of which can indicate success, failure, or the absence of a value. This allows applications to handle errors and partial success scenarios more effectively.",
  "summary": "A light can expose brightness through a HomeKit characteristic or a Matter cluster. Application code should ask for brightness, not carry both platform identifiers and two sets of value rules. What is Codename One? Codename One is an open-source framework for building native iOS, Android, desktop, and web apps from a single Java or Kotlin codebase. Learn more at codenameone.com . PR #5554 adds…",
  "key_points": [],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}