Automation cookbook
Fourteen ways Home Assistant can make every old screen feel alive.
OldPhoneKiosk gets interesting when the screen is not static. These recipes show how HA can charge safely, wake on motion, open the right control, behave like a doorbell intercom and fall asleep when the room goes quiet.
iPhone / iPad
Battery-safe charging: keep it between 30% and 75%
- Trigger
- Battery drops below 30% or rises above 75%
- Action
- Turn the smart plug on below 30%, off above 75%, and show a tiny charging status on the panel.
- Why it matters
- Old devices stay mounted for months without sitting at 100% all day.
alias: OPK battery safe charging
trigger:
- platform: numeric_state
entity_id: sensor.hallway_iphone_battery
below: 30
- platform: numeric_state
entity_id: sensor.hallway_iphone_battery
above: 75
action:
- choose:
- conditions: '{{ states("sensor.hallway_iphone_battery")|int < 30 }}'
sequence:
- service: switch.turn_on
target: {entity_id: switch.hallway_panel_plug}
- conditions: '{{ states("sensor.hallway_iphone_battery")|int > 75 }}'
sequence:
- service: switch.turn_off
target: {entity_id: switch.hallway_panel_plug}iPad
Brighten the screen when motion is detected
- Trigger
- Kitchen motion sensor turns on
- Action
- Wake the kitchen iPad, show the Today board, and let it dim again after the room is quiet.
- Why it matters
- The display is readable when someone enters, but not glowing across an empty room.
alias: OPK kitchen motion wake
trigger:
- platform: state
entity_id: binary_sensor.kitchen_motion
to: 'on'
action:
- service: oldphonekiosk.wake
target: {device_id: kitchen_ipad}
- service: oldphonekiosk.set_screen
target: {device_id: kitchen_ipad}
data: {screen: dashboard.today}iPhone / iPad
Open a quick control for one element — like hallway lights
- Trigger
- Someone taps the panel or unlocks the front door
- Action
- Switch the display to a focused light-control screen for 30 seconds.
- Why it matters
- Guests and family get one obvious control instead of a full dashboard maze.
service: oldphonekiosk.set_screen
target: {device_id: hallway_iphone}
data:
screen: light.hallway
duration: 30iPhone
Intercom as a doorbell
- Trigger
- Doorbell rings
- Action
- Wake the hallway iPhone, start camera preview and raise the intercom overlay.
- Why it matters
- The old phone becomes the door station you actually notice.
alias: OPK front door intercom
trigger:
- platform: state
entity_id: binary_sensor.doorbell
to: 'on'
action:
- service: oldphonekiosk.wake
target: {device_id: hallway_iphone}
- service: oldphonekiosk.set_screen
target: {device_id: hallway_iphone}
data: {screen: camera.front_door}iPhone / iPad
Keep the dashboard visible while camera opens in PIP
- Trigger
- Person detected on porch camera
- Action
- Open camera as an overlay instead of replacing the current room screen.
- Why it matters
- You see who is there without losing lights, locks or family context.
alias: OPK porch camera pip
trigger:
- platform: state
entity_id: binary_sensor.porch_person
to: 'on'
action:
- service: oldphonekiosk.start_camera
target: {device_id: kitchen_ipad}
data: {camera: camera.porch}All panels
Whole-house sleep scene
- Trigger
- Good-night scene starts
- Action
- Put iOS panels into black SLEEP and leave Kindle on a quiet read-only page.
- Why it matters
- No glowing tablets after bedtime, but panels are still ready for morning.
alias: OPK good night
trigger:
- platform: state
entity_id: input_boolean.good_night
to: 'on'
action:
- service: oldphonekiosk.sleep
target: {area_id: whole_home}Kitchen iPad
Morning briefing when the kitchen wakes
- Trigger
- First kitchen motion after 06:30
- Action
- Show calendar, weather and open tasks on the kitchen iPad.
- Why it matters
- The family sees the day without opening phones at breakfast.
service: oldphonekiosk.set_screen
target: {device_id: kitchen_ipad}
data:
screen: dashboard.morningiPad
Show shared tasks when chores are due
- Trigger
- A todo item becomes due or motion happens near the utility room
- Action
- Switch to the native tasks screen and refresh the selected todo list.
- Why it matters
- The reminder lands where the work happens, not buried in a phone notification.
service: oldphonekiosk.set_screen
target: {device_id: utility_ipad}
data:
screen: tasksiPad
Photo frame until the room needs information
- Trigger
- Room has been idle for 10 minutes
- Action
- Switch to the photos screen with optional time overlay.
- Why it matters
- A wall panel can be beautiful when it is not actively controlling the house.
service: oldphonekiosk.set_screen
target: {device_id: living_room_ipad}
data:
screen: photosKitchen iPad
Energy warning only when it matters
- Trigger
- Home power usage goes above a threshold
- Action
- Show the energy dashboard and a short explanation on the nearest rich panel.
- Why it matters
- High usage becomes visible in the room that can actually react.
trigger:
- platform: numeric_state
entity_id: sensor.home_power
above: 5000
action:
- service: oldphonekiosk.set_screen
target: {device_id: kitchen_ipad}
data: {screen: dashboard.energy}Hallway iPhone
Leaving-home security checklist
- Trigger
- Front door opens while nobody is home
- Action
- Show lock, alarm and open-window state in the hallway.
- Why it matters
- The last person out gets one glanceable checklist before leaving.
service: oldphonekiosk.set_screen
target: {device_id: hallway_iphone}
data:
screen: dashboard.security
duration: 45Guest-room Kindle
Guest room welcome page
- Trigger
- Guest mode turns on
- Action
- Create or update a Kindle page with Wi‑Fi, lights, checkout and house rules.
- Why it matters
- Guests get a calm local page without installing anything.
service: oldphonekiosk.create_web_display
data:
name: Guest room Kindle
area: guest_room
mode: read_onlyBedroom Kindle
Weather-aware e‑ink morning page
- Trigger
- Alarm dismissed
- Action
- Refresh Kindle with weather, calendar and first task.
- Why it matters
- A no-glare bedside surface says what matters before the phone comes out.
service: oldphonekiosk.refresh_display
target: {device_id: bedroom_kindle}
data:
reason: alarm_dismissedBuild your own room playbook
Start with one old device and one automation. The magic is not a giant dashboard — it is the right surface reacting at the right moment.