Arduino sketch (for ESP32 devices) based on climateguard/RadSens to transmit RadSens Geiger counter readings to Domoticz via MQTT
- Clone the repository or download and extract the zip file for the repository
- Open Radsens_to_Domoticz-main.ino in Arduino IDE
- Add the URL https://dl.espressif.com/dl/package_esp32_index.json to the list of board managers under File -> Preferences to add support for ESP32
- Install the Adafruit MQTT library and the SimpleTimer library from Tools -> Library Manager
- Select your ESP32 board from Tools -> Board (for example ESP32 Dev Module)
- Select the COM port from Tools -> Port. If no COM port is listed, install the USB to Serial drivers from https://www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers
- In the #define section, configure the wifi network and password
- Then configure the MQTT server IP, username, and password (and optionally change the MQTT publish interval)
- Change DYNAMIC_IDX and STATIC_IDX to the IDX values for "custom sensor" virtual sensors created within Domoticz.
- Upload to the ESP32 device connected to the RadSens unit. If everything is configured correctly, the sensor readings should be displayed in Domoticz
Additional information can be found here