great, this it was where i looking for.
thanks
easy
@easy
Best posts made by easy
-
RE: delayed startup for mysens-features
Latest posts made by easy
-
using ESP8266 as NRF24 ?
it is possible to use an "wemos D1 mini" as sensor to communicate with his ESP8266 to an MQTT-gateway (with nrf24) ?
i have an mysenors-mqtt-gateway (nrf24 + w5100 + arduino-uno) this works very well.
(with other arduino nrf24 sensors)now i will build an small sensor with an "wemos d1 mini".
and i DONT want using wifi for the sensor.
i want the communication between wemos ESP8266 an gateways nrf24.is there an solution ?
thx easy
-
RE: delayed startup for mysens-features
great, this it was where i looking for.
thanks -
RE: delayed startup for mysens-features
thanks, but sorry that is not what i want...
in my light controlers the led´s will fade to the ON value. (for examble 0-60% in 0,7 seconds)
(..or fade to any new changed value..)
for this fading i need time. at start i need loop for ca. 0,7s.actualy i found an dity way...
in the lib-file "MySensorsCore.cpp" i found this:
// Call sketch setup() (if defined) if (setup) { CORE_DEBUG(PSTR("MCO:BGN:STP\n")); // setup callback setup(); }
and changed to this:
// Call sketch setup() (if defined) //if (setup) { CORE_DEBUG(PSTR("MCO:BGN:STP\n")); // setup callback setup(); //}
aditional i put the fade on for the led´s to the setup() void.
into an while-loop wich is controlled by the millis() value.
after an time 1,5s i set an variable and the setup() will be jumped over for next call.after this the mysensors can connect.
and then the leds can be controlled over mqtt.can some one tell me an clean way, without changing the lib´s ?
thanks
easy -
delayed startup for mysens-features
hi,
i want to build an mqtt controlled led dimmer (4 cannel).
so i have an mysens mqtt gateway which is 24/7 running.now i build an actor node wich controls the led´s and has an mysens connection.
(in my case an arduino-nano with an nrf24 & pca9685)BUT...
the actor will only be powered if the light is switched on.- lightswitch -> ac power to powersupply -> dc power to arduino -> arduino boots up...
so i cant wait till mysens is registered to the gateay till the led´s will be powered.
(in my cas this is an delay about 4s)i will flash the arduino without bootloader and an feature that i can register the node at the gateway delayed. after the led are up-dimming after power on.
the connetion to mqtt (over mysens) will only be used to dimm the led´s not for switching on or off.
so i need an bit to start the init procedure for the mysens features.
thanks
easy