LRA45/HVAC_ENV
0
1# Copyright (c) Meta Platforms, Inc. and affiliates.2# All rights reserved.3#4# This source code is licensed under the BSD-style license found in the5# LICENSE file in the root directory of this source tree.6 7"""8Data models for the Hvac Env Environment.9 10The hvac_env environment is an HVAC energy management simulation.11"""12 13from openenv.core.env_server.types import Action, Observation14from pydantic import Field15 16 17class HvacAction(Action):18 """Action for the HVAC environment - power setting."""19 20 power: float = Field(..., description="HVAC power setting (-1.0 to 1.0)", ge=-1.0, le=1.0)21 22 23class HvacObservation(Observation):24 """Observation from the HVAC environment."""25 26 indoor_temp: float = Field(..., description="Current indoor temperature in °C")27 outdoor_temp: float = Field(..., description="Current outdoor temperature in °C")28 setpoint: float = Field(..., description="Target temperature setpoint in °C")29 energy_price: float = Field(..., description="Current energy price per kWh")30 time_of_day: float = Field(..., description="Current time of day (0-24)")31 current_energy_usage: float = Field(default=0.0, description="Current energy usage")32 reward: float = 0.033 