Shelly dimmer 2 device states not updating regularly

Why are you using Marker API? There is a built in system driver for it. Maybe try setting up the system driver to see if that works better?

You create a virtual device and select "Shelly WiFi Dimmer", then in the settings you put in the IP of the device from the sounds of it on that post.