HomeSeer / Plugin-SDK

Plugin development kit for the 4th major edition of the HomeSeer platform.
https://www.nuget.org/packages/HomeSeer-PluginSDK/
GNU Affero General Public License v3.0
20 stars 4 forks source link

Timeframe for Issue #185, internally PSDK-264 #330

Open tenholde opened 1 year ago

tenholde commented 1 year ago

I closed issue #185 on March 7 as there was a promised fix in version 1.5.

Is there a timeframe for releasing v1.5 (or have I missed it?)

This was being tracked internally as PSDK-264

Thank you.

spudwebb commented 1 year ago

The GetControlsForUse, GetFirstControlForUse, and HasControlForUse methods were added in version 1.4.2.0 https://homeseer.github.io/Plugin-SDK-Docs/release_notes/pluginsdk_releasenotes_1_4_2_0.html

tenholde commented 1 year ago

Thanks, I missed that. New functions work fine, but what I was looking for is an easy way to say, for instance, turn a light on.

Something like: hs.SendControlForUse(174,EControlUse.On) to turn ON DevRef 174

Best I've been able to figure out is:

hs.SendControlForFeatureByValue(174, hs.GetFeatureByRef(174).GetFirstControlForUse(Controls.EControlUse.Off).TargetValue)

Additionally, is there some way to just send a control to a plugin for execution? Something like hs.SendControl(StatusControl)