param {text=} the value to send on longpress (optional)
	If this starts with a + or - sign the value is treated as offset to current stateswitch value.
* @param {text=} the value to send on releasing after a longpress (optional)
*
* @see misc/fundamentals#Items
* @see design/design_icons#Icons
*
* @author Stefan Widmer
* @info Based on work of Martin GLEISS and Pierre-Yves KERVIEL
*/
{% macro stateswitch(id, item, type, value, icon, text, color, indicator, item_longpress, value_longpress, value_longrelease)