pub fn new(id: u64, accessory_id: u64) -> Self {
        Self {
            id,
            hap_type: HapType::HumiditySensor,
			current_relative_humidity: CurrentRelativeHumidityCharacteristic::new(id + 1 + 0, accessory_id),
			name: Some(NameCharacteristic::new(id + 1 + 0 + 1, accessory_id)),
			status_active: Some(StatusActiveCharacteristic::new(id + 1 + 1 + 1, accessory_id)),
			status_fault: Some(StatusFaultCharacteristic::new(id + 1 + 2 + 1, accessory_id)),
			status_low_battery: Some(StatusLowBatteryCharacteristic::new(id + 1 + 3 + 1, accessory_id)),
			status_tampered: Some(StatusTamperedCharacteristic::new(id + 1 + 4 + 1, accessory_id)),
			..Default::default()
        }
    }
/// Creates a new Humidity Sensor service.
Creates a new Humidity Sensor service.
Creates a new Humidity Sensor service .
pub fn new(id: u64, accessory_id: u64) -> Self {
        Self {
            id,
            hap_type: HapType::HumiditySensor,
			current_relative_humidity: CurrentRelativeHumidityCharacteristic::new(id + 1 + 0, accessory_id),
			name: Some(NameCharacteristic::new(id + 1 + 0 + 1, accessory_id)),
			status_active: Some(StatusActiveCharacteristic::new(id + 1 + 1 + 1, accessory_id)),
			status_fault: Some(StatusFaultCharacteristic::new(id + 1 + 2 + 1, accessory_id)),
			status_low_battery: Some(StatusLowBatteryCharacteristic::new(id + 1 + 3 + 1, accessory_id)),
			status_tampered: Some(StatusTamperedCharacteristic::new(id + 1 + 4 + 1, accessory_id)),
			..Default::default()
        }
    }
pub fn new ( id : u64 , accessory_id : u64 ) -> Self { Self { id , hap_type : HapType :: HumiditySensor , current_relative_humidity : CurrentRelativeHumidityCharacteristic :: new ( id + 1 + 0 , accessory_id ) , name : Some ( NameCharacteristic :: new ( id + 1 + 0 + 1 , accessory_id ) ) , status_active : Some ( StatusActiveCharacteristic :: new ( id + 1 + 1 + 1 , accessory_id ) ) , status_fault : Some ( StatusFaultCharacteristic :: new ( id + 1 + 2 + 1 , accessory_id ) ) , status_low_battery : Some ( StatusLowBatteryCharacteristic :: new ( id + 1 + 3 + 1 , accessory_id ) ) , status_tampered : Some ( StatusTamperedCharacteristic :: new ( id + 1 + 4 + 1 , accessory_id ) ) , .. Default :: default ( ) } }
Creates a new Humidity Sensor service.
Creates a new Humidity Sensor service .
id
u64
accessory_id
u64
id
u64
accessory_id
u64