Skip to content

Latest commit

 

History

History
45 lines (35 loc) · 1.44 KB

MiFlora.md

File metadata and controls

45 lines (35 loc) · 1.44 KB

Xiaomi Mi Flora Plant Sensor

The Device

Please replace FF:FF:FF:FF:FF:FF as well as ffffffffffff with your devices mac.

Protocol documentation can be found here: https://github.com/vrachieru/xiaomi-flower-care-api#protocol

Device Config Entry

{
  "type": "MiFloraDevice",
  "friendlyName": "MiFlora Strawberries",
  "pollingInterval": 600000,
  "pollOnStartup": false,
  "mac": "FF:FF:FF:FF:FF:FF"
}

pollingInterval the interval this module will use to fetch battery information in milliseconds

If pollOnStartup is set to true, the first polling will happen 1s after startup.

MQTT

Autoconfig

The device will attempt to autoconfigure Home Assistant for state information on the following topics: homeassistant/sensor/miflora_ffffffffffff/ffffffffffff_battery/config homeassistant/sensor/miflora_ffffffffffff/ffffffffffff_temperature/config homeassistant/sensor/miflora_ffffffffffff/ffffffffffff_illuminance/config homeassistant/sensor/miflora_ffffffffffff/ffffffffffff_moisture/config homeassistant/sensor/miflora_ffffffffffff/ffffffffffff_conductivity/config

State

cybele/miflora/ffffffffffff/state provides the current state as JSON

{
    "battery": 21,
    "temperature": 23.7,
    "illuminance": 210,
    "moisture": 17,
    "conductivity": 23
}