Created At

Jun 19, 2022

Last Update

Jan 07, 2025

Platforms

HC 3 Lite, Z-box Hub, Yubii Home Pro, Yubii Home, Venture WISE, HC 3

Views

5566

Download

566

Type Quick App

This QuickApp gets your energy consumption and production data from Tibber Live. 
This QuickApp can be used in combination with the Tibber Monitor to get the Tibber Prices. 
Based on the Fibaro WebSockets/GraphQL demo by Peter Gebruers 

 

If you use Tibber for your Energy Panel, you can use this Tibber Live QuickApp for your energy consumption and production combined with the Tibber Monitor QuickApp to provide the Energy Panel with the hourly prices. 

 

image.thumb.png.abbcf80243edf94bffd79592e0bfe0eb.png

 

Main device with positive or negative actual power consumption

 

Child devices are available for:

  • power (Actual consumption with maxPower in log text)
  • powerProduction (Actual production with maxPowerProduction in log text)
  • accumulatedConsumption (Todays consumption, also the child device for the Energy Panel)
  • accumulatedProduction (Todays production)
  • accumulatedCost (Todays cost)
  • Accumulated Reward (Todays reward for energy production) 
  • Net Profit (Todays reward for energy production minus todays cost for energy consumption) 
  • accumulatedConsumptionLastHour (Consumed since since last hour shift)
  • accumulatedProductionLastHour (Produced since last hour shift)
  • lastMeterConsumption (Total consumption)
  • lastMeterProduction (Total production)
  • voltagePhase1
  • voltagePhase2
  • voltagePhase3
  • currentL1
  • currentL2
  • currentL3

 

image.thumb.png.8d88792396100824a8bd26d618cd86c6.png

 

 

Available information: 

  • power (Consumption at the moment (Watt))
  • maxPower (Peak consumption since midnight (Watt))
  • powerProduction (Net production (A-) at the moment (Watt))
  • maxPowerProduction (Max net production since midnight (Watt))
  • accumulatedConsumption (kWh consumed since midnight)
  • accumulatedProduction (net kWh produced since midnight)
  • accumulatedCost (Accumulated cost since midnight; requires active Tibber power deal)
  • currency (Currency of displayed cost; requires active Tibber power deal)
  • lastMeterConsumption (Last meter active import register state (kWh))
  • lastMeterProduction (Last meter active export register state (kWh))
  • voltagePhase1 (Voltage on phase 1) *
  • voltagePhase2 (Voltage on phase 2) *
  • voltagePhase3 (Voltage on phase 3) *
  • currentL1 (Current on L1) *
  • currentL2 (Current on L2) *
  • currentL3 (Current on L3) *
  • accumulatedConsumptionLastHour (kWh consumed since since last hour shift)
  • accumulatedProductionLastHour (net kWh produced since last hour shift)
  • accumulatedReward (Accumulated reward since midnight; requires active Tibber power deal)
  • minPower (Min consumption since midnight (Watt))
  • averagePower (Average consumption since midnight (Watt))
  • powerReactive (Reactive consumption (Q+) at the moment (kVAr)) *
  • powerProductionReactive (Net reactive production (Q-) at the moment (kVAr)) *
  • minPowerProduction (Min net production since midnight (Watt))
  • maxPowerProduction (Max net production since midnight (Watt))
  • powerFactor (Power factor (active power / apparent power)) *
  • signalStrength (Device signal strength (Pulse - dB; Watty - percent)) *
  • timestamp (Timestamp when usage occurred)

* on Kaifa and Aidon meters the value is not part of every HAN data frame therefore the value is null at timestamps with second value other than 0, 10, 20, 30, 40, 50. There can be other deviations based on concrete meter firmware. In this QuickApp "null" values are replaced by their previous values. 

 

To communicate with the API you need to acquire a OAuth access token and pass this along with every request passed to the server.
A Personal Access Token give you access to your data and your data only. 
This is ideal for DIY people that want to leverage the Tibber platform to extend the smartness of their home. 
Such a token can be acquired here: https://developer.tibber.com

 

When creating your access token or OAuth client you’ll be asked which scopes you want the access token to be associated with. 
These scopes tells the API which data and operations the client is allowed to perform on the user’s behalf. 
The scopes your app requires depend on the type of data it is trying to request. 
If you for example need access to user information you add the USER scope. 
If information about the user's homes is needed you add the appropriate HOME scopes.
If you have more than one home in your subscription, you need to fill in your home number the change between your homes. 


If the Tibber server disconnects the webSocket, the QuickApp wil do a re-connect for the amount in the QuickApp variable reconnect. 
If the re-connect fails for that amount, there will be a timeout for the seconds in the QuickApp variable timeout. 

 

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: https://tibber.com/en/legal-notice

 

Guide Communicating with the Tibber API: https://developer.tibber.com/docs/guides/calling-api
Tibber API Explorer: https://developer.tibber.com/explorer
Tibber gitHub: https://github.com/tibber
Tibber SDK NET: https://github.com/tibber/Tibber.SDK.NET/tree/master/src/Tibber.Sdk
Fibaro webSocket manual: https://manuals.fibaro.com/knowledge-base-browse/hc3-quick-apps-websocket-client/
Fibaro Forum - Headers in webSocket: https://forum.fibaro.com/topic/60307-added-support-for-headers-in-websocket-connections-any-documentation
WebSocket++ Documentation: https://docs.websocketpp.org
GraphQL over WebSocket Protocol: https://github.com/enisdenjo/graphql-ws/blob/master/PROTOCOL.md
GraphQL query language: https://spec.graphql.org/June2018/#sec-Language

 

Version 4.0 (3rd January 2025)

  • Added child for Accumulated Reward (todays reward for energy production). 
  • Added child for Net Profit (todays reward for energy production minus todays cost for energy consumption). 
  • Added more functions to fully disable the quickapp. If the QuickApp is disabled by the user, now also the buttons and fibaro calls are disabled.
  • Added buttons to disconnect and connect webSocket session. 
  • Changed the behaviour of connecting to the Tibber WebSocket. After the maximum reconnects (10), the QuickApp disconnects and sends a notification to the Tibber iOS or Android app. The Tibber user gets better informed and can take action. 
  • Removed the reconnect QuickApp variable, not necessary to get changed by the Tibber user, it is now hardcoded (and the value is still 10 reconnects). 
  • Added check if realtime consumption (Tibber Pulse is working) is enabled at startup of the QuickApp and when reconnecting the QuickApp. If the Tibber Pulse is not available, not working, then the QuickApp will go in disconnected status and in the labels the Tibber user can see the reason. 
  • Added Net Profit (todays reward for energy production minus todays cost for energy consumption) to the labels. 
  • Placed the average power consumption (Watt) more prominent in the labels. 
  • Added Tibber Server responses to the labels (they were already in de debuglogging) so the Tibber users gets better informed about the connection status. 
  • Added the check for a new QuickApp version. The user gets notified in the Fibaro Notifications of the new QuickApp with the changelog. 
  • Changed the debuglevels a bit, so you can see the connection statusses already in debuglevel 2. 
  • Changed QuickApp variabels 'token' and 'homeId' to secret (stored encrypted) so they cannot get shown or published unintentionally. 
  • Added dynamic Tibber Live webSocket URL (at startup the QuickApp gets the current webSocket URL), so the QuickApp is future proof in case the WebSocket URL gets changed. 
  • Removed both simulation modes (debugLevel 4 and 5). 

Variables (mandatory and created automatically): 

  • token = Authorization token (see the Tibber website: https://developer.tibber.com)

  • homeId = Tibber Home ID (see the Tibber website: https://developer.tibber.com)

  • homeNr = Tibber home (nodes) number if you have more than one home (default = 1)

  • language = Preferred language (default = en) (supported languages are English (en), Swedisch (se), Norwegian (no) and Dutch (nl))

  • reconnect = Amount of re-connects after disconnect from Tibber server (default = 10)

  • timeout = Pause after maximum amount of re-connects (default = 300 seconds)

  • debugLevel = Number 1=some, 2=few, 3=all (default = 1)

 

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

 

And enter your Tibber Token in the quickapp variable. 

27 Comments,  Want to add comment please login
04801fd12b48c36cbcdf5af0b140e42d

Any feedback on the new QuickApp version 4.0?

04801fd12b48c36cbcdf5af0b140e42d

Please download and use the new 4.0 version !

04801fd12b48c36cbcdf5af0b140e42d

The new QuickApp Tibber Live is available for download. Please use this latest version with a lot of improvements and new functions. Don't forget to fill in your Token and Home ID in the quickapp variables.

04801fd12b48c36cbcdf5af0b140e42d

Thanks for the compliment Martin. The L2 current comes from the "currentL2, not the deprecated currentPhase2 (just like L1 and L3). If the value is null at some times, it is replaced by the previous value. This is what the reference writes about the Aidon meters: "Current on L2; on Kaifa and Aidon meters the value is not part of every HAN data frame therefore the value is null at timestamps with second value other than 0, 10, 20, 30, 40, 50. There can be other deviations based on concrete meter firmware. Value is always null for single phase meters." So it is only measured on 0, 10, 20, etc.

4cd0877cfcb043c4a79ca0079ea965fe

Hi, Great app! A question (or comment) to the value shown as currentL2. I have an Aidon meter, and the L2 current is not measured by this meter, and hence the Tibber pulse can't retrieve it and the value is not shown in the Tibber app. I aksed the Tibber team about this, and they informed that they earlier presented an estimated/calculated currentL2, but removed it from the Tibber app as it wasn't accurate/reliable. It seems however that this calculation is still retrieved through the developer API. So my question or comment is; Does this quickapp make some calculation of its own, does it present another default value if it retrieves "nill", or is it purly retrieving the old Tibber calculation.

© 2024. Nice-Polska Sp. z o.o.Privacy policyTerms & ConditionsFeedback