Huomisen hinnat julkaistaan noin klo 14.15.Katso huominen →
Integraatiot ja automaatio

Node-RED

Hae hinta 15 minuutin välein ja ohjaa mitä tahansa.

Näin otat sen käyttöön

  1. Tuo alla oleva flow: valikko → Import.
  2. Flow hakee /v1/is-cheap-tiedon 15 minuutin välein.
  3. Kytke ulostulo omaan laitteeseesi (MQTT, Zigbee2MQTT, Shelly…).

Koodi: Flow JSON

[
    {
        "id": "shn_inject",
        "type": "inject",
        "name": "every 15 min",
        "repeat": "900",
        "once": true,
        "wires": [
            [
                "shn_http"
            ]
        ]
    },
    {
        "id": "shn_http",
        "type": "http request",
        "name": "is-cheap",
        "method": "GET",
        "ret": "obj",
        "url": "https://api.xn--shknhintanyt-gcb8w.org/v1/is-cheap?zone=FI&hours=4",
        "wires": [
            [
                "shn_switch"
            ]
        ]
    },
    {
        "id": "shn_switch",
        "type": "switch",
        "name": "cheap?",
        "property": "payload.cheap",
        "rules": [
            {
                "t": "true"
            },
            {
                "t": "false"
            }
        ],
        "outputs": 2,
        "wires": [
            [],
            []
        ]
    }
]

Rajapinnat

Hinta nyt (JSON)/v1/now?zone=FI
Hinta nyt (pelkkä luku)/v1/now.txt?zone=FI
Onko nyt halpaa? (on/off)/v1/is-cheap.txt?zone=FI&hours=4
Halvin 3 tunnin jakso/v1/cheapest?zone=FI&hours=3
Home Assistant -muoto/v1/ha?zone=FI
Päivän hinnat vartteina/v1/prices?zone=FI&day=today

Base: https://api.xn--shknhintanyt-gcb8w.org · CORS · JSON · Lähde: ENTSO-E / Nord Pool day-ahead

← Kaikki integraatiot