Peter Gamma (Physiologist & Director) Meditation Research Institute Switzerland (MRIS)

To connect ECG, EEG, MEG modules to Home Assistant, export sensor data to InfluxDB & visualize it in Grafana, a quick & easy solution for beginners?

Last Updated on April 4, 2023 by pg@petergamma.org

The instruction from How to Electronics in India shows how to connect an AD8232 ECG chip for
heart rate monitoring to the Ubdots cloud:

The instruction from How to Electronics uses an ESP32 chip. Sensors which are connected to ESP32 chips can easily be connected to Home Assistant.

Here is also shown how to connect a temperature sensor which is connected to an ESP32 module to Home Assistant:

Just replace the temperature sensor by the AD8232 ECG heart rate monitoring chip, and connect the setup to Home Assistant. From there it should be possible to visualize sensor data in Grafana and export sensor data to InfluxDB, by modifying the example of Udo Berndt with the Apple watch:

  • The advantage of this solution with Home Assistant is, that it requires no coding, but eventually only some recording to adapt the sensors.
  • For several physiological sensors, there are already instructions available how to connect those to Home Assistant like temperature sensors, but also sports sensors.
  • Links to the instructions can be found in our journal. Just follow the tag Home Assistant.

Home Assistant is sometimes used to make demos, for instance the first attempt to connect a Raspberri Pi with ANT+ and MQTT was done with Home Assistant over MQTT. It is described in the Trainer Road forum.

  • We think Home Assistant is also suitable for demo makers, since is a free software, and the advantage is, that there are already example sensors available which can be used for testing.