pub struct ZigbeeD1 {
Show 22 fields pub action: ZigbeeD1Action, pub ballast_maximum_level: f64, pub ballast_minimum_level: f64, pub brightness: f64, pub capabilities_configurable_curve: bool, pub capabilities_forward_phase_control: bool, pub capabilities_overload_detection: bool, pub capabilities_reactance_discriminator: bool, pub capabilities_reverse_phase_control: bool, pub energy: f64, pub linkquality: f64, pub minimum_on_level: f64, pub mode_phase_control: ZigbeeD1Modephasecontrol, pub power: f64, pub state: bool, pub status_capacitive_load: bool, pub status_forward_phase_control: bool, pub status_inductive_load: bool, pub status_overload: bool, pub status_reverse_phase_control: bool, pub last_seen: Option<LastSeen>, pub elapsed: Option<u64>,
}
Expand description

ubisys:D1 zigbee2mqtt link

Fields§

§action: ZigbeeD1Action

Triggered action (e.g. a button click)

§ballast_maximum_level: f64

Specifies the maximum light output of the ballast

§ballast_minimum_level: f64

Specifies the minimum light output of the ballast

§brightness: f64

Brightness of this light

§capabilities_configurable_curve: bool

Zigbee herdsman description: “The dimmer is capable of replacing the built-in, default dimming curve.” Boolean values can be an unintuitive way round: value_on = true and value_off = false, consider double checking Zigbee2MQTT to understand what they mean

§capabilities_forward_phase_control: bool

Zigbee herdsman description: “The dimmer supports AC forward phase control.” Boolean values can be an unintuitive way round: value_on = true and value_off = false, consider double checking Zigbee2MQTT to understand what they mean

§capabilities_overload_detection: bool

Zigbee herdsman description: “The dimmer is capable of detecting an output overload and shutting the output off.” Boolean values can be an unintuitive way round: value_on = true and value_off = false, consider double checking Zigbee2MQTT to understand what they mean

§capabilities_reactance_discriminator: bool

Zigbee herdsman description: “The dimmer is capable of measuring the reactanceto distinguish inductive and capacitive loads.” Boolean values can be an unintuitive way round: value_on = true and value_off = false, consider double checking Zigbee2MQTT to understand what they mean

§capabilities_reverse_phase_control: bool

Zigbee herdsman description: “The dimmer supports AC reverse phase control.” Boolean values can be an unintuitive way round: value_on = true and value_off = false, consider double checking Zigbee2MQTT to understand what they mean

§energy: f64

Sum of consumed energy

§linkquality: f64

Link quality (signal strength)

§minimum_on_level: f64

Specifies the minimum level that shall be applied, when an on/toggle command causes the light to turn on. When this attribute is set to the invalid value (255) this feature is disabled and standard rules apply: The light will either return to the previously active level (before it was turned off) if the OnLevel attribute is set to the invalid value (255/previous); or to the specified value of the OnLevel attribute if this value is in the range 0…254. Otherwise, if the MinimumOnLevel is in the range 0…254, the light will be set to the the previously active level (before it was turned off), or the value specified here, whichever is the larger value. For example, if the previous level was 30 and the MinimumOnLevel was 40 then the light would turn on and move to level 40. Conversely, if the previous level was 50, and the MinimumOnLevel was 40, then the light would turn on and move to level 50.

§mode_phase_control: ZigbeeD1Modephasecontrol

Configures the dimming technique.

§power: f64

Instantaneous measured power

§state: bool

Zigbee herdsman description: “On/off state of this light” The string values get converted into boolean with: ON = true and OFF = false

§status_capacitive_load: bool

Zigbee herdsman description: “The dimmer’s reactance discriminator had detected a capacitive load.” Boolean values can be an unintuitive way round: value_on = true and value_off = false, consider double checking Zigbee2MQTT to understand what they mean

§status_forward_phase_control: bool

Zigbee herdsman description: “The dimmer is currently operating in AC forward phase control mode.” Boolean values can be an unintuitive way round: value_on = true and value_off = false, consider double checking Zigbee2MQTT to understand what they mean

§status_inductive_load: bool

Zigbee herdsman description: “The dimmer’s reactance discriminator had detected an inductive load.” Boolean values can be an unintuitive way round: value_on = true and value_off = false, consider double checking Zigbee2MQTT to understand what they mean

§status_overload: bool

Zigbee herdsman description: “The output is currently turned off, because the dimmer has detected an overload.” Boolean values can be an unintuitive way round: value_on = true and value_off = false, consider double checking Zigbee2MQTT to understand what they mean

§status_reverse_phase_control: bool

Zigbee herdsman description: “The dimmer is currently operating in AC reverse phase control mode.” Boolean values can be an unintuitive way round: value_on = true and value_off = false, consider double checking Zigbee2MQTT to understand what they mean

§last_seen: Option<LastSeen>

Optional last_seen type, set as a global zigbee2mqtt setting

§elapsed: Option<u64>

Optional elapsed type

Trait Implementations§

source§

impl<'de> Deserialize<'de> for ZigbeeD1

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,