I have created a LUA scene to fetch the current electricity prices from Tibber, I then store the values in global variables. This can again be used to control appliances according to prices.
Tibber api: Please login or register to see this link.
In the scene below I have used a demo token from tibber.
LUA scene:
local http = net.HTTPClient();
http:request('https://api.tibber.com/v1-beta/gql',{
options = {
method = 'POST',
headers = {