pub fn new(id: u64, accessory_id: u64) -> Self {
        Self {
            id,
            hap_type: HapType::GarageDoorOpener,
			current_door_state: CurrentDoorStateCharacteristic::new(id + 1 + 0, accessory_id),
			target_door_state: TargetDoorStateCharacteristic::new(id + 1 + 1, accessory_id),
			obstruction_detected: ObstructionDetectedCharacteristic::new(id + 1 + 2, accessory_id),
			lock_current_state: Some(LockCurrentStateCharacteristic::new(id + 1 + 0 + 3, accessory_id)),
			lock_target_state: Some(LockTargetStateCharacteristic::new(id + 1 + 1 + 3, accessory_id)),
			name: Some(NameCharacteristic::new(id + 1 + 2 + 3, accessory_id)),
			..Default::default()
        }
    }
/// Creates a new Garage Door Opener service.
Creates a new Garage Door Opener service.
Creates a new Garage Door Opener service .
pub fn new(id: u64, accessory_id: u64) -> Self {
        Self {
            id,
            hap_type: HapType::GarageDoorOpener,
			current_door_state: CurrentDoorStateCharacteristic::new(id + 1 + 0, accessory_id),
			target_door_state: TargetDoorStateCharacteristic::new(id + 1 + 1, accessory_id),
			obstruction_detected: ObstructionDetectedCharacteristic::new(id + 1 + 2, accessory_id),
			lock_current_state: Some(LockCurrentStateCharacteristic::new(id + 1 + 0 + 3, accessory_id)),
			lock_target_state: Some(LockTargetStateCharacteristic::new(id + 1 + 1 + 3, accessory_id)),
			name: Some(NameCharacteristic::new(id + 1 + 2 + 3, accessory_id)),
			..Default::default()
        }
    }
pub fn new ( id : u64 , accessory_id : u64 ) -> Self { Self { id , hap_type : HapType :: GarageDoorOpener , current_door_state : CurrentDoorStateCharacteristic :: new ( id + 1 + 0 , accessory_id ) , target_door_state : TargetDoorStateCharacteristic :: new ( id + 1 + 1 , accessory_id ) , obstruction_detected : ObstructionDetectedCharacteristic :: new ( id + 1 + 2 , accessory_id ) , lock_current_state : Some ( LockCurrentStateCharacteristic :: new ( id + 1 + 0 + 3 , accessory_id ) ) , lock_target_state : Some ( LockTargetStateCharacteristic :: new ( id + 1 + 1 + 3 , accessory_id ) ) , name : Some ( NameCharacteristic :: new ( id + 1 + 2 + 3 , accessory_id ) ) , .. Default :: default ( ) } }
Creates a new Garage Door Opener service.
Creates a new Garage Door Opener service .
id
u64
accessory_id
u64
id
u64
accessory_id
u64