金鼎智慧控制Local Control Guide 繁體中文

Home Assistant

The controller talks to Home Assistant over MQTT. With discovery on, the AC appears in Home Assistant by itself: no YAML and no custom integration.

What you need

Setup

  1. Follow Local setup and choose "Local MQTT (Home Assistant)" under "Connection mode".
  2. In "MQTT broker URI", enter the broker's address, for example mqtt://192.168.1.10:1883. If Mosquitto runs on Home Assistant, use Home Assistant's IP address.
  3. Enter the MQTT username and password, and leave "Enable Home Assistant discovery" ticked.
  4. Finish setup. Once the controller has restarted and connected to the broker, the AC appears under Settings → Devices & services → MQTT in Home Assistant.

A controller that's already set up can switch to local MQTT under "Settings" on its status page.

What appears

EntityTypeWhat it does
The AC (named after the device)climateModes off, cool, heat, dry, fan only, auto; fan auto, low, medium, high; vertical swing; setpoint 16–30 °C in 1-degree steps
SleepswitchSleep mode
TurboswitchTurbo mode
Horizontal swingswitchLeft-right swing
Room temperaturesensorIndoor temperature
Errorsensor (diagnostic)The AC's error code, none when all is well

When the controller is offline, these entities show as unavailable.

If it doesn't appear

  1. On the status page, check that "Connection" says "Connected". If it says "Disconnected", check the broker address, username and password.
  2. Check that discovery under "Home Assistant" is "On" and that "Discovery prefix" is homeassistant, matching Home Assistant's MQTT integration (homeassistant is Home Assistant's default).
  3. After a Home Assistant restart, the controller announces itself again automatically; there's nothing to redo.

Advanced: MQTT topics

A configured controller uses these topics, where xxxxxx is its 6-character code in lowercase:

TopicPurpose
nhiot/xxxxxx/stateState JSON (retained)
nhiot/xxxxxx/availOnline status
nhiot/xxxxxx/cmdCommands
nhiot/xxxxxx/cmd/resCommand results

Example command (set 26 °C):

{"id":"1","method":"setTemp","params":{"value":26}}

Apple Home through Home Assistant

If you already use Home Assistant, its HomeKit Bridge integration can also add the AC to Apple Home. Alternatively, use the controller's built-in HomeKit; see Apple Home. Use one or the other, not both, or the AC shows up twice in the Home app.