Enphase verbruik
Moderator: leecollings
-
edwin1234
- Posts: 330
- Joined: Sunday 09 October 2016 20:20
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2021.1
- Location: Nederland
- Contact:
Enphase verbruik
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
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
- FireWizard
- Posts: 1967
- Joined: Tuesday 25 December 2018 12:11
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Voorthuizen (NL)
- Contact:
Re: Enphase verbruik
hello @edwin1234,
You wrote:
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
You wrote:
There is nothing wrong with the object, that you send to Domoticz, but probably something else.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 ?
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
Last edited by FireWizard on Wednesday 21 January 2026 21:31, edited 1 time in total.
-
edwin1234
- Posts: 330
- Joined: Sunday 09 October 2016 20:20
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2021.1
- Location: Nederland
- Contact:
Re: Enphase verbruik
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]()
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

- Attachments
-
- IMG_6753.jpeg (95.94 KiB) Viewed 178 times
- FireWizard
- Posts: 1967
- Joined: Tuesday 25 December 2018 12:11
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Voorthuizen (NL)
- Contact:
Re: Enphase verbruik
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:
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
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())};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
-
edwin1234
- Posts: 330
- Joined: Sunday 09 October 2016 20:20
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2021.1
- Location: Nederland
- Contact:
Re: Enphase verbruik
This one on pi4 with old domoticz:


- Attachments
-
- IMG_6755.jpeg (71.17 KiB) Viewed 166 times
- waltervl
- Posts: 6677
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2025.1
- Location: NL
- Contact:
Re: Enphase verbruik
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.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
- waltervl
- Posts: 6677
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2025.1
- Location: NL
- Contact:
Re: Enphase verbruik
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).
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
edwin1234
- Posts: 330
- Joined: Sunday 09 October 2016 20:20
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2021.1
- Location: Nederland
- Contact:
Re: Enphase verbruik
Ok i will
Thank you
Regards
Thank you
Regards
-
edwin1234
- Posts: 330
- Joined: Sunday 09 October 2016 20:20
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2021.1
- Location: Nederland
- Contact:
Re: Enphase verbruik
Now i have this:
But still no value in domoticz

But still no value in domoticz
- Attachments
-
- IMG_6756.jpeg (281.21 KiB) Viewed 152 times
- FireWizard
- Posts: 1967
- Joined: Tuesday 25 December 2018 12:11
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Voorthuizen (NL)
- Contact:
Re: Enphase verbruik
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
Correct this first.
Regards
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
Correct this first.
Regards
- waltervl
- Posts: 6677
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2025.1
- Location: NL
- Contact:
Re: Enphase verbruik
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
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
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
edwin1234
- Posts: 330
- Joined: Sunday 09 October 2016 20:20
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2021.1
- Location: Nederland
- Contact:
Re: Enphase verbruik
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
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
- waltervl
- Posts: 6677
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2025.1
- Location: NL
- Contact:
Re: Enphase verbruik
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)?
Do you have on both RPi's Nodered, mosquitto and Domoticz? And do you use Docker for one of them (or all)?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
edwin1234
- Posts: 330
- Joined: Sunday 09 October 2016 20:20
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2021.1
- Location: Nederland
- Contact:
Re: Enphase verbruik
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
was such a long time ago that i installed domoticz.
Its working now
Thanks for all the help
Regards
Do you have the MQTT hardware gateway on the new Domoticz enabled? -No, very stupid of me
Its working now
Thanks for all the help
Regards
Last edited by edwin1234 on Thursday 22 January 2026 17:58, edited 1 time in total.
-
edwin1234
- Posts: 330
- Joined: Sunday 09 October 2016 20:20
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2021.1
- Location: Nederland
- Contact:
Re: Enphase verbruik
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
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
-
BartSr
- Posts: 489
- Joined: Sunday 03 July 2016 16:16
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V2024.7
- Location: Netherlands
- Contact:
Re: Enphase verbruik
Bit offtopic:
Is the data retrieved using the solaredge API?
Is the data retrieved using the solaredge API?
Raspberry pi 3b
Arduino
KAKU
RfxCom
Zwave2MQTT
OTGW
Chinese sensors temp (Dallas),movement
Tasmota
Esp8266 / 32 espeasy
Zigbee2MQTT
Arduino
KAKU
RfxCom
Zwave2MQTT
OTGW
Chinese sensors temp (Dallas),movement
Tasmota
Esp8266 / 32 espeasy
Zigbee2MQTT
- FireWizard
- Posts: 1967
- Joined: Tuesday 25 December 2018 12:11
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Voorthuizen (NL)
- Contact:
Re: Enphase verbruik
Hi @BartSr,
Enphase is using its own Enphase API, either cloud based or local.
@edwin1234,
You send the following data to Domoticz:
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
No, Enphase is not using the SolarEdge API, nor any other API, like SolarEdge is not using Enphase API.Is the data retrieved using the solaredge API?
Enphase is using its own Enphase API, either cloud based or local.
@edwin1234,
Well, I assume you did not change your sensor type in the RPi4 (RFXMeter counter).Now its working i see a difference in values between enphase usage on domoticz pi4 and pi5.
What could be the cause?
You send the following data to Domoticz:
Code: Select all
msg.payload = {"command": "udevice", "idx": 44, "svalue": msg.payload.wattHoursToday.toString()};
return msg;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
-
BartSr
- Posts: 489
- Joined: Sunday 03 July 2016 16:16
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V2024.7
- Location: Netherlands
- Contact:
Re: Enphase verbruik
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
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
Raspberry pi 3b
Arduino
KAKU
RfxCom
Zwave2MQTT
OTGW
Chinese sensors temp (Dallas),movement
Tasmota
Esp8266 / 32 espeasy
Zigbee2MQTT
Arduino
KAKU
RfxCom
Zwave2MQTT
OTGW
Chinese sensors temp (Dallas),movement
Tasmota
Esp8266 / 32 espeasy
Zigbee2MQTT
- FireWizard
- Posts: 1967
- Joined: Tuesday 25 December 2018 12:11
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Voorthuizen (NL)
- Contact:
Re: Enphase verbruik
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
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
-
BartSr
- Posts: 489
- Joined: Sunday 03 July 2016 16:16
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V2024.7
- Location: Netherlands
- Contact:
Re: Enphase verbruik
Oops. I misread and mixt up enphase and solaredge. As I deal with both of them I made this stupid fault...
Raspberry pi 3b
Arduino
KAKU
RfxCom
Zwave2MQTT
OTGW
Chinese sensors temp (Dallas),movement
Tasmota
Esp8266 / 32 espeasy
Zigbee2MQTT
Arduino
KAKU
RfxCom
Zwave2MQTT
OTGW
Chinese sensors temp (Dallas),movement
Tasmota
Esp8266 / 32 espeasy
Zigbee2MQTT
Who is online
Users browsing this forum: No registered users and 1 guest