Help needed with registerSubscriptionFunction
i have a device wich can send o command when powered on. So I would like to use this to let NEEO know that this this device is powered on.
I try using registerSubscriptionFunction but I cannot figure out how this works
Could enybody provide some more information on how to use this?
You can use the addPowerStateSensor function
It's similar to a switch, if you already have a power switch you can actually use the same controller and the sensor will be aliased internally.
registerSubscriptionFunction is also correct, you can then send updates for the power state sensor using the callbacks you get there (so you need to use both in combination)