In setup:
gw.present(CHILD_ID_RShutter, S_COVER);
gw.present(CHILD_ID_RShutter, S_DIMMER );
In the Function to manage relays, for example for Down:
void incomingMessage(const MyMessage &message) {
if (message.type == V_DOWN) {
state1 = message.getBool();.
.
gw.send(msgREL_2.set(state1));
}
.
.
}
and so on for Stop and Up.
In setup:
gw.present(CHILD_ID_RShutter, S_COVER);
gw.present(CHILD_ID_RShutter, S_DIMMER );
In the Function to manage relays, for example for Down:
void incomingMessage(const MyMessage &message) {
if (message.type == V_DOWN) {
state1 = message.getBool();.
.
gw.send(msgREL_2.set(state1));
}
.
.
}
and so on for Stop and Up.
Thank you EasyIoT,
It would be good to have a feedback of every command, just to be sure, if you are not seeing directly the element you are controlling.
Thinking in this type of Domotic installations, based in radio, you never know if nodes are communication or not, because radio can have interferences or drop of radio coverage.
Currently, you can power off a node and you would not realize of nothing, even the controller will continue showing the last reading of sensors.