You can now upload your board directly from the web browser!
So let's imagine you want to read data from a sensor like a Mi Flora, an LYWSD03MMC, a weight scale, or any other BLE sensor from this list
Here are the steps in images:
- Plug an ESP32 dev board to your computer USB port
- Go to this website: https://docs.openmqttgateway.com/upload/web-install.html
- Select esp32dev-ble
- Click the install button
- Depending on your board you may have to press the BOOT button
- Choose the port that the ESP is connected to.
- Wait until the process is complete.
- Release the BOOT button
Here are the steps in images:
Now comes the Home Assistant part:
So let's now connect both:
- Add the MQTT integration and activate auto discovery
- Create a user and a password (Configuration->Users) without administrator right for the gateway
So let's now connect both:
- Check the Wifi Access points available with your smartphone
- Search for one named OMG_something or OpenMQTTGateway
- Connect to it
- Enter the following password "your_password"
- Select the wifi you want the gateway connected to
- Enter the wifi password
- Enter the home assistant server IP address (mqtt server)
- Enter the username and password created before (mqtt user and mqtt pass)
- You can let the other fields as they are unless you want to apply special parameters or security aspects
- Click on save
Let's check the middle man (MQTT broker)
- Download and Open MQTT explorer
- Connect to Home Assistant server, you can create another user as you have done for the gateway
- Check the messages received
And finally, see the magic in Home Assistant:
For sensors:
For gateway:
Without any added integration than MQTT, without touching yaml, you get the gateway and the sensors into the device list!
Thanks, Home Assistant for the inspiration in adding the web flasher option!
Commentaires
Enregistrer un commentaire