pub fn new(id: u64, accessory_id: u64) -> Self {
        Self {
            id,
            hap_type: HapType::Doorbell,
			programmable_switch_event: ProgrammableSwitchEventCharacteristic::new(id + 1 + 0, accessory_id),
			brightness: Some(BrightnessCharacteristic::new(id + 1 + 0 + 1, accessory_id)),
			mute: Some(MuteCharacteristic::new(id + 1 + 1 + 1, accessory_id)),
			name: Some(NameCharacteristic::new(id + 1 + 2 + 1, accessory_id)),
			operating_state_response: Some(OperatingStateResponseCharacteristic::new(id + 1 + 3 + 1, accessory_id)),
			volume: Some(VolumeCharacteristic::new(id + 1 + 4 + 1, accessory_id)),
			..Default::default()
        }
    }
/// Creates a new Doorbell service.
Creates a new Doorbell service.
Creates a new Doorbell service .
pub fn new(id: u64, accessory_id: u64) -> Self {
        Self {
            id,
            hap_type: HapType::Doorbell,
			programmable_switch_event: ProgrammableSwitchEventCharacteristic::new(id + 1 + 0, accessory_id),
			brightness: Some(BrightnessCharacteristic::new(id + 1 + 0 + 1, accessory_id)),
			mute: Some(MuteCharacteristic::new(id + 1 + 1 + 1, accessory_id)),
			name: Some(NameCharacteristic::new(id + 1 + 2 + 1, accessory_id)),
			operating_state_response: Some(OperatingStateResponseCharacteristic::new(id + 1 + 3 + 1, accessory_id)),
			volume: Some(VolumeCharacteristic::new(id + 1 + 4 + 1, accessory_id)),
			..Default::default()
        }
    }
pub fn new ( id : u64 , accessory_id : u64 ) -> Self { Self { id , hap_type : HapType :: Doorbell , programmable_switch_event : ProgrammableSwitchEventCharacteristic :: new ( id + 1 + 0 , accessory_id ) , brightness : Some ( BrightnessCharacteristic :: new ( id + 1 + 0 + 1 , accessory_id ) ) , mute : Some ( MuteCharacteristic :: new ( id + 1 + 1 + 1 , accessory_id ) ) , name : Some ( NameCharacteristic :: new ( id + 1 + 2 + 1 , accessory_id ) ) , operating_state_response : Some ( OperatingStateResponseCharacteristic :: new ( id + 1 + 3 + 1 , accessory_id ) ) , volume : Some ( VolumeCharacteristic :: new ( id + 1 + 4 + 1 , accessory_id ) ) , .. Default :: default ( ) } }
Creates a new Doorbell service.
Creates a new Doorbell service .
id
u64
accessory_id
u64
id
u64
accessory_id
u64