enever output

Subforum for general discussions. Do not dump your questions/problems here, but try to find the subforum where it belongs!

Moderators: leecollings, remb0

User avatar
waltervl
Posts: 7024
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2026.3
Location: NL
Contact:

Re: enever output

Post by waltervl »

Then you, as the error describes, created a text device for the Ënever Price Sensor" instead of a custom sensor as the dzvents script expects. Or you have 2 devices (a text sensor and a custom sensor) with exactly the same name, DzVents cannot handle that.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
manjh
Posts: 912
Joined: Saturday 27 February 2016 12:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 2025.2
Location: NL
Contact:

Re: enever output

Post by manjh »

OK, so I removed the text device and created a custom sensor. Problem has gone away... thanks for the help!
Hans
Tukker
Posts: 675
Joined: Sunday 01 November 2015 22:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: Twente
Contact:

Re: enever output

Post by Tukker »

As most providers now use quarterly prices, will the Enever plugin be adapted to display quarterly prices instead of hourly prices?
Sorry. Me again. Acting before diving into the wiki.
Here is the answer.
As in most cases the developers have already implemented everything.
Bugs bug me.
manjh
Posts: 912
Joined: Saturday 27 February 2016 12:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 2025.2
Location: NL
Contact:

Re: enever output

Post by manjh »

A small issue I am struggling with.
I am using the dzvents script to analyze the daily prices, and find the sweet spot during which it is most economic to charge the battery of my PHEV.
Thought I had it covered, it came back usually with 2 or 3 hours in the afternoon.
But on several occasions it came back with a window ending at 24:00! It has happened a few times, but usually not. Can't rely on this method. And I'm not sure what causes this behaviour (I'm not a dzvents expert).

Can someone help me find an algorithm that will yield the start- and end-time of the economic sweet spot?
Hans
manjh
Posts: 912
Joined: Saturday 27 February 2016 12:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 2025.2
Location: NL
Contact:

Re: enever output

Post by manjh »

Tips, anyone? How can I find the most economic window for charging, based on the Enever file?
Hans
User avatar
RonkA
Posts: 145
Joined: Tuesday 14 June 2022 12:57
Target OS: NAS (Synology & others)
Domoticz version: 2025.1
Location: Harlingen
Contact:

Re: enever output

Post by RonkA »

I am using the dzvents script to analyze the daily prices
whitch script are you using?
SolarEdge ModbusTCP - Kaku - Synology NAS - Watermeter - ESPEasy - DS18b20
Work in progress = Life in general..
manjh
Posts: 912
Joined: Saturday 27 February 2016 12:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 2025.2
Location: NL
Contact:

Re: enever output

Post by manjh »

RonkA wrote: Tuesday 27 October 2026 18:18
I am using the dzvents script to analyze the daily prices
whitch script are you using?
I started with the script in the second post in this thread, slightly modified it to keep the first and last hour of the "cheap" window.
Hans
User avatar
RonkA
Posts: 145
Joined: Tuesday 14 June 2022 12:57
Target OS: NAS (Synology & others)
Domoticz version: 2025.1
Location: Harlingen
Contact:

Re: enever output

Post by RonkA »

In my script the cheapest periode is just the hour with the lowest price and all further hours with prices that are within 1,05 cent of this..

Code: Select all

if centsValue == minCents then
     centsText = centsText .. ' <span style="background-color:#5cb85c; color:black; padding:0px 2px; border-radius:3px;">▼</span>'
end                   
                    
if minCents < centsValue and centsValue <= (minCents + 1.05) then
     centsText = centsText .. ' <span style="background-color:#5cb85c; color:white; padding:0px 2px; border-radius:3px;">▼</span>'
end
Its that simple, so sometimes there is a day with 6+ hours of the cheapest range and someday there are 2 cheap hours.. (or just the one hour..)

I imagine you could use minCents to trigger a switch 'on' when the 'cheap' hour is starting and trigger 'off' if the new hour is not 'cheap' anymore..
But that is just a realtime swich without a 'predicting the future' algorithm.

i don't have an electric car so i dont know about chargetime needed..
SolarEdge ModbusTCP - Kaku - Synology NAS - Watermeter - ESPEasy - DS18b20
Work in progress = Life in general..
manjh
Posts: 912
Joined: Saturday 27 February 2016 12:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 2025.2
Location: NL
Contact:

Re: enever output

Post by manjh »

RonkA wrote: Wednesday 28 October 2026 14:45 In my script the cheapest periode is just the hour with the lowest price and all further hours with prices that are within 1,05 cent of this..

Code: Select all

if centsValue == minCents then
     centsText = centsText .. ' <span style="background-color:#5cb85c; color:black; padding:0px 2px; border-radius:3px;">▼</span>'
end                   
                    
if minCents < centsValue and centsValue <= (minCents + 1.05) then
     centsText = centsText .. ' <span style="background-color:#5cb85c; color:white; padding:0px 2px; border-radius:3px;">▼</span>'
end
Its that simple, so sometimes there is a day with 6+ hours of the cheapest range and someday there are 2 cheap hours.. (or just the one hour..)

I imagine you could use minCents to trigger a switch 'on' when the 'cheap' hour is starting and trigger 'off' if the new hour is not 'cheap' anymore..
But that is just a realtime swich without a 'predicting the future' algorithm.

i don't have an electric car so i dont know about chargetime needed..
I don't want a "realtime" switch, but simply want to keep the first and last hour indication for an economic window.
It worked, until I got a winow starting very early, and ending at 24:00... I suppose it is possible, but not very likely.
As for your script: I see several posts with scripts. Would it be possible to post the latest-and-greatest?
Hans
User avatar
RonkA
Posts: 145
Joined: Tuesday 14 June 2022 12:57
Target OS: NAS (Synology & others)
Domoticz version: 2025.1
Location: Harlingen
Contact:

Re: enever output

Post by RonkA »

i think you are referring to this day: 2026-10-22, 23:00 had the lowest price and the second lowest was 25.3 cent; so over the 1,05 cent treshold.

Code: Select all

Laagste: 21.9 ct; Hoogste: 37.9 ct
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
00:00 ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 33.4 ct ▲
01:00 ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 31.7 ct ▲
02:00 ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 30.1 ct ▲
03:00 ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 29.6 ct ▲
04:00 ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 29.0 ct ▲
05:00 ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 29.7 ct ▲
06:00 ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 32.0 ct ▲
07:00 ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 35.3 ct ▲
08:00 ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 37.9 ct ▲
09:00 ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 34.8 ct ▲
10:00 ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 30.4 ct ▲
11:00 ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 27.2 ct
12:00 ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 25.3 ct
13:00 ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 24.7 ct
14:00 ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 26.0 ct
15:00 ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 26.3 ct
16:00 ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 27.3 ct
17:00 ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 29.0 ct ▲
18:00 ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 30.0 ct ▲
19:00 ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 30.9 ct ▲
20:00 ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 28.9 ct ▲
21:00 ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 25.7 ct
22:00 ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 24.6 ct
23:00 ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 21.9 ct ▼
Data bijgewerkt: 2026-10-22 15:05 (vandaag)
I don't know how to tackel that problem for this kinda day..

my script is this one:viewtopic.php?p=334582#p334582
SolarEdge ModbusTCP - Kaku - Synology NAS - Watermeter - ESPEasy - DS18b20
Work in progress = Life in general..
Post Reply