Then I think it’s some kind of capability caching inside homey even though I removed the device and re-add it. (I did not change the name of the device). If I block out the setclass instruction (basically the old code again) it keeps on working… weird. Ill keep it to “socket” just to be safe.