{ lib, config, ... }: { config = lib.mkIf config.server.home-assistant.enable { services.home-assistant.config.automation = [ { description = "Pause Heating when Window opens"; alias = "Heating Pause"; use_blueprint = { path = "raffy-ops/hvac_pause.yaml"; input = { climate_device = "climate.shellyblutrv_286847ef7fc0"; doors_windows = "binary_sensor.shelly_blu_door_window_3a5a_window"; action_first = true; }; }; } ]; }; }