wiki:GaugesLight

Light

Role

  • Display severals state ( light, 3 states buttons )

Items

  • main : Main part of the light
    • request : Value requested to LoPlug? for this object
    • custom_func: Custom function describes in python. It takes one argument, the value return by the request, and return the value layer number:
 def custom_func(value):
	if value < 110:
		return 1
	else:
		return 0
  • valueX with X starting at 0 to N: item to display when state is at value X
    • command: Use when clicking on it, Cockpit send this command (ex: command="Lua.Screenshot.Cmd_ScreenshotToggleState" )