/EnergyRate

A QuickApp for FIBARO HC3 that gives you the current spot price in your energy area that you easy trigger scenes or devices.

Primary LanguageLuaMIT LicenseMIT

Energy Spot Price

The ENTSO-e Energy Rate QuickApp give you the current and coming energy spot price rates by hour from ENTSO-e transparency platform in your local currency. ENTSO-e is independent from any power company and no subscription or specific hardware is required to get this to work.

If you pay your energy consumption by hour then this QA can save you money!

This QA has spot prices for the following countries: Austria, Belgium, Bosnia and Herz., Bulgaria, Croatia, Czech Republic, Denmark, Estonia, Finland, France, Germany, Greece, Hungary, Ireland, Italy, Latvia, Lithuania, Luxembourg, Netherlands, North Macedonia, Norway, Poland, Portugal, Romania, Serbia, Slovakia, Slovenia, Spain, Sweden, Switzerland, Ukraine and United Kingdom.

How it works

After you have download, you need to unzip the file to get the .fqa file to install in FIBARO and I also provide the icon in .png format.

After you have add this QA in FIBARO devices, you have some new general variables where you select your energy area that you belong to in [EnergyArea] and what your medium price rate is in [EnergyMediumPrice]. Thats all needed!

The variation of energy hour level in [EnergyHourLevel] is calculated from the medium price that you have define in the global variable [EnergyMediumPrice]. You set the medium price from what you feel is the medium price for you in your currency by consumed kWh. (The currency exchange rate is collected from exhangerate.host service in this QuickApp.)

The global variable [EnergyNextHourLevel] indicate what price level it will be the next hour, and [EnergyMonthLevel] indicate what the avrage price is in current month.

You can then easy trigger scenes or devices based on the value in the global variables [EnergyHourLevel], [EnergyNextHourLevel] or [EnergyMonthLevel] that can have the following values:

  • VeryLOW
  • LOW
  • MEDIUM
  • HIGH
  • VeryHIGH

Usage in Lua scen:

local value = hub.getGlobalVariable("EnergyHourLevel")
if (value == "VeryHIGH") then
...
end

Or in Block scen:

The ENTSO-e Energy Rate QuickApp also store spot prices in the FIBARO Energy Tariff table. You set how many days to store history in FIBARO tariff table in the QA variable [TariffHistory].

-- How to get FIBARO Energy Tariff data
local tariffData = api.get("/energy/billing/tariff")
local currentRate = tariffData.rate
local tariffTable = tariffData.additionalTariffs
....

I would love if you give me some feedback on whether or not you like this QA, maybe I missed some function you need, let me know... Or just give your Rating on this QA ;)