MQTT API reference

API Uppdaterad 2026-05-24

RF-HUB publishes state and accepts commands via MQTT.

Topics

  • rfhub/{type}/{id}/{nr}/state — device state (JSON)
  • rfhub/{type}/{id}/{nr}/set — send command
  • homeassistant/sensor/rfhub-{uid}/... — HA auto-discovery

Payload example

{"state":"on","rssi":-65,"battery":1}

See HA setup guide for connection details.