Managing S_COVER, V_UP, V_STOP, V_DOWN, V_DIMMER

9 years 5 months ago - 9 years 5 months ago #1759 by osalval
Actually I get feedback of cover level in WEB UI, sending V_DIMMER value, from Arduino.

, but not for: V_UP, V_STOP, V_DOWN.

I suppose it sould change the state of every 3 boxes when active, for example from grey to blue?

My Arduino Sketch has:

#define CHILD_ID_RShutter 0 // Id of the Roller shutter sensor child

MySensor gw;
MyMessage msgREL_2(CHILD_ID_RShutter, V_DOWN);
MyMessage msgREL_1(CHILD_ID_RShutter, V_STOP);
MyMessage msgREL_0(CHILD_ID_RShutter, V_UP);
MyMessage msgDimmer(CHILD_ID_RShutter, V_DIMMER);

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.

Please Log in or Create an account to join the conversation.

9 years 5 months ago #1768 by EasyIoT

osalval wrote: Actually I get feedback of cover level in WEB UI, sending V_DIMMER value, from Arduino.

, but not for: V_UP, V_STOP, V_DOWN.

I suppose it sould change the state of every 3 boxes when active, for example from grey to blue?

My Arduino Sketch has:

#define CHILD_ID_RShutter 0 // Id of the Roller shutter sensor child

MySensor gw;
MyMessage msgREL_2(CHILD_ID_RShutter, V_DOWN);
MyMessage msgREL_1(CHILD_ID_RShutter, V_STOP);
MyMessage msgREL_0(CHILD_ID_RShutter, V_UP);
MyMessage msgDimmer(CHILD_ID_RShutter, V_DIMMER);

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.


Buttons up, down and stop do no change color.
The following user(s) said Thank You: osalval

Please Log in or Create an account to join the conversation.

9 years 5 months ago #1783 by osalval
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.

Please Log in or Create an account to join the conversation.

Time to create page: 0.341 seconds

Forum latest

  • No posts to display.