Originally posted by enigmatheatre
View Post
what you are showing is the definition of a variable, on one hand it is HS for HS3 and on the other your code to define HS4.
What is missing is the code to give this variable the right value. In HS3 that was done in the "main" procedure that was also part of the example PI code
' connect to HS so it can register a callback to us
host.Connect(sIFACE_NAME, Maininstance)
' create the user object that is the real plugin, accessed from the pluginAPI wrapper
callback = callback
hs = host
In HS4, you can use variable HomeSeerSystem which is given meaning in the parent class "AbstractPlugIn". Use that variable but note that methods for IHsController will be different from IHSApplication!
Hope that helps,
Dirk
Comment