Skip to content

Commit

Permalink
## [2.12.5] - 02.04.2024
Browse files Browse the repository at this point in the history
- Bugikorjaus: Seuraavan päivän hinnat haettiin kesäaikaan siirtymisen takia vasta 16:00 (15:00 sijaan)
  • Loading branch information
jisotalo committed Apr 2, 2024
1 parent a088f33 commit 092973c
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 11 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

# Suomeksi
## [2.12.5] - 02.04.2024
- Bugikorjaus: Seuraavan päivän hinnat haettiin kesäaikaan siirtymisen takia vasta 16:00 (15:00 sijaan)

## [2.12.4] - 20.03.2024
- Bugikorjaus: Korjattu `vain muuttuessa` -ohjausasetus
- Ohjaus saatettiin ylikirjoittaa vaikka ei pitänyt
Expand Down Expand Up @@ -160,6 +163,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Versio 2 julkaistu (tehty täysin uusiksi)

# In English
## [2.12.5] - 02.04.2024
- Bugfix: Next day prices were read after 16:00 after DST change (instead of 15:00)

## [2.12.4] - 20.03.2024
- Bugfix: Fixed issues with `only on change` output setting

Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,11 @@ Skripti käyttää suoraan Viron kantaverkkoyhtiö [Eleringin](https://dashboard
* Shelly Pro 2
* Shelly Pro 3
* Shelly Pro 4PM
* Shelly Plus Plug S
* Shelly Pro3EM + Switch Add-on
* Shelly Plus UNI
* Shelly Plus 1 Mini
* Shelly Plus Plug S
* Plugin valon värin ohjaus sähkön hinnan mukaan onnistuu skriptillä [shelly-plug-nordpool-light](https://github.com/jisotalo/shelly-plug-nordpool-light)

## Sisällysluettelo
- [Muutoshistoria](#muutoshistoria)
Expand Down
2 changes: 1 addition & 1 deletion dist/shelly-porssisahko-addon-temp-hours.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/shelly-porssisahko-addon-temp.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/shelly-porssisahko-ht-sensor-temp.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/shelly-porssisahko-open-meteo-api.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/shelly-porssisahko-override-avg-price.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/shelly-porssisahko-user-config.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/shelly-porssisahko.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/shelly-porssisahko.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ let C_DEF = {
let _ = {
s: {
/** version number */
v: "2.12.4",
v: "2.12.5",
/** Device name */
dn: '',
/** status as number */
Expand Down Expand Up @@ -436,10 +436,10 @@ function pricesNeeded(dayIndex) {
/*
Getting prices for tomorrow if
- we have a valid time
- clock is past 13:00 UTC+0 (NOTE: 13 instead of 12 as elering updates prices at 12:30 or so)
- clock is past 15:00 local time (NOTE: Elering seems to have prices after 14.30 LOCAL time, no matter is it DST or not)
- we don't have prices
*/
res = _.s.timeOK && _.s.p[1].ts === 0 && now.getHours() >= (13 + _.s.tzh);
res = _.s.timeOK && _.s.p[1].ts === 0 && now.getHours() >= 15;

} else {
/*
Expand Down

0 comments on commit 092973c

Please sign in to comment.