My MyQ Device type has been working for over a year, but is now causing errors. It took me an hour to get the device removed due to all of SmartThings stupid interdependencies, but once finally removed, I can not re-instantiate it due to the following error returned by the IDE regarding the deviceType:
java.lang.NullPointerException: Cannot get property 'door_name' on null object @ line 184
Here are lines 184 - 188:
if ((settings.door_name ?: "blank").isLong() == true) {
log.debug "Door Name: Assuming Door Name is a Device ID, $settings.door_name"
state.DeviceID = settings.door_name
return
}
I’m reasonably certain they broke some syntax here, but don’t know what its replacement might be. Anyone have any ideas?
@scottinpollock I am using the old version of the same code that you posted which you helped me with nearly one year back. Just out of curiousity, I looked at my things and the garage door now appears as “unknown”. Not sure when this happened. MyQ.
Hot water is important to me. I treat it like thermostats, I will only bump temps (so it’s never off), and I program double checks into critical systems like it. I’d be curious what the root cause of your hot water being off is…
You shouldn’t have to do this but if it were me, I’d put notifications on for it, and I’d even consider using the IFTTT trick I use to track recent sunrise/sunset issues (though it only happened once to me.). Again, you should’t have to, this is an ST problem they need to fix. But just for greatest happiness in your house. I’d be strung up in my house if I took away hot water.
Thanks. What I will do tonight is move that schedule (like most of my other ones) to my Indigo Server. I also need to get started on adding scheduling to HAM Bridge so I can phase out Indigo, which was the whole plan after acquiring SmartThings back in 2013. Unfortunately, SmartThings has gone from bad to worse in recent months, and I am starting to run out of patience.