Hi All.
i have a problem and seems that i cant get it to function.
i have a sonoff t1-2 gang that controlls my lights in my geust bedroom. i also added a ifan 2 to the fan/light combo in the room.
my issue starts with when you turn on the liht/fan the light comes on but i have the option for 3 types of tempretures on the led light. so i added a switch that only apears when the main light switch is on. that gives me the option to change the fan speed. and also turn the light on and of. .
what i need to do now is to have the status updated to the switch as when you turn the light on from the t1. the sitmap gives me the other options but it does not update to say that the light is on now. and the other isue is if the fan is running and you turn it off and back on with the t1 the sitmap shows it is still on set speed but the fan is off.
i run tasmota on bouth the sonnofs.
please see sitmap and rules i tried to get this working.
Sitemap :
ext label="Master-Bedroom" icon="bedroom"{
Default item=MasterBedroom_Light_Ingan label="Light" icon="lightbulb"
Default item=MasterBedroom_Light label="Entrance Light" icon="lightbulb"
Default item=MasterBedroom_Fan_Light label="Fan Light" icon="fan_ceiling" visibility=[MasterBedroom_Light_Ingan==ON]
Switch item=MasterBedroom_Fan_spd label="Fan Speed" icon="fan_ceiling" mappings=[0="OFF", 1="Slow", 2="Med", 3="High"] visibility=[MasterBedroom_Light_Ingan==ON]
Default item=MasterBedroom_Humidity label="Humidity [%.1f %%]"
Default item=MasterBedroom_Temperature label="Temperature [%.1f °C]"
}
Items for the Rule :
Switch MasterBedroom_timer "timer" {expire="5s,command=OFF"}
Rule :
rule "Main bedroom fan Timer"
when
Item MasterBedroom_Light_Ingan changed from OFF to ON
then
MasterBedroom_timer.sendCommand(ON)
MasterBedroom_Fan_spd.postUpdate(0)
logInfo("Rule","Fan switch Timer Start")
end
rule "Main bedroom fan corection"
when
Item MasterBedroom_timer changed to OFF
then
MasterBedroom_Fan_Light.postUpdate(ON)
MasterBedroom_Fan_spd.postUpdate(0)
logInfo("Rule","Fan switch update On")
end