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âŠ
Open the drawer and look at them. They have a cable in and a cable out, and a button to push for on/off. Is that not what you mean by âcord switchâ?
Search this community for how to integrate with Openhab, involves reprogramming.
@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.