The base class for device templates.
Usually you will only inherit from this class if you implement a new low level device template class like
Initialize a device template.
festivalgrid.models.Device): Device object instance.
This method gets called whenever we fetch/receive a new message from a device. You must take care of parsing/interpreting the message and return a dict that can be stored into the time series database.
msg (str): The message that needs digesting
True -- Cut the power
Implement this if your device has a web admin interface.
dict. Should return a dict with two keys:
title -- Title of the link url -- Full url to the device admin (e.g. http://192.168.1.4/admin)
This method gets called whenever a device’s configuration was changed (e.g. through the app or admin interface)
festivalgrid.models.Device): The device that was changed.
This static method gets called when a user wants to auto-provision a device.
ip (str): The ip address of the device stdout (object): Use this to print messages to stdout (i.e.