![]() ![]() You now want the button as an binary_sensor entity in Home Assistant. Add the RF button to Home Assistant using a Sonoff RF bridge or RFLink bridge # the following to be added to any existing binary sensor section platform: mqtt By the third press of the button three seconds will have passed so it will switch the the main (wall) light. Remember that the side light is controlled by an RF pairing. When I press the coffee table button the second time it will not be able to switch the main (wall) light for three seconds – but it WILL switch the side / table light. The magic below is in the off_delay: 3 setting. In Home Assistant use File Editor to add this to your configuration.yaml The switch will now be paired so that when the RF button is pressed the light toggles on or off. When the light flashes click the RF button. Set the wall switch in pairing mode by pressing the button for several seconds (there are three but I use the one that controls the table light). Generic black RF button from Aliexpress.Pair the AOYAN TI EU RF wall switch with your RF push button A smart wall switch that responds to both wifi and RF.A Sonoff RF bridge or RFLink to listen for a button press.See here on the basics for setting up a 433MHz switch An RF push switch such as a 433 MHz push button.Home Assistant running on a Raspberry Pi.Press again – side light goes off – main light stays off.Press again – side light goes on – main light goes off.Press again – side light goes off – main light stays on. ![]() Press once – side (secondary) light goes on – main (wall) light goes on.That said, having too many buttons on a coffee table will be confusing so this tweak replaces two buttons with one. I’ve mentioned my preference for using a physical button switch, rather than an app to control individual smart devices. Photo: the two lights to be controlled – the main wall light and the side secondary light. It’s done by linking the button to each light in a different way – and adding a few seconds delay to one of those ways so that the button is unresponsive for that time. Visitors this year: 255 The need: you use a table light for watching TV and a main (wall) light at other times and you want a coffee table button to switch between one or the other or have both lights on at once. Roger Frost’s Organic Chemistry – external site.web camera – GitHub and Arduino and ESP32-CAM.web camera – Home Assistant and ESP32-CAM. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |