Zigbee2mqtt to Emoncms, how would you?

Hi Guys,

I have a few Mi Temp sensors setup with Zigbee2mqtt gateway and home assistant.
I’d like to send their values to an Emoncms feed.

Reading through blog posts, articles and documentation I haven’t found a clear answer.

How would you accomplish this ?

I do this in my configuration.yaml

mqtt_statestream:
  base_topic: emon
  include: 
    entities:
      - sensor.mi_h_4c65a8d8de98

You will then see this appear under a Node called sensor.

image

Occasionally I get a zero at startup of HA so worth ignoring it in the input processing.

HTH

Thank you! This is so awesome !

1 Like