Zigbee2mqtt data over to EMONCMS

Hi,
i have a Tuya SPM02V2.5(Tuya SPM02V2.5 control via MQTT | Zigbee2MQTT) smart energy meter connected via Zigbee2mqtt having its data sent to homeassistant is there a way to get the data to emoncms.

Assuming your device is connected to the same mqtt server as emoncms, try setting the mqtt base topic to emon.

Emoncms should then show your device data on its inputs tab.

1 Like

sorry got busy with work, but emon container uses its own mqtt and zigbee2mqtt uses a different server.

I dont think it has to.

All my devices are configured to use the same mqtt server and I use node-red to repost mqtt messages from one device to another. I am fairly sure node-red can connect to two different mqtt servers at the same time but I dont have a second mqtt server to test.

1 Like

As the data has been imported to Home Assistant, you can also use the emoncms_history integration to push sensor data.

https://www.home-assistant.io/integrations/emoncms_history

2 Likes

Thank you don’t know why i was using multiple MQTT servers, changed emon MQTT to my main and use node red to push zigbee2mqtt to new topic emon, vola all the values showed in input as you said.

2 Likes