Page 1 of 1

Enphase verbruik

Posted: Wednesday 21 January 2026 5:55
by edwin1234
In my domoticz 2021.1 version
With node red i had my enphase usage to domoticz with:
"msg.payload = {"command": "udevice", "idx": 44, "svalue": msg.payload.wattHoursToday.toString()};↵return msg;"

But that doesnt work with the newest domoticz version
What must be changed to get it working again ?

Regards
Edwin

Re: Enphase verbruik

Posted: Wednesday 21 January 2026 16:17
by FireWizard
hello @edwin1234,

You wrote:
In my domoticz 2021.1 version
With node red i had my enphase usage to domoticz with:
"msg.payload = {"command": "udevice", "idx": 44, "svalue": msg.payload.wattHoursToday.toString()};↵return msg;"

But that doesnt work with the newest domoticz version
What must be changed to get it working again ?
There is nothing wrong with the object, that you send to Domoticz, but probably something else.

Since version D8.3.5286 Enphase requires https instead of http. This version has been installed onto my system 05 Nov, 2025 5:33 PM.
See also this thread: viewtopic.php?p=330848&hilit=Enphase#p330848

So probably this is also the issue with your NR flow.
To correct, try to use https://github.com/Maarten234/Enphase-E ... X-node-red.

Insert your local IP address and username/password in the right nodes.

Regards

Re: Enphase verbruik

Posted: Wednesday 21 January 2026 16:33
by edwin1234
Hi firewizard,
On my old domoticz on pi4 its stil working
But on my new domoticz on pi5 it doesnt with the same line only the idx is changed
In node red i see in the debug the values like in my old system but my device is not updating with that value

Image
Image
IMG_6754.jpeg
IMG_6754.jpeg (110.07 KiB) Viewed 245 times

Re: Enphase verbruik

Posted: Wednesday 21 January 2026 17:47
by FireWizard
Hi @edwin1234,

Okay, it is at least something you have to keep in mind.

I use the same device, General, kWh and it is configured as "Energy read": "From device",

So, it is not calculated by Domoticz.

I send the following string:

Code: Select all

msg.payload = {"command":"udevice","idx":279,"nvalue":0,"svalue":(msg.payload.wattsNow.toString()) + ";" + (msg.payload.wattHoursLifetime.toString())};
I don't think, you should use wattHoursToday.toString()

The value for "Vandaag" (Today) is calculated by Domoticz, based on wattHoursLifetime and not wattHoursToday.
Of course, you have to supply the current value wattsNow, as well

What type of sensor do you use on your Pi4?

Regards

Re: Enphase verbruik

Posted: Wednesday 21 January 2026 18:38
by edwin1234
This one on pi4 with old domoticz:
Image

Re: Enphase verbruik

Posted: Wednesday 21 January 2026 18:39
by waltervl
If whattHoursLifetime is a stable value that increases nicely over the days then you should use this value (together with Wattsnow) and set the Domoticz setting not to computer but from device. Then you have the best calculation in Domoticz.

Re: Enphase verbruik

Posted: Wednesday 21 January 2026 18:42
by waltervl
And Domoticz needs 2 values for this kWh device, Energy and Power. If you set it to calculate you need to supply 0 for Energy (but as said better use whattHoursLifetime for this).

Re: Enphase verbruik

Posted: Wednesday 21 January 2026 19:09
by edwin1234
Ok i will
Thank you

Regards

Re: Enphase verbruik

Posted: Wednesday 21 January 2026 22:08
by edwin1234
Now i have this:Image
But still no value in domoticz

Re: Enphase verbruik

Posted: Thursday 22 January 2026 9:39
by FireWizard
Hi @edwin1234,

Something else is wrong.

I do not understand, that you produce 1124W at 22:03:07 on January 21st. Or is it the Northern Light :lol:

Correct this first.

Regards

Re: Enphase verbruik

Posted: Thursday 22 January 2026 9:48
by waltervl
Ah OK, You are using a normal counter (RFX Counter) on the old Pi4. That indeed only needs 1 value (WattHoursLifetime).

But on your new device you are using the General KwH that needs 2 values. https://wiki.domoticz.com/Dummy_for_vir ... d_counter).
The MQTT message seems OK (other than the strange values). Are you sure the new device is device 45? As on the old RPI you are already higher then 1000 devices...
And when NR sends the message to Domoticz there should be a log entry in Domoticz about this. What is that log entry? menu Setup-Log

Re: Enphase verbruik

Posted: Thursday 22 January 2026 12:01
by edwin1234
Yeah im sure its 45 i double checked and i’m still in the fase of setting my new system up step by step i installed enphase and node red that why i have not many devices yet.
But when i check the log theres no entry either thats strange.
In node red on my pi 5 i have 127.0.0.1 for domoticz just like my pi4. And in domoticz i have local ip adresses filled in in the setup

Regards

Re: Enphase verbruik

Posted: Thursday 22 January 2026 12:52
by waltervl
Do you see in Domoticz on the new Pi it connects to the correct mqtt server? Do you have the MQTT hardware gateway on the new Domoticz enabled?
Do you have on both RPi's Nodered, mosquitto and Domoticz? And do you use Docker for one of them (or all)?

Re: Enphase verbruik

Posted: Thursday 22 January 2026 17:50
by edwin1234
Do you see in Domoticz on the new Pi it connects to the correct mqtt server? -yes

Do you have the MQTT hardware gateway on the new Domoticz enabled? -No, very stupid of me :oops: was such a long time ago that i installed domoticz.

Its working now
Thanks for all the help

Regards

Re: Enphase verbruik

Posted: Saturday 24 January 2026 10:17
by edwin1234
Now its working i see a difference in values between enphase usage on domoticz pi4 and pi5
On pi4 its exactly the same as the usage in the enphase app .so perfect
But on pi 5 its more then in the enphase app. Almost 1 kwh more and thats strange
I get the values from nodered like u can see in my previous posts.
What could be the cause?

Regards

Re: Enphase verbruik

Posted: Saturday 24 January 2026 11:01
by BartSr
Bit offtopic:
Is the data retrieved using the solaredge API?

Re: Enphase verbruik

Posted: Saturday 24 January 2026 21:48
by FireWizard
Hi @BartSr,
Is the data retrieved using the solaredge API?
No, Enphase is not using the SolarEdge API, nor any other API, like SolarEdge is not using Enphase API.

Enphase is using its own Enphase API, either cloud based or local.

@edwin1234,
Now its working i see a difference in values between enphase usage on domoticz pi4 and pi5.
What could be the cause?
Well, I assume you did not change your sensor type in the RPi4 (RFXMeter counter).
You send the following data to Domoticz:

Code: Select all

msg.payload = {"command": "udevice", "idx": 44, "svalue": msg.payload.wattHoursToday.toString()};
return msg;
Beside, what @waltervl and I already said about the use of that sensor and the wattHoursToday value, you should know that the values based on a faulty value wattHoursToday are calculated by Domoticz in your RPi4. You send a single value.
Your new value in the General, kWh sensor is calculated by Enphase, at least, if the configuration has been set to "From device".
Also keep in mind that the Enphase Enlighten portal is updated once per 15 minutes, if you have a stable internet connection, otherwise 4 times a day.
So you are always looking to an old value in the portal, compared to Domoticz.
There is also a difference between /api/v1/production and /production.json.

So there are many possibilities and I would say: Don't worry about such a small value (less than 1 kWh)

Regards

Re: Enphase verbruik

Posted: Saturday 24 January 2026 22:58
by BartSr
Last 7 years I used Solaredge API to get the data of my solar system. Early december 2025 it stopped working as also reporter by others here in the forum.
Then I tried the ModbusTCP but it appeared my Solaredge inverter does not provide data by modbus.

For that I am wondering how you get the data.

Bart

Re: Enphase verbruik

Posted: Sunday 25 January 2026 10:56
by FireWizard
Hello @BartSr,

This forum thread is discussing the monitoring of Enphase micro inverters using Node-RED.
This is very specific as Domoticz has also native "hardware" available.

As you already said, your question is off-topic and I suggest you open a new topic or add it to an existing SolarEdge topic.
Not many forum users with SolarEdge installations will look into an Enphase topic, as these systems are completely different.

Regards

Re: Enphase verbruik

Posted: Sunday 25 January 2026 14:40
by BartSr
Oops. I misread and mixt up enphase and solaredge. As I deal with both of them I made this stupid fault...