ThomDietrich / miflora-mqtt-daemon

Linux service to collect and transfer Xiaomi Mi Flora plant sensor data via MQTT to your smart home system, with cluster support 🌱🌼πŸ₯€πŸ‘🌳
MIT License
610 stars 140 forks source link

Home assistant MQTT help #77

Open kenand1970 opened 5 years ago

kenand1970 commented 5 years ago

I use Home assiatant (on Synology) I set reporting_method = homeassistant-mqtt in config.ini

My sensor is Dwarfbanana = C4:7C:8D:67:3B:13

Help me please with configuration.yaml

sensor:

works but receive all results together: {"conductivity": 1274, "temperature": 20.1, "moisture": 44, "light": 155, "battery": 99}

I should perfer results separately conductivity temperature etc

I need help please

shortbloke commented 5 years ago

@kenand1970 If you look at: https://www.home-assistant.io/components/plant/ It provides an example of how to create a sensor for each value, by parsing the json.

Hopefully this helps, you or others.