home > home-automation > reading-lamp-buttons

Reading Lamp Buttons

10 | 03 Aug 2024

light button

Reading Lamps - the problem

one reading lamp either side of the bed... switching off the other side... :)

Hotels solve this problem by routing an extra cable in the wall and providing a couple of light switches on the wall to control either side... This does solve the problem but is still sometimes awkward to reach.

Not wanting to chop up the walls... I initially added them to HA, to be controlled by a phone, but... who wants to unlock their phone, open an app, click in the app.

Aqara Mini Buttons

Aqara mini switch is a great solution, as no digging through the walls and the button can be placed on the edge or front of the cabinet in easy reach

  • Sigle click - toggle light on this side
  • Double click - toggle light on the other side

Setup

The setup is pretty much plug and play, add as a zigbee device, and map the click and double click to an automation that toggles the light.

Example Button Single Press Automation

alias: blueroom-button1-sp
description: single press of blue room button1
trigger:
  - device_id: 00000000000000000000000000000000
    domain: zha
    platform: device
    type: remote_button_short_press
    subtype: remote_button_short_press
condition: []
action:
  - service: switch.toggle
    target:
      entity_id:
      - switch.tp_link_power_strip_fd11_mb_ps2_s1
    data: {}
  - delay:
      hours: 0
      minutes: 0
      seconds: 1
      milliseconds: 0
mode: single

note, there is a delay of 1 second added, this prevents multiple triggers firing at the same time, rate limiting.

Post a Comment