Add temp sensors to EmonHP

Related:

1 Like

Is it possible to use a temperature sensor being used in Home assistant to report ā€˜room temperature’ to emonHP via emoncms? I’m new to this and my new emonHP is working fine but I’d like to add room temperature reporting.

Yes, it’s possible. This is a snippet of my configuration.

emoncms_history:
  api_key: 9xxx52f8cd702d2d4fxxxxxxxxxxxxxx
  url: http://192.168.0.14/emoncms
  inputnode: 22
  scan_interval: 30
  whitelist:
    -  sensor.bathroom_temp_xiaomi_temperature
    -  sensor.bed2_temp_aqara_temperature
    -  sensor.conservatory_temp_temperature
    -  sensor.dressing_room_temp_temperature
    -  sensor.en_suite_temp_xiaomi_temperature
    -  sensor.entrance_hall_temp_temperature
    -  sensor.fountain_ds18s20_1_temperature
    -  sensor.fountain_ds18s20_2_temperature
    -  sensor.gw2000a_outdoor_temperature
    -  sensor.hall_temp_xiaomi_temperature
    -  sensor.lr_temp_sonoff_temperature

Put in your read/write api key (found at the ā€˜input API help’ link on the emoncms input page.

Change the url address to that of your emonhp, choose the input node to suit you and the scan_interval to suit. Put your sensor names in the whitelist.

It’s YAML so the indentation is important, it won’t work if the indentation is wrong.

1 Like

Many thanks for that. I’ll give it a go. I’m learning YAML as I go and needs arise.
Peter J.

hey @billt , I’m new to temperature sensing. Would you mind sharing references and which sensors you are using? I liked your setup. Are you using temperature sensors from Xiaomi? How do they connect to the server (like Wifi or Zigbee or anything else)? I’m looking for an easy way to add multiple temperature sensors and track them in a single server (EmonPi in my case). Thanks!

If you have an emonPi you can easily connect DS18B20 temperature sensors directly to the unit, see: https://docs.openenergymonitor.org/emonpi2/other_sensors.html#temperature-sensing