The State container can handles a sensor (Button board for example), or an actuator (Power Switch board for example). Generally, this type of containers allows to manage bi-state elements such as on/off, pushed/release, 0/1, ...
Its type has access to all common capabilities.
Function name and parameters Action Comment
control(self) Displays container type graphical interface Only available using Jupyter notebook
Variable name Action Type
state Sets or reads the container state read / write: Boolean (True or False)
Event name Trigger
changed Any state modification pressed or released
pressed State modification from True to False
released State modification from False to True
Topic name Message type