Fan
Smart HomeThe house’s fan; its speed is in percent, 0 to 100.
How you reach it
Section titled “How you reach it”The Fan class is reached through this attribute of home.
home.fan
Section titled “home.fan”Always there.
All the attributes of home are in its table.
Properties
Section titled “Properties”The fan speed last set, 0 to 100 percent.
speed: intRead only.
Used in examples: Hello, house
Methods
Section titled “Methods”Turns the fan on at full speed.
on()Turns the fan off.
off()Used in examples: Hello, house, Web dashboard
set_speed(percent)
Section titled “set_speed(percent)”Sets the fan speed, from 0 (off) to 100 percent (full speed).
set_speed(percent)Used in examples: Hello, house, Web dashboard