Check Nordpool energy prices and send thermostat tresholds to Home Assistant
npm install nordpool-hassarea: Set the area where you want to follow the prices. You can seecurrency: Choose either DKK, EUR, NOK or SEKmaxHighHours: If you use IFTTT to turn off heating when the energy pricemaxHighHours to 3 and the energy price will be above your highTresholdmaxLowHours: Same as maxHighHours but for hours below lowTreshold.maxLowHours to 2 willlowTreshold). Set to 24 if you don't need limits.veryLowOffset: Temperature offset when the price is very low.lowOffset: Temperature offset when the price is low.highOffset: Temperature offset when the price is highveryHighOffset: Temperature offset when the price is very highhassPassword: API password to Home AssistanthassUrl: URL to Home Assistant. Remember the slashhassSensorName: Name of the sensorStart script will run PM2 to keep the script running.
npm start
Will create a sensor on Home Assistant server with the name from hassSensorName, e.g. sensor.thermostat_treshold.
Enjoy!