How do connectors work?

Hmm, I'm not using them as events. I'm reading them based on other triggers. I would expect that you would use them like normal components (switches in the case of the boolean. sensors for strings). I'm not at home at the moment so I can't lookup any of my code.

Perhaps something like this? for the bools:

subscribe(isNight, "switch.on", nightHandler);
subscribe(isNight, "switch.off", dayHandler);

and for the strings:

subscribe(holidayName, "sensor.changed", stringHandler);

I'm just guessing a bit here since I'm not able to test atm. It is a bit confusing at first but once you get your first app down it will make more sense.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.