I don't think what I am trying to accomplish can be done with just simple Event Triggers, so I started to code it in VB.NET but I am stuck.
So I created a virtual device for my TV. It has two control buttons On and Off.
When I press On, an event trigger uses MeiHarmonyHub to launch an activity.
When I press Off, an event trigger uses MeiHarmonyHub plugin to Power Off.
That's easy. I also have a Z-Wave switch that tells me if the TV is On based on how many Watts are being used.
How can I change the status of the device based on Watt usage? If I make an event that simply changes the Virtual Device TV to On/Off it ends up triggering MeiHarmonyHub to launch an activity or powers the TV off.
I tried using hs.SetDeviceValueByRef and setting False the last parameter so that it won't trigger the MeiHarmonyHub events but then other events that check if the virtual device is On won't trigger.
Can someone point me in the right direction on how to solve this? Do I have to use something with CAPI controls?
So I created a virtual device for my TV. It has two control buttons On and Off.
When I press On, an event trigger uses MeiHarmonyHub to launch an activity.
When I press Off, an event trigger uses MeiHarmonyHub plugin to Power Off.
That's easy. I also have a Z-Wave switch that tells me if the TV is On based on how many Watts are being used.
How can I change the status of the device based on Watt usage? If I make an event that simply changes the Virtual Device TV to On/Off it ends up triggering MeiHarmonyHub to launch an activity or powers the TV off.
I tried using hs.SetDeviceValueByRef and setting False the last parameter so that it won't trigger the MeiHarmonyHub events but then other events that check if the virtual device is On won't trigger.
Can someone point me in the right direction on how to solve this? Do I have to use something with CAPI controls?
Comment