Homeyduino: setCapabilityValue does not change Homey state?

Are you calling Homey.loop() from inside the loop() method? Have you called setClass()?