Hi,
I solved this issue by simply commenting
//setStatus(OFF);
in NodeManagerLibrary.ino
Thanks for all
Joupil
Hi,
I solved this issue by simply commenting
//setStatus(OFF);
in NodeManagerLibrary.ino
Thanks for all
Joupil
Hi,
I solved this issue by simply commenting
//setStatus(OFF);
in NodeManagerLibrary.ino
Thanks for all
Joupil
Hello,
Unfortunatly none of these methods worked for me.
For all: the relays turn on when pins go high.
To me the original setup is correct but with no effect at startup. (Setup is in the file NodeManagerLibrary.ino)
I wrote a simple program 2 years ago and wanted to switch to NodeManager. But this issue is annoying. In this old program the method was following:
// Fetch relay status
for (int sensor=1, pin=RELAY_1; sensor<=NUMBER_OF_RELAYS;sensor++, pin++) {
// Register all sensors to gw (they will be created as child devices)
present(sensor, S_BINARY);
// Then set relay pins in output mode
pinMode(pin, OUTPUT);
// Set relay to 0
digitalWrite(pin, RELAY_OFF);}
This worked fine with no relay switch at startup.
Still stuck...
Thank you in advance for your help.
Joupil
Thanks for all.
NodeManager presents this method:
// what to do during setup
void SensorDigitalOutput::onSetup() {
// setup the pin
pinMode(_pin, OUTPUT);
// setup the off pin if needed
if (_pin_off > 0) pinMode(_pin_off, OUTPUT);
// report immediately
_report_timer->unset();
// turn the relay off by default
setStatus(OFF);
}
Shall I write :
// setup the pin
pinMode(_pin, OUTPUT);
dititalWrite(_pin, HIGH);
or turn the relay On by default?
Thank you
Hi,
I've just discovered NodeManager. Wow! So simple for coding great stuffs and mixing functions!
Unfortunately I'm stuck resolving the issue below.
The last node I created was built to open 3 doors (I've hacked an old Somfy remote controller) Each door is open/closed using a relay. I've used SensorLatchingRelay1Pin three times. It works like a charm.
The problem is that when unplugging the node then replug it the relays are all activating. In case off power failure all doors will open at last!
Is there something to know to solve that major issue?
Thanks in advance,
NodeManager Padawan.