Power Source
- class st.zigbee.defaults.powerSource
- zigbee_handlers: table
- attribute_configurations: table
- capability_handlers: table
- static power_source_attr_handler(driver, device, value, zb_rx)
Default handler for power source attribute on the basic cluster
This converts the power source value to the appropriate value
- Parameters
driver (
ZigbeeDriver
) – The current driver running containing necessary context for executiondevice (
st.zigbee.Device
) – The device this message was received from containing identifying informationvalue (
st.zigbee.zcl.clusters.Basic.PowerSource
) – the value of the Basic cluster Power Source attributezb_rx (
st.zigbee.ZigbeeMessageRx
) – the full message this report came in