pub fn new(id: u64, accessory_id: u64) -> Self {
        Self {
            id,
            hap_type: HapType::Fan,
			power_state: PowerStateCharacteristic::new(id + 1 + 0, accessory_id),
			name: Some(NameCharacteristic::new(id + 1 + 0 + 1, accessory_id)),
			rotation_direction: Some(RotationDirectionCharacteristic::new(id + 1 + 1 + 1, accessory_id)),
			rotation_speed: Some(RotationSpeedCharacteristic::new(id + 1 + 2 + 1, accessory_id)),
			..Default::default()
        }
    }
/// Creates a new Fan service.
Creates a new Fan service.
Creates a new Fan service .
pub fn new(id: u64, accessory_id: u64) -> Self {
        Self {
            id,
            hap_type: HapType::Fan,
			power_state: PowerStateCharacteristic::new(id + 1 + 0, accessory_id),
			name: Some(NameCharacteristic::new(id + 1 + 0 + 1, accessory_id)),
			rotation_direction: Some(RotationDirectionCharacteristic::new(id + 1 + 1 + 1, accessory_id)),
			rotation_speed: Some(RotationSpeedCharacteristic::new(id + 1 + 2 + 1, accessory_id)),
			..Default::default()
        }
    }
pub fn new ( id : u64 , accessory_id : u64 ) -> Self { Self { id , hap_type : HapType :: Fan , power_state : PowerStateCharacteristic :: new ( id + 1 + 0 , accessory_id ) , name : Some ( NameCharacteristic :: new ( id + 1 + 0 + 1 , accessory_id ) ) , rotation_direction : Some ( RotationDirectionCharacteristic :: new ( id + 1 + 1 + 1 , accessory_id ) ) , rotation_speed : Some ( RotationSpeedCharacteristic :: new ( id + 1 + 2 + 1 , accessory_id ) ) , .. Default :: default ( ) } }
Creates a new Fan service.
Creates a new Fan service .
id
u64
accessory_id
u64
id
u64
accessory_id
u64