I think the easy way is use arduino for coding but can be also done using nodeMCU and a LUA script.There is plenty of IOT examples on the internet used for RGB dimmer like this oneWill need a small amount of changes to match your needs.