Switch tile
$object.switchtile:description$
Properties
color_off
- $object.switchtile.color_off:description$
color_on
- $object.switchtile.color_on:description$
id
- Object id, each object has a unique id.
name
- $object.switchtile.name:description$
value
- $object.switchtile.value:description$
Methods
set_value
set_value(value)
$object.switchtile.set_value:description$
Parameters
value
- $object.switchtile.set_value.parameter.value:description$
toggle
toggle()
$object.switchtile.toggle:description$
Events
on_value_changed
$object.switchtile.on_value_changed:description$
Handler:function (switch, value, user_data)
switch
- $object.switchtile.on_value_changed.parameter.switch:description$
value
- $object.switchtile.on_value_changed.parameter.value:description$
user_data
- User data that was set or
nil
if no user data was set during connect.