My plugin supports TPLink wifi plugs, bulbs, etc. The devices currently only have 1 control feature that controls on/off/dim/color. I have some devices for which I would like to include an additional feature for watts to allow triggers based on how many watts are being consumed.
Is there a straightforward way to differentiate features when they don't conform to the EGenericFeatureSubType? I want to update that watts feature as needed and to react to triggers.
I know I can iterate through the device's features but want to ensure in my code that I have the correct feature.
Is there a straightforward way to differentiate features when they don't conform to the EGenericFeatureSubType? I want to update that watts feature as needed and to react to triggers.
I know I can iterate through the device's features but want to ensure in my code that I have the correct feature.
Comment