Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 1.42 KB

README.md

File metadata and controls

40 lines (29 loc) · 1.42 KB

Add Nordpool price 💶 switching to your shelly device

This code works if you live in Estonia 🇪🇪, Lithuania 🇱🇻, Latvia 🇱🇹 or Finland 🇫🇮. Just change the country code in the API endpoint.

Script setup

Make sure your Shelly device is connected to the Internet and accessible from LAN.

  • Login to the cloud ☁️
  • Find device
  • Click settings
  • Device information
  • Device IP This should open in a new browser window with local access to Shelly's device.

Installing Script

  • Click on Scripts button
  • Open Libary modular
  • Push Configure URL button
  • Paste URL https://raw.githubusercontent.com/martinkangur/shelly/main/SHELLY_MJS.md
  • Click on desired script

Configure API endpoint

Find api_endpoint and change #COUNTRY_CODE# 🌍 to ee, lv, lt or fi

api_endpoint: "https://dashboard.elering.ee/api/nps/price/#COUNTRY_CODE#/current"

Set your price point 👈

Find configuration value price_limit will be set when your device turns on or off. Prices don’t include VAT and are measured in EUR/MWh

Example

price_limit: 200 Will set toggling threshold for the device to 200 EUR/MWh

Setting relay to switch.

Most shelly devices have only one output(relay). If you want to change the output channel find switchId and set it to the desired output.

alt text