Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


Question

This QuickApp calculates the cheapest prices for using appliances based on the hourly Tibber energy prices. 
This QuickApp is especially useful for appliances (like charging your car and washing the dishes) that need to run once a day, within a timeframe and during some hours. 
You can use more than one instance of this QuickApp if you need more than one appliance to start in the cheapest hour but not within the same timeslot. 

 

Tibber today and tomorrow prices
The tomorrow prices are available from 13:00 hour. 
If the tomorrow prices aren't available yet and the timeslot is (partially) tomorrow, a temporary calculation and start-stop plan is made with the today prices, until the tomorrow prices are available. 
If the start time plus duration is (partially) tomorrow, for example start time 18:00 and duration 7 hours, the calculation can be made from 13:00 hour when the tomorrow prices are available. 

 

Please login or register to see this image.

/monthly_2024_02/image.png.06942227bb550def87de0f27cd4b86c6.png" />

 

At 04:00 the binary switch will turn ON and at 07:00 the binary switch will turn OFF. 

You would still have to create a script, triggers by this binary switch, to actually turn on the charging of your car, or turn on the dishwasher. 

 

 

IMPORTANT
This QuickApp needs the Tibber Monitor QuickApp to run on your HC3. 
It is important to synchonise this QuickApp with the timing of your Tibber Monitor QuickApp. 
This QuickApp works at its best, if you setup the interval with the intervalOffset just after the Tibber Monitor runs. 
If you Tibber Monitor runs at 5 minutes (300 seconds) after the whole hour, run this QuickApp 5 minutes and 10 seconds (310 seconds) after the whole hour to be sure to get the prices from Tibber Monitor. 
This QuickApp runs every whole hour to turn the switch on and off. If it is time to get the prices from the Tibber Monitor QuickApp, this QuickApp runs every whole hour plus the seconds set in the intervalOffset. 

 

QuickApp logics

  • onInit()
  • getQuickAppVariables() 
  • createVariables()
  • checkPrice()
  • missionControl() 
    • If tibberChild0000 (Tibber Monitor Child devicenumber for "Today 00:00") doesn't exists --> disable QuickApp
    • If current hour is hour to start --> turn the switch ON 
    • If current hour is hour to stop --> turn the switch OFF
    • If current hour is 13:00 (tomorrowPrices) --> checkPrice() to check the prices again to calculate with the tomorrow prices and to plan a new start and stop hour
    • If current hour is the end of the timeslot --> checkPrice() to check the prices again to plan a new start and stop hour
    • updateLabels() every whole hour
  • missionControl() (see above)
  • etc

 

DISCLAIMERS
Use this QuickApp at your own risk. You are responsible for ensuring that the information provided via this QuickApp do not contain errors. 

Tibber is a registered trademark being the property of TIBBER. TIBBER reserves all rights to the registered trademarks.
Information which is published on TIBBER’s websites belongs to TIBBER or is used with the permission of the rights holder. 
Making of copies, presentations, distribution, display or any other transfer of the information on the website to the public is, except for strictly private use, prohibited unless done with the consent of TIBBER. 
Published material on dedicated TIBBER press websites, intended for public use, is exempt from the consent requirement.
Also see:

Please login or register to see this link.

 

Tibber API documentation:

Please login or register to see this link.


Tibber API explorer:

Please login or register to see this link.


Tibber status:

Please login or register to see this link.

 

Variables (mandatory and created automatically)

  • tibberChild0000 = The Tibber Monitor Child devicenumber for "Today 00:00"
  • durationHours = How many hours should the switch be ON (not more than 23 hours)
  • timeSlotStart = At which hour should the timeslot start
  • timeSlotEnd = At what hour should the timeslot end
  • tomorrowPrices = At what hour are the Tibber tomorrow prices available (default = 13)
  • intervalOffset = The offset time in seconds to the interval of every whole hour (default 310 seconds) 
  • debugLevel = Number (1=some, 2=few, 3=all (default = 1)
  • language = Preferred language (default = English (en)) (supported languages are English (en), Dutch (nl), German (de), Swedish (se) and Norwegian (no))

 

Changes version 0.3 (19th March 2024)

  • Solved a small bug when timeslot end was greater than 23 hours


Changes version 0.2 (15th February 2024)

  • Optimized calculations and turnOn/TurnOff
  • Added translations for Dutch (nl), German (de), Swedish (se) and Norwegian (no)

 

Initial (beta) version 0.1 (11th February 2024)

  • Initial beta version

 

How to install

  1. Open the Configuration Interface
  2. Go to Settings > Devices
  3. Click  +
  4. Choose Other Device
  5. Choose Upload File
  6. Choose file from your computer with .fqax

 

Please login or register to see this attachment.

 

 

Edited by SmartHomeEddy
  • Like 3
Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

I like the idea Eddy for various purposes. With Tibber and Solar panels this can also be user to turn airco on when prices go negative. so the need to cool down the house after there production hours of the solar installation is reduced. Turning on dish wassers and wasching machines is only possible with modern/smart devices. Most of my equipment is to young to replace and to old to be/turned to smart.

  • Thanks 1
Link to comment
Share on other sites

  • 0
  • Inquirer
  • Indeed @Langedijk for a lot of users the dishwashers and that kind of appliances aren't smart yet (because too young to replace). I have a dishwasher that connects to WiFi, but only when you turn it on. If still turned off, nothing will happen. 

     

    You could give the airco a boost, but this quickapp only calculates the cheapest time within that timespan in comparison to the other prices. That doesn't have to be  a cheap price, it could also be less expensive. 

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Posted (edited)

    I have uploaded a new version (in the first post) with a bug solved (timeslot end was greater than 23 hours, it was one hour too many)

     

     

     

     

     

    Edited by SmartHomeEddy
    Link to comment
    Share on other sites

    • 0

    @SmartHomeEddy
    Well done!

    Finally got to play around with this Trigger, and it is real helpful getting the most out of the cheapest hours.
    Installed two QA triggers for now, to run the water boiler at nighttime and daytime.

    Noticed some issues with Tibber Monitor that gives "Operation canceled" error now and then, that again gives the Trigger problems reading prices, and trigger on/off using wrong prices.
    Need to look some more into that. Last night it got the error 4 times (time: 01.05, 03.05, 04.05 and 08.05)

    Have not noticed if it correct it self on the next hour.
     

    Tibber has also lately really stepped up their game in their app and giving more info.
    And one really cool feature is "Grid Rewards", that for now works against car charging.

    In short - the prices per hour is set at 13.00 each day as you know, but the "real" prices in the market change real time as well if let's say there is overproduction from solar panels.
    So now if the "real time" prices drop (from only seconds or maybe an hour now and then), and my car is connected to my smart charger, Tibber start charging my car with that new price that often are on the minus cost side.
    We then get some "Grid Rewards" in form of money deducted from our bill for helping the grid to use the power that otherwise would go to waste at these times.

    If these real time prices could be picked up in any way and used to trigger let's say the Water boiler, that would be a nice feature. Guess thats where Tibber would try to go in the future...
    For now we only see these low price drops in the app at the time it happens and historically, so dont know if it could be monitored in any way. 

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • 5 hours ago, dorten75 said:

    Noticed some issues with Tibber Monitor that gives "Operation canceled" error now and then, that again gives the Trigger problems reading prices, and trigger on/off using wrong prices.
    Need to look some more into that. Last night it got the error 4 times (time: 01.05, 03.05, 04.05 and 08.05)

    Have not noticed if it correct it self on the next hour.

     

    That is a timeout from the Tibber server. The interval starts at 5 minutes after the whole hour. That should give Tibber enough time to sort new prices out and so on. Maybe try to give it a minute more, like 6 minutes past the whole hour. (And change the time for this trigger app also)

     

    5 hours ago, dorten75 said:

    If these real time prices could be picked up in any way and used to trigger let's say the Water boiler, that would be a nice feature. Guess thats where Tibber would try to go in the future...
    For now we only see these low price drops in the app at the time it happens and historically, so don't know if it could be monitored in any way. 

     

    Haven't seen these prices in the Tibber Api. I don't know if they are available from the ENTSO-E site. Would be nice to have that as a trigger also. 

     

    Link to comment
    Share on other sites

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Answer this question...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    ×
    ×
    • Create New...