Code: Select all
Param speed("Speed", ESP_RMAKER_PARAM_SPEED, value(1), PROP_FLAG_READ | PROP_FLAG_WRITE);
speed.addBounds(value(1), value(5), value(1));
speed.addUIType(ESP_RMAKER_UI_SLIDER);
my_fan.addParam(speed);
my_node.addDevice(my_fan);
How can I code so that both Google voice and Alexa support my fan speed controlling?