Hi,
I added my iFAN with latest tasmota 9.5.0 trough tasmota integration.
I have a problem with decrease_speed step when speed is on maximum (I can’t decrease speed?)
Anyone has problem like me? Any solution?
Hi,
I added my iFAN with latest tasmota 9.5.0 trough tasmota integration.
I have a problem with decrease_speed step when speed is on maximum (I can’t decrease speed?)
Anyone has problem like me? Any solution?
I find solution:
var service1 = ("service1", "increase_speed");
var service2 = ("service2", "decrease_speed");
var service3 = ("service3", "turn_off");
var service4 = ("service4", "turn_on");
var domain = ("domain", "fan");
var entity1 = ("entity1", "fan.balcony_light_n_fan");
var topic1 = ("home/rooms/balcony/switch-01/button-02/state");
var topic2 = ("home/rooms/balcony/switch-01/button-03/state");
var topic3 = ("home/rooms/balcony/switch-01/button-04/state");
var stepup = (33);
var stepdown = (34);
var percentage_step = ("percentage_step");
if (msg.payload === "pressed" && msg.topic === topic1){
msg.payload = {
domain: domain,
service: service2,
data: { entity_id: entity1, percentage_step: stepdown },
};
node.send(msg);
node.log("decrease_speed");
}
if (msg.payload === "pressed" && msg.topic === topic2){
msg.payload = {
domain: domain,
service: service1,
data: { entity_id: entity1, percentage_step: stepup },
};
node.send(msg);
node.log("increase_speed");
}