@override Future<void> updateState(double? newState) async { await _cacheApi.setDouble(stateKey, newState); super.updateState(newState); }