Your fridge doesn't need to know energy prices. Fridges are for cooling, not computing your bills, and giving them access to too much data only encourages the usual IoT vendor abuse patterns. It should be enough for it to get a proxy signal. "Cheap tariff" / "expensive tariff". Or maybe continuous 0-1 control signal. Optimizing energy use for household or building already requires an external decision-making center anyway.