Announcement

Collapse
No announcement yet.

Under kitchen cabinet LED lamps with mcsMQTT control

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Pete
    started a topic Under kitchen cabinet LED lamps with mcsMQTT control

    Under kitchen cabinet LED lamps with mcsMQTT control

    Here have never updated the under the counter lighting to LED lamps.

    Purchased a few for testing and tested them in the garage and basement workbench years ago leaving them on 24/7 for a few years.

    New endeavor with some LED lamps that I purchased a few years ago.

    Hardware list:

    1 - 10 modules / .72 watts each / .06 Amps X 10 = .6 amps Reviewer tested 5 modules with a draw of 105 mA - testing with a .5 Amp regulated PS.

    LG Innotek LED modules.

    Click image for larger version  Name:	LED.jpg Views:	1 Size:	62.3 KB ID:	1241594

    Operates on 12Vdc. Dimmable. Covered lens protects against humidity and sun damage. 50,000 hour, long-life LEDs. 3M® double-stick tape on back of each module for attachment to clean, flat surface. Also has a hole for screw mounting. Specifications: 12Vdc, 0.72W each module.

    Test mounted the modules using tiny screws but not double stick tape yet. Mounting the LED lamps on the outer edge of the cabinet overhang.

    Hiding the 120 VAC to 12VDC LED power supply and Sonoff automation module inside of the 4 X 4 metal switch box with currently one switch inside of it.

    Click image for larger version  Name:	Innotek.jpg Views:	1 Size:	158.6 KB ID:	1241596

    2 - 4 X 4 metal in wall switch box
    3 - small 120 VAC transformer plus Sonoff mounted inside of box.

    Purchased one of these on Amazon for around $7. They are about $2 on Ebay with free delivery. This is a 1 AMP tiny LED driver.

    Purchased this just for testing purposes and to fit it inside of wall box with switch.

    Click image for larger version  Name:	LEDTransformer.jpg Views:	1 Size:	52.8 KB ID:	1241629

    Thinking one of these would fit inside of the metal switch box and connected to the above purchased transformer. (~ $10 on Amazon and around $4 on Ebay). Too bad that a dimming module wasn't made. I did find a tiny 12VDC dimming module that will fit nicely next to the LED lighting. Ordered this one Amazon Prime today.

    Click image for larger version  Name:	sonoffboard.jpg Views:	1 Size:	52.2 KB ID:	1241633

    4 - Diffuser - mounting LEDs in channel with diffuser LED Aluminum Channel System With Cover, End Caps and Mounting Clips
    5 - barrel connectors
    6- optionally using LED light strips. Will be building two configurations. Might utilize second one on top of the kitchen cabinets (2 switches).
    The old over the counter lighting was sort of used as night lights in the kitchen. (along with over the stove LED lamps). I am over doing this a bit now using added options. The diffuser / LED strip mounting gives it a nice finished look.

    Click image for larger version  Name:	LED2.jpg Views:	1 Size:	53.9 KB ID:	1241941
    Last edited by Pete; August 18th, 2018, 09:22 AM.

  • Pete
    replied
    Thank you Michael.

    Leave a comment:


  • Michael McSharry
    replied
    It was under $14 on lightning deal. https://www.amazon.com/gp/product/B0...?ie=UTF8&psc=1. Turns out I did not need any of the extra parts in the kit to make connections as the inside corners were easy to make with minimum radius and high enough up so out of sight and danger of being damaged.

    https://www.amazon.com/gp/product/B0...?ie=UTF8&psc=1

    Leave a comment:


  • Pete
    replied
    kitchen sink cabinet

    Great ideal Michael. Here just recently replaced the garbage disposal and old one had power conduit going right in to a box. I replaced the box with an outlet. Adding illumination would be great because the cabinet is very deep and you cannot see much in the back of the cabinet.

    Is the LED with motion sensor battery operated or does it come with a transformer?

    Here the next DIY LED tubes are for over the cabinets in the dining room. Inside have replaced the old mini 120VAC spots with LED spots and they work well for two of the cabinets with glass shelves.

    Leave a comment:


  • Michael McSharry
    replied
    I bought three or four to play with when the link was posted some weeks back. I have installed two with Espurna in cases with encoders and IR, but do not have any specific application for them at this time.

    What I did buy was a 10 ft strip with a hand-wave on/off switch that was on a Amazon Lightning deal. I was surprised that the technology that appears to be used for the switch was an IR emitter and receiver and the beam is deflected back when the hand is placed in front of it. I place this strip under the kitchen sink cabinet with the switch mounted on the vertical post between the two cabinet doors. It actually works quite well. What I actually would have preferred is a switch that was controlled when either cabinet doors was opened and then light off when either door closed. I know I could use a Sonoff Basic with two door/window sensors mounted on the doors, but the off the shelf solutions is still neat.

    Another project I did with the LED strip is with the NeoPixels where I implemented the Adafruit sketch for Fake TV in a Uno that I bought several years ago and never used. Rather than integrating software I found it easier to piggy back a Sonoff Basic in the case I printed to control the power to the Uno and Tasmota's timers to schedule when the Fake TV turns on and off. Often easier to hack hardware than hack software.

    Leave a comment:


  • Pete
    replied
    Went to purchase more MagicHome Controllers (same ones as above) and they all went up on Amazon...and one's that I got are gone...

    New endeavor here now...making more LED strips in aluminum holders with diffusers....and

    adding two more SonOff basic WiFi Espurna devices doing temperature and humidity on the second floor replacing current 1-wire Node Red OWFS set up.

    Very simple this time with 3 terminals on outside of case.

    Leave a comment:


  • Pete
    replied
    Tinkering this morning ssh'd over to the Mosquitto broker (RPi2) and noticed that I could ping every device just fine.

    Then started looking at the arp cache and added the devices to the arp table.

    I also found a script to do this with Tasmota devices as it is an issue with Tasmota and Espurna firmware devices.

    Then moved the broker over to the HS3 box running Ubuntu.

    Never rebooted any of the Sonoff or Magic home devices.

    I can now ping them from any device on the network and Jon00's monitor program lets me go to the interfaces web page. Now will wait a few hours and see if they work later.

    Works now. I can always get to the web page and Jon00's application works using ARP.

    Click image for larger version

Name:	aarp.jpg
Views:	9
Size:	78.5 KB
ID:	1271931

    xxxx

    Leave a comment:


  • Pete
    replied

    The two types of decoders are 20 detents and 360 degree turning. Didn't John have it set for two on off clicks to reset the counts on the decoder?

    I saw your stuff on the Espurna bug report relating to the interupts.

    Yes for testing here tried both BLLAN and Jon00's script while concurrently just pinged the network interface.

    BLLAN sees then always up even when I do not get ping responses. Jon00's script sees the interfaces down even when I get a ping response.

    I know I can tweak Jon00's settings for ping and will give it a try. I am running the script inside of a W2003 Virtual box with the connection bridged out on the Homeseer 3 Linux box and it does see rest of my devices on the main LAN.

    Added FastPing=0 under the Jon00 ini file settings section.

    Will download and update the two MagicHome controllers with the rotary encoders on them.

    Updated one with IR firmware and the other with DHT firmware.

    Works fine. 100% on one turn is higher on the WAF.

    Thank you Michael.

    I have not touched the mcsTasmota GDO SonOff WiFi basic device and it shows up on pings just fine.
    I did change the oui.txt file here. (mac address naming thing).

    #5 is the H801 RGB device with Espurna H801 firmware on it and no encoder.
    #2, #3 and #4 are SonOff Wifi Basic devices.

    Click image for larger version  Name:	jon00.jpg Views:	1 Size:	60.3 KB ID:	1271520
    xxx

    Leave a comment:


  • Michael McSharry
    replied
    I wonder what Jon00 is doing for monitoring. My understanding is that Mosquito uses ICMP and will report LWT which is normally Offline.

    I have increased the step size from 1 to 4 for my encoder firmware that bypasses the web server update as the knob is moved. I updated the zip at http://mcsSprinklers.com/mcsEspurnaMagicHome.zip to include the IR & DHT variants of the images.

    Leave a comment:


  • Pete
    replied
    Yeah here wife likes the digital on / off and dimmer pot and uses it all of the time. She has complained a bit about the slow rotation but never spins it.

    I have only one RGB controller (H801A) here in test mode connected to RGB, W and WW LED lamps using stock Espurna RGB firmware.

    No pot and RGB plus 2 channels works great.

    2 Magichome controllers are the only ones with the digital pots for use with brightness for one LED channel (SMD5050).

    2 SonOff WiFi basics only used for temperature stuff.

    The mcsMQTT with digital pot to Homeseer interface works great.

    Only utilize the browser interface here for configuration stuff. Originally only used the debug output for the on and off and dimming pieces to see them working.

    I did put in the IP and MAC addresses here for Jon00's monitoring utility and they do not show as online most of the time.

    Leave a comment:


  • Michael McSharry
    replied
    I have been running magichome LED strip with Espurna for about 2 days with browser window URL to the device Debug page. It continues to update and I continue to have control of brightness with the mcsEspurna version. I supported an investigation on github for encoder interrupt protection but it did not help the reset problem caused by spinning the decoder knob. It really does not matter to me if the Espurna Status page is updated as the encoder knob is changed since I normally will not be using the direct browser interface to the device.

    Leave a comment:


  • Pete
    replied
    Been tinkering with the 4 Espurna firmware devices. Initially did this to all four of them:

    Click image for larger version

Name:	eespurna.jpg
Views:	6
Size:	52.7 KB
ID:	1270928

    BLLAN shows them all responding to Pings which they are not. I can only ping one or two of them at any given time.

    Jon00 monitor shows one active only.
    MQTT works on all of these as I can send command and getting status just fine.

    I do see many bug reports about loss of web gui on many Espurna firmware upgraded devices. All the same. Working for a day or so then dropping off then coming back.

    Only thing that is hit or misst is the browser GUI. I can only get to one of the 4 browsers. If I keep trying then they all eventually come up. I have not rebooted any of them since last writing here.

    The mcsTasmota GDO WiFi Sonoff basic device continues to work fine in the garage with no issues.

    xxx

    Leave a comment:


  • Pete
    replied
    Redid the BLLAN stuff labels. Just noticed after goofing around here and not rebooting the Espurna DHT22, 1-Wire and H801A web interfaces came up but not the two MagicHome Espurna firmware devices.

    Click image for larger version

Name:	BLLAN.jpg
Views:	5
Size:	111.9 KB
ID:	1270439



    xxxx

    Leave a comment:


  • Pete
    replied
    When I was testing yesterday to provide debug "crash" and "info" data I had a case where I totally lost the firmware and was not able to connect with browser. Had to resolder the wires for manual flashing. Just reflashing did not help. I had to flash with Tasmota and then flash again with Espurna to bring it back. Apparently something was retained in non-volatile memory that killed Espurna.

    Saw your posts on the Espurna bug stuff forum posts.

    Did the crash and burn happen after an OTA update of modified Espurna Firmware?

    Are you doing the two step upgrade of firmware? (cuz it is over 500 k now)

    Here will modify another MagicHome controller with Espurna firmware but no digital pot / DHT22 and leave it such that I can update the firmware via the serial port.

    I only wired up two of the MagicHome Controllers to date. It is a PITA to wire up and once done will put connectors at the end of the wires for easy firmware update.

    Thinking John mentioned using the connector for the RX/TX Ground connection and GPIO 0 / ground just for the purpose of updating the firmware via a serial link.

    You indicated that you are using Espurna for several microcontrollers. Is it only the magichome configuration that is dropping off?

    Currently have implemented:

    1 - SonOff Basic WiFi #1 with mcsTasmota for GDO stuff - working fine. Sometimes I cannot get to the web interface and keep trying until I get to it. MQTT status and button working fine.

    2 - SonOff Basic WiFi #2 with Espurna and one DHT22. MQTT status is fine on Homeseer 3. Just tried the web interface and cannot get to it.

    3 - SonOff basic WiFi #3 with Espurna and multiple DS18B20's. MQTT status is fine on Homeseer 3 / mcsMQTT. Just tried the web interface and cannot get to it.

    4 - H801 RGB controller with Espurna and 5 channels of LED lamps. Relating to web interface same as above. MQTT is fine.

    5 - Magic Home Controller #1 with mcsEspurna and one LED channel and digital on off pot. Same as #2,3,4, Note already had issues with base Espurna MagicHome RGB firmware.

    6 - Magic Home Controller #2 with mcsEspurna and one LED channel and digital on off pot. Same as #2,3,4, Note already had issues with base Espurna MagicHome RGB firmware.

    Note here too have now added 3 custom OpenWRT AP's just for all of this stuff. I do see the MAC addresses of all of the above just fine with descent RSSI.

    I am using BLLAN and John's network monitoring.

    Via BLLAN see all except for one updated device.

    Click image for larger version

Name:	BLLAN.jpg
Views:	12
Size:	120.6 KB
ID:	1270429

    xxxx

    Not seeing any of the above with Jon00 application. I haven't really configured it all yet though.

    I have configured all of the Espurna boxes with the 3 WAPs and scanning.

    Leave a comment:


  • Michael McSharry
    replied
    When I was testing yesterday to provide debug "crash" and "info" data I had a case where I totally lost the firmware and was not able to connect with browser. Had to resolder the wires for manual flashing. Just reflashing did not help. I had to flash with Tasmota and then flash again with Espurna to bring it back. Apparently something was retained in non-volatile memory that killed Espurna.

    You indicated that you are using Espurna for several microcontrollers. Is it only the magichome configuration that is dropping off?

    Leave a comment:

Working...
X