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

Control device via JSON request "setdevicestatus" - is there any way to be notified in the plugin? #262

Closed alexbk66 closed 2 years ago

alexbk66 commented 2 years ago

If I have a status only device and want to control it via JSON request "setdevicestatus" - is there any way to be notified in the plugin?
I.e. HsEvent works for "controldevicebyvalue", but since my devices don't have controls - I can't use it.

/JSON?request=setdevicestatus&ref=1817&value=2

BTW, https://docs.homeseer.com/display/HSPI/setdevicestatus missing "&ref=" parameter

rjhelmke commented 2 years ago

When you set the status of a device, that should change the string value also, so check the STRING_CHANGE HSEvent, that might do what you want.

rjhelmke commented 2 years ago

Are you ok with my suggestion or do you need us to add something?

alexbk66 commented 2 years ago

I still need to test, thank you

spudwebb commented 2 years ago

Please reopen is the suggested solution is not ok.

alexbk66 commented 1 year ago

BTW, https://docs.homeseer.com/display/HSPI/setdevicestatus is still missing "&ref=" parameter