Tasmota Device Template¶
-  festivalgrid.device_templates.tasmota.TEMPLATE_CLASS¶
-  class festivalgrid.device_templates.tasmota.Tasmota(device)[source]¶
-  -  get_device_admin_link()[source]¶
- Implement this if your device has a web admin interface. - Returns:
- 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) 
 
 -  static provision(ip, stdout)[source]¶
- This static method gets called when a user wants to auto-provision a device. - Args:
- ip (str): The ip address of the device stdout (object): Use this to print messages to stdout (i.e. - stdout.write('test'))
 
 -  sensor_keys= ['Power', 'ApparentPower', 'ReactivePower', 'Factor', 'Voltage', 'Current']¶
 -  set_cut_power(state)[source]¶
- Implement this if your device supports turning on/off it’s power state. - Returns:
- bool: - True -- Cut the power False -- Restore power 
 
 -  state_keys= ['Uptime', 'Heap', 'POWER']¶
 -  state_wifi_keys= ['AP', 'SSId', 'BSSId', 'Channel', 'RSSI', 'Signal', 'LinkCount', 'Downtime']¶
 
-  

