Okay, cool. The reason I'm wondering is because I'm trying to pinpoint some slowdown behavior as you've explained and an eventual crash (just one time). I haven't determined for sure what is causing the slowdown but at this point I have only drivers with a websocket implementation disabled and my hub has been fantastically stable.
Please continue to update this thread if you find any fixes or problems.
def setLevel(level) {
// Set the brightness of a device (0-100)
level > 100 ? (level = 100) : null
sendEvent(name: "level", value: level)
logDebug "Level set to ${level}"
Ogiewon's Logitech integration. Again, I don't know for sure if it's websockets or if my hub just hasn't been up long enough since the last slowdown and crash. I'm only at about 36 hours uptime. Or if it's just that these extra devices are pushing the hub to its limit. I don't have any automations with the Logitech or Magic Home devices so they really shouldn't be adding much load especially idle. They are mostly for control and consolidation so that everything is in one place.
I was having slowdowns usually within 24 hours and they would get gradually worse until I had 2 and 3 second response times to any automation. I'm guessing I didn't catch one in time and that's why the hub went down.
Anyway, I'm trying to isolate the cause and the next few days should be very telling hopefully.
I received my development hub today. I’ve got ~20 MagicHome devices with the new driver running on my home hub with over 100 hours of uptime. First reboot was last night with a developer update. I’m gonna keep working on it and aim for a release in the next couple days
Hm? There’s only one call in there. SendEvent(...) is a status write to the database only. I’ll take a look at it and triple check there’s nothing recursive, but that’s the practiced method to write this.
Thanks for the heads up. Did you device go offline, or did your router update DHCP info/self-heal/reboot around that time? I’m trying to diagnose this and find patterns.
I’ll release the version with telnet/socket option in the next few days.