Thanks. Yes, It's 3d printed. I find the LEDs helpful. I've had a couple of times when they are flashing every few seconds and I traced it back to a node.
KevinT
Posts
-
Easy-Peasy-LEDsy Serial Gateway -
Easy-Peasy-LEDsy Serial GatewayHi all,
I thought I'd share my NRF24 gateway and enclosure: Easy-Peasy-LEDsy Gateway. It's based on @neverdie's design. I've added status LEDs and an enclosure.
-
Pinging other MySensors fansI drop by every couple of weeks and I have a watch on some of the categories I'm interested in.
-
OpenHardware Category broken?Just wondering. I created a new project on OpenHardware.io but it never showed up in the forum category OpenHardware.io.
Is this category broken? -
Enclosure for Easy-Peasy-LEDsy nRF24 Serial GatewayHI all,
I'm sharing a serial gateway I built, based on the Easy-Peasy Serial Gateway.
You can find the hardware on OpenHardware: Easy-Peasy-LEDsy MySensors NRF24 Serial Gateway. It is basically a D1 mini with a shield into which you connect an nRF24+PA+LNA module and the LEDs.

Here are the stl files:
GW_Case.stl
GW_Cover.stl
GW_Hold Down.stlIt has a snap on cover, ventilation, and a hold-down to fix the D1 mini.
-
None nnn Node in Home Assistant@nagelc Thanks for the info, it gives me a good starting point.
-
None nnn Node in Home AssistantGood stuff. Which coin cell are you using? What transmit power?
-
None nnn Node in Home AssistantGiven that the nrf52832 is a fairly fast processor (ARM Cortex M4), I can see how that might happen, depending on the speed of the gateway and controller. That's why I asked @oldsurferdude what he's running. I'm running a Pi4 with Home Assistant OS and 2 serial gateways, 915Mhz and 2.4Ghz. My 2.4Ghz gateway consists of an ESP8266 with an nRF24L01P module. So far, I haven't had any lost messages, but it's early days for me, just testing out the hardware. I've been running with DEBUG off.
I'm also trying to determine battery requirements. Here's what I've found for current for various peripherals.
Bare bones mySensors sketch, with sleep, serial disabled: 2 uA
Bare bones mySensors sketch, with sleep & serial: 7.5 uA
sketch with I2C, sleep, serial disabled, ic2 disable/enable: 2 uA
sketch with I2C, sleep & serial, ic2 disable/enable: 8.4 uA
sketch with I2C, sleep & serial disable/enable, ic2 disable/enable: 2 uA
sketch with digital interrupt, sleep, serial disabled: 7.6 uA
sketch with digital interrupt, sleep, serial: 3.5 mA !
sketch with digital interrupt, sleep, serial disable/enable: 7.6 uA
sketch with spi, sleep, serial disabled: 2 uA
sketch with spi, sleep, serial : 3.1 mA !
sketch with spi, sleep, serial disable/enable: 2 uABasically, if you are using serial output, always disable it before sleep, and re-enable upon wake.
Current draw is normally 2 uA when sleeping. If you are using digital input interrupts, sleep current is 7.6 uA. -
None nnn Node in Home AssistantGood to know. I'll have to check and see if all my sensor measurements are getting through to ha. Out of curiosity, what hardware are you using for your gateway and controller?
-
None nnn Node in Home AssistantI ran into a problem while testing out an nRF52832 board with home assistant. Sometimes, when a new node connected, it would show in Home Assistsant as None nnn (where nnn is the node number) with only a battery sensor and no other sensors. Looking in the mysensors.json file, I found the sensors were defined but the sketch_name was "null".
"211": { "sensor_id": 211, "children": { "0": { "id": 0, "type": 6, "description": "Temperature", "values": { "0": "22.99" } }, "1": { "id": 1, "type": 8, "description": "Pressure", "values": { "43": "kPa", "4": "101.86" } } }, "type": 17, "sketch_name": null, "sketch_version": "1.0", "battery_level": 0, "protocol_version": "2.3.2", "heartbeat": 0 }The sketch name is set by sendSketchInfo(), which made me think that this message was getting lost sometimes, perhaps the transport message system was still processing previous messages.
I added a 10ms wait, and the problem was solved, the nodes now consistently register with home assistant.void presentation() { // Send the sketch name & version information to the gateway and Controller wait(10); // allow transport to setup, sometimes sketch info is being lost sendSketchInfo("BMP280 Sensor", "1.0"); present(CHILD_ID_TEMP, S_TEMP, "Temperature"); present(CHILD_ID_PRES, S_BARO, "Pressure"); }I just thought I would share this, in case others run into the same problem.
-
💬 Easy-Peasy Amplified MySensors Serial GatewayYes, Lol, you have 2 PRs but both have issues. I looked, but I didn't manage to find them on Github/MySensors. I did read that espressif updated their esp8266 core to use standard Arduino yield functions. I guess it's related to that.
-
💬 Easy-Peasy Amplified MySensors Serial GatewayHi @mfalkvidd
I rolled back the esp8266 library to 2.6.2 and it compiles.
Is there an upcoming release to fix this?
Thanks :-) -
💬 Easy-Peasy Amplified MySensors Serial GatewayI know this thread is old but it seems the most relevant. I just tried to compile the standard GatewaySerial.ino sketch using Wemos D1 mini as board type and I get error:
MyMainESP8266.cpp:95:9: error: 'cont_can_yield' was not declared in this scope;I'm using MySensors Library v2.3.2
I'm assuming this used to work. Is it broken or I am doing something wrong?
-
Outdoor Motion Sensor - Surprisingly GoodHi,
The sensor has a lux setting you can adjust to block triggering during daylight, but I just add an "after sunset" condition to my automation script to prevent daylight triggering.

On AliExpress:
PIR no base
PIR with base -
Outdoor Motion Sensor - Surprisingly GoodHi everyone,
I've wanted to add an motion sensor overlooking my driveway to turn on the outside lights when I return home at night. I wanted something I could integrate into my home automation system, not exterior lights with built in motion sensors.
My search for outdoor motion sensors that could be wired into a MySensors node yielded few results. I have previously used Panasonic pir sensors but they don't work with direct sunlight.

I ended up ordering a sensor on AliExpress.

I selected the 12V model, expecting I would need to supply both 12V and 3.3V to my node. Out of curiosity, I tried running the sensor on 5V, and to my surprise, it worked fine. Deciding to push my luck, I tried 3.3V and again, it worked fine!I installed the sensor last fall and it has been working great for 7 months now.


I had to add a load resistor for the sensor to switch properly.

I'm curious, what have other people used for outdoor motion sensors?
-
Sump Pit Monitor@TheoL Thanks. As @OldSurferDude says, it's an analog sensor I got off AliExpress Fuel level sensor. I chose a 0-190 ohm sensor, 450 mm long. I wired a 100 ohm resistor in series with the sensor and read the voltage with an analog channel. I do a little extra math to linearise the measurement.

I normally use mysensor nodes, but since this one is always on, I tried using MQTT for a change. -
Sump Pit MonitorHi All,
I recently replaced my sump pit pump and installed a battery backup pump at the same time. Naturally, when I saw all the alarms available on the backup system, I wanted to integrate them into my home automation system. I also wanted to add a water level sensor to get a better idea of how often the pump ran and also create a water level alarm.

Water level sensor installed.

I looked at the backup controller and realised it would be difficult to pull signals from it since it isn't easy to disassemble. So, I opted to used photo transistors to read the state of the alarm LEDs.

The photo transistors are held in place with velcro strips for easy removal.

My monitoring node consists of an ESP32C3 Super Mini ucontroller configured with 5 digital input channels and 1 analog channel to read the alarm LEDs and water level. I'm using MQTT, for this project, to send the data to Home Assistant.

Integrated into Home Assistant

Overall, after a few adjustments, the systems works really well and provides some peace of mind. -
A low cost energy meterHi OldSurferDude,
I just read through your Energy Meter documentation. Nice work. It gives basic theory and calculations. I've been thinking about building an energy meter for a while now. I'll use this as a reference. Thanks. -
HVAC ControllerWow, you're going to be busy. Hope all goes well. Give us an update when you're finished.
-
Halloween LightsA little Halloween fun. I've added LED strip lights to an old Halloween plastic ghost and jack-o-lantern and automated switching them off/on using a MySensors node.
