Documentation link, github link
Steps
- Install esphome and mqtt
- Download yaml file from above github webpage
- Create a new device in esphome, in its config file paste the downloaded yaml, comment the "api:" section of the yaml file and add wifi and mqtt details as follows
Code: Select all
# Enable Home Assistant API #api: ota: - platform: esphome wifi: ssid: !secret wifi_ssid password: !secret wifi_password use_address: 192.168.1.107 # Enable fallback hotspot (captive portal) in case wifi connection fails ap: ssid: "Seeed-Studio-Mr60Fda2" password: "OGPnYVXUnrfS" mqtt: broker: !secret mqtt_broker topic_prefix: home/fall_detector - Plug the sensor into your laptop and install the config file via ESPhome web
- If all goes well the log in esphome should show constant stream of illuminance readings
- Finally now in domoticz add new hardware of the type MQTT Auto discovery client gateway with Lan interface
- Set the remote address and port of your MQTT broker
- autodiscovery prefix needs to be homeassistant, add and the sensor devices should be created in the switch and utility tabs