Hi guys,
I have the newest hassbian (updated, upgraded and reinstalled HA on it).
I have 2 Flower care Bluetooth (BLE) devices and I must admit it works nicely out of the box :D, here is my config:
sensor:
- platform: miflora
mac: ‘C4:7C:8D:xx:yy:88’
name: Flower 1 88
force_update: false
median: 1
monitored_conditions:- moisture
- light
- temperature
- conductivity
- battery
- platform: miflora
mac: ‘C4:7C:8D:xx:yy:31’
name: Flower 2 31
force_update: false
median: 1
monitored_conditions:- moisture
- light
- temperature
- conductivity
- battery
So I am reading all the values, but now I would like to upload the values to Azure cloud, apparently using MQTT protocol. Azure IoT HUB supports MQTT protocol (https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-mqtt-support) so I was thinking to use Mosquitto MQTT (well it doesn’t have to be Mosquitto). Assuming that I will manage to make the connection to Azure (https://stackoverflow.com/questions/35863841/connecting-mosquitto-to-the-new-azure-mqtt-backend) I would like to know what should I do in /homeassistant/configuration.yaml file to send the payload?
How can I reference to existing values from sensors in configuration (please see above configuration)? It looks like I need to create JSON message out of the values.
Thx for any tips!
Please be advised that I am beginner under Linux/Unix like shell and even for simplest actions I need to Google for commands, not even mentioning running a code…