BTHome.DimmerEvent (BTHome v0.1.0)

View Source

Defines dimmer events for BTHome v2 format.

This module provides constants for dimmer events that match the Python BTHome library's DimmerEvent enum values.

Summary

Functions

Returns all valid dimmer event types.

No dimmer event occurred.

Dimmer rotated left.

Dimmer rotated right.

Checks if the given value is a valid dimmer event type.

Functions

all()

Returns all valid dimmer event types.

none()

No dimmer event occurred.

rotate_left()

Dimmer rotated left.

rotate_right()

Dimmer rotated right.

valid?(event_type)

Checks if the given value is a valid dimmer event type.