package services import ( "github.com/Xevion/go-ha/internal/connect" ) type AdaptiveLighting struct { conn *connect.HAConnection } // Set manual control for an adaptive lighting entity. func (al AdaptiveLighting) SetManualControl(entityId string, enabled bool) error { req := NewBaseServiceRequest("") req.Domain = "adaptive_lighting" req.Service = "set_manual_control" req.ServiceData = map[string]any{ "entity_id": entityId, "manual_control": enabled, } return al.conn.WriteMessage(req) }