Nice! I have to give it a try this weekend, but this means I can stop working on my own driver for it! Any chance you have played with their outdoor plug?
I used this driver and it worked like a charm. Until i realized the power reporting interval was off the charts in the logs. Is there a way to slow up the reporting interval? Any help would be much appreciated.
That should be able to be handled with the driver. A setting in preferences could be added which just ignores the power responses unless they are sufficiently different (assuming it cannot configure the device to report differently). Does not prevent the "traffic" of the device reporting every change but can at least reduce the events and logging.
Amazon had a lightning deal on the Minoston MP21ZP plug so I picked one up. After including it in my HE I found this driver and was thrilled. My HPM then linked the manually installed driver and updated to the latest. I think 1.0.4? Now I am getting alerts that the device is really active and causing a lot of events. While watching the current states, the Power and Power Low values were changing every second.
Also, every time I save Preferences, I am getting an error for line 199
[dev:9](https://remoteaccess.aws.hubitat.com/logs#dev9)2021-10-31 01:15:28.537 pm [error](https://remoteaccess.aws.hubitat.com/device/edit/9)java.lang.NullPointerException: Cannot get property 'options' on null object on line 199 (method updated)
[dev:9](https://remoteaccess.aws.hubitat.com/logs#dev9)2021-10-31 01:15:23.398 pm [error](https://remoteaccess.aws.hubitat.com/device/edit/9)java.lang.NullPointerException: Cannot get property 'options' on null object on line 199 (method updated)
Is the Minoston Power Switch the correct driver for the MP21ZP mini power plug?
Is the error easily fixed?
Is there a way to not report the power changes so quickly? I really don't need to see the updates more frequently than every 5 minutes.
EDIT: Maybe the error on line 199 is related to the super fast updates?
I think @beyondunreal79 will appreciate it! Thanks for your work, I totally understand how things can get busy (let alone towards the end of the year for most people).
OK, I was not on the latest version, I thought I checked but top post linked to a specific old version instead of latest version. But I got a different error after updated to latest:
errorgroovy.lang.MissingMethodException: No signature of method: user_driver_sky_nie_Minoston_Power_Switch_779$_convertOptionSettingToInt_closure8.call() is applicable for argument types: (java.util.LinkedHashMap) values: [[0:On When On [DEFAULT]]]
Possible solutions: any(), any(), each(groovy.lang.Closure), any(groovy.lang.Closure), each(groovy.lang.Closure), any(groovy.lang.Closure) on line 631 (method updated)
With the preferences failed to save, I'm getting massive amount of events and HE kept send me warning. After I switch to build-in driver (with less features), the event flood stopped but I miss the features provided by this driver.