-
Notifications
You must be signed in to change notification settings - Fork 2
Software configuration
To recreate all the functionality available in the current Dobiss software, quite a few configuration files and objects are needed.
One of the core classes is the DobissEntity class. This class represents all entities that can be manipulated by the software. The following types of entity exist and have their own child class:
- DobissDimmer: This represents a dimmable output of a Dobiss module.
- DobissRelays: This represents a binary output of a Dobiss module.
- DobissShade: This represents an automated window shade that can be moved up or down.
- DobissScene: This is an entity that allows to bundle a collection of entities that can be manipulated simultaneously.
This class holds an entity object with an action that will be taken on that entity. There are a limited number of possible actions:
- Switch: Change the status of the entity to the opposite of the current status (off->on)
- Turn on: Change the status to on.
- Turn off: Change the status to off.
- Schedule: Change the status of the entity with a delay. Both the delay as well as the action to be taken needs to be provided in the optional "named_arguments".
- Cycle dimmer: Adjust the brightness of the DimmerEntity progressively up and down. Created to allow adjusting the brightness by holding down a lighting switch.
This class represents a physical DobissModule with its associated characteristics.
This class is used to bundle all relevant information provided by the One Wire Reader. It also validates this input and drops corrupt messages.
This class represents an event assosciated with a lightings switch. It can be a button has just been pressed, one that is being held down or one that has just been released.