neskvern / homebridge-tibber

Gets Tibber power consumption data to HomeKit
MIT License
8 stars 2 forks source link

Current price #1

Open hjuhlin opened 3 years ago

hjuhlin commented 3 years ago

Is it possible to get the current price from Tibber in to this plugin? That would be so usefull, like turn of the pool heater when the price is high and so on.

hjuhlin commented 3 years ago

I found the API call for it.

{ viewer { homes { currentSubscription{ priceInfo{ current{ total energy tax } } } } } }

oskarhart commented 2 years ago

I've bin thinking the same put maybe use the level argument to get high/med/low average price and use it to flip dummy switches on/off to easily create rules in HomeKit, only problem is that it reflects the price average for the last 3 days, it would be better with just the current day.