Plug Example
Because the flash memory is very limited on these devices the minimal sketch only contains Elements that are used within bulbs. e.g. no sensors and provide the base functionality combined with a set of elements that can be used in the configuration of the device.
See introduction to Minimal Examples.
Included Elements
The elements that are included in this example sketch are those that support bulbs and other light devices like NEOpixel based strip controllers.
-
device Element – for device level configurations.
-
ota Element – for OTA update support
-
ntptime Element – for self-hosted time based on/off automation
-
time Element - time based events
-
state Element – to save the state of the last settings
-
scene Element – support multiples scene specific settings
-
switch Element – interactive switch on/off
-
value Element – support of simple values like brightness
-
digitalin Element – support momentary buttons
-
button Element – support momentary buttons
-
digitalout Element – support binary output to drive relais.
-
alarm Element – Time based actions
-
schedule Element – Time based actions
-
timer Element – Time based actions
You can control what elements are included in the firmware file by enabling or disabling the #define statements for registering the elements in the sketch file.
If you like to know what element are available in a device just ask for the URL http://<devicename>/$elements