i wanted to switch my desk lamp via OH. But i wanted to have it switchable with the cord switch as well. Since it is a 12v LED lamp i made some tinkering i documented here:
The result looks like that:
I really wonder, if there is a smart way of keeping a cord switch usable with a 230v lamp. The principle would work, but i do not want to tinker like that with mains…
@ronvsanten Thanks for the great tip. I Subscribed it immediately
However, for me personally, most cases they mention i can handle nicely with Homematic components as well.
Just the cord switches…
I found this devices: https://www.amazon.de/dp/B00U5G9CDA but it would force me into z-wave as new protocol. I think my “happy” solution would be this device in a homematic version
For the desk lamps of the kits (running on mains) it might be the cheapest solution to just replace them with smart LED lamps and to hope that they can be “openHABed”…
The alternative would be to install a switch or button to your microcontroller, which will then switch the relay. no need for the cord to stay in sight (or is this indeed what you want?)
@ThomDietrich in some cases the cord is part of the design (Desk lamps, some floor lamps (Stehlampe)).
Actually all the devices which use cord switches today. Where a cord switch is just usable and feels “right”.
The typical HM solutions (like your switch) are of cause ok. But still they are somehow “workarounds” for the cases where cords are visible and cord swiches are just good :-).
I thinks regarding usability my solution above is exactly what i desire. I just don’t want to switch mains like that.
Using a Homematic device with the trick i made in the cord switch is not possible i guess, since
a) i can not swich them with a pull down, so i would have to send back 230 to the “S” but
b) i could not toggle on change…
I did look for a nice housing for Sonoff, none found. Opportunity for 3D printer owner? But then there’s the e-marking etc.
I do agree in the home something a bit more glamorous looking and spill/child resistant is desirable.
Of cause i can very well agree to have the cord as a technical necessity .
Sure, the second approach is an option. But since i would want to have only one cable, it would leave me having low voltage signals and mains in one cable. Not sooo nice.
3D printing is also not always the solution, depends on what you deem as “nice” in your home environment. I’ve hidden away the Sonoff modules behind things like shelves or the fridge, another nice place is under the foot of the floor lamp (“Stehlampe”).
The usage of the ground-wire for anything else than ground is not legal in many countries and poses a huge safety risk. The cord should be changed to have more wires.
Makes no difference. High voltage is high voltage. If it’s part of a fixed installation, then regulations coveres it down to 12V (Think it’s same across EU). Regardless, I’d personally never use yellow/green for anything else than ground.