Hi Guys I have a legacy system upgrade from wiser2 to AC2. The house has old DLTs and had logic scripts to control the speed of the ceiling fans from a bell press button on the DLT. I've written a lua script to provde the same function from the switch, but it's not working. Any advice would be apreciated. Lua Script below - GA181 is the bell press on the DLT [CODE]FanPress1 = GetCBusLevel(0, 56, 181) Fan1LowGA = 160 Fan1MedGA = 159 Fan1HighGA = 158 if FanPress1 == 255 then FanCount1 = FanCount1 + 1 if FanCount1 == 1 then SetCBusState(0, 56, Fan1LowGA, true) SetCBusState(0, 56, Fan1MedGA, false) SetCBusState(0, 56, Fan1HighGA, false) end if FanCount1 == 2 then SetCBusState(0, 56, Fan1LowGA, false) SetCBusState(0, 56, Fan1MedGA, true) SetCBusState(0, 56, Fan1HighGA, false) end if FanCount1 == 3 then SetCBusState(0, 56, Fan1LowGA, false) SetCBusState(0, 56, Fan1MedGA, false) SetCBusState(0, 56, Fan1HighGA, true) end if FanCount1 == 4 then SetCBusState(0, 56, Fan1LowGA, false) SetCBusState(0, 56, Fan1MedGA, false) SetCBusState(0, 56, Fan1HighGA, false) FanCount1 = 0 end end[/CODE]