"""No network or hardware access: two simulated lights on a local scene.""" from datetime import datetime, time, timezone from lightwell import Controller, LightState, Schedule, SimulatedLights lights = SimulatedLights("holiday", "accent") controller = Controller(lights, {"holiday", "accent"}) controller.add_scene("evening", { "holiday": LightState(True, 55, (255, 174, 95)), "accent": LightState(True, 30, (245, 209, 164)), }) controller.add_schedule(Schedule("after-dusk", time(18, 0), "evening")) now = datetime(2026, 11, 29, 18, 0, tzinfo=timezone.utc) print("Scheduled local scene:", controller.run_due(now)) print("Repeated tick:", controller.run_due(now)) lights.offline_devices.add("accent") print("Manual request with one device unavailable:", controller.apply("evening"))