Slide 1

Slide 1 text

@aaronpk SMARTER HOME AUTOMATION
 WITHOUT THE CLOUD AARON PARECKI Øredev 2019 @aaronpk • aaronpk.com

Slide 2

Slide 2 text

@aaronpk NetAtmo SmartThings Nest Ring Insignia

Slide 3

Slide 3 text

@aaronpk ☁

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

@aaronpk

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

@aaronpk

Slide 10

Slide 10 text

@aaronpk ☁ ⚙

Slide 11

Slide 11 text

@aaronpk HOW DID WE GET HERE?

Slide 12

Slide 12 text

@aaronpk USER EXPERIENCE

Slide 13

Slide 13 text

@aaronpk USER EXPERIENCE
 OF SETUP

Slide 14

Slide 14 text

@aaronpk MOBILE APPS ☁

Slide 15

Slide 15 text

@aaronpk "It's amazing how much you miss a simple old light switch when you have to pull out your phone, fumble through a poorly designed app, and then wait half a second for the light to turn on." - Adam Clark Estes, Gizmodo https://gizmodo.com/why-is-my-smart-home-so-fucking-dumb-1684949715

Slide 16

Slide 16 text

@aaronpk

Slide 17

Slide 17 text

@aaronpk SHOULD HELP YOU, HOME AUTOMATION NOT GET IN THE WAY

Slide 18

Slide 18 text

@aaronpk ADD CONTEXT

Slide 19

Slide 19 text

@aaronpk Turn the lights on when someone gets home You get home after other 
 people are already asleep,
 waking them up with the lights Phone wifi reconnects / GPS glitches and it thinks you got home at 4am and turns on all the lights

Slide 20

Slide 20 text

@aaronpk Turn the lights on when someone gets home only if nobody is in bed

Slide 21

Slide 21 text

@aaronpk Open the shades at sunrise Wasteful when nobody is home

Slide 22

Slide 22 text

@aaronpk Open the shades at sunrise only if someone is at home

Slide 23

Slide 23 text

@aaronpk Close the shades when the sun shines through the window ☀ (ranges from 1pm-4pm seasonally)

Slide 24

Slide 24 text

@aaronpk Turn on the A/C when it's over 22°C inside ❄ Takes longer to cool down
 once it's already warm inside

Slide 25

Slide 25 text

@aaronpk Turn on the A/C 
 when it will be over 22°C outside in an hour ❄ ☀

Slide 26

Slide 26 text

@aaronpk Turn the lights on when someone gets out of bed Wakes up the other person too early Too bright when you get up at 4am

Slide 27

Slide 27 text

@aaronpk Turn the lights on when 
 everyone at home 
 gets out of bed Turn the lights on dim 
 when someone gets up 
 and it's still dark outside

Slide 28

Slide 28 text

@aaronpk Turn the lights off when someone gets in bed Turns off the lights when someone else is still awake

Slide 29

Slide 29 text

@aaronpk Turn the lights off when 
 everyone at home 
 gets into bed Turn the bedroom lights off 
 when someone gets into bed

Slide 30

Slide 30 text

@aaronpk Set the lights to "TV Mode" when TV is turned on Too dark to watch TV while cooking dinner Too dark if you pause
 to get up to get a drink

Slide 31

Slide 31 text

@aaronpk Set the lights to "TV Mode" when TV is turned on only if someone is sitting on the couch

Slide 32

Slide 32 text

@aaronpk Bring up the lights a little 
 when the TV is paused ⏸

Slide 33

Slide 33 text

@aaronpk Bring up the lights a little 
 when someone gets off the couch 
 when the TV is on ⏸

Slide 34

Slide 34 text

@aaronpk LET'S BUILD IT!

Slide 35

Slide 35 text

@aaronpk homeassistant.io

Slide 36

Slide 36 text

@aaronpk ☀ ❄

Slide 37

Slide 37 text

@aaronpk

Slide 38

Slide 38 text

@aaronpk HOME ASSISTANT AUTOMATIONS

Slide 39

Slide 39 text

@aaronpk NODE-RED AUTOMATIONS

Slide 40

Slide 40 text

@aaronpk nodered.org

Slide 41

Slide 41 text

@aaronpk Home Assistant DEVICE COMMUNICATION
 STATE MANAGEMENT VISUAL PROGRAMMING
 RULES ENGINE

Slide 42

Slide 42 text

@aaronpk INPUTS / OUTPUTS

Slide 43

Slide 43 text

@aaronpk Lights Philips Hue

Slide 44

Slide 44 text

@aaronpk Zigbee to its own hub No internet required or Bluetooth only, no hub Philips Hue

Slide 45

Slide 45 text

@aaronpk Temperature Zigbee/Z-wave devices (~$60)
 433mhz sensors (~$10)

Slide 46

Slide 46 text

@aaronpk

Slide 47

Slide 47 text

@aaronpk Home presence detection mobile phone apps
 home wifi
 bluetooth beacons

Slide 48

Slide 48 text

@aaronpk MOBILE APP TRACKING OwnTracks GPSLogger

Slide 49

Slide 49 text

@aaronpk WIFI TRACKING Wifi router pushes presence into Home Assistant

Slide 50

Slide 50 text

@aaronpk BLUETOOTH DEVICES Home Assistant can watch for Bluetooth devices

Slide 51

Slide 51 text

@aaronpk Sunrise/Sunset Times ☀ home location, math

Slide 52

Slide 52 text

@aaronpk Sun Angle in Windows ☀ home location, window direction, math

Slide 53

Slide 53 text

@aaronpk Weather Forecast ☀ hourly, daily
 weather api

Slide 54

Slide 54 text

@aaronpk darksky.net

Slide 55

Slide 55 text

@aaronpk Window Shades all-in-one motorized window shades retrofit options

Slide 56

Slide 56 text

@aaronpk Soma 
 Smart Shades bluetooth

Slide 57

Slide 57 text

@aaronpk

Slide 58

Slide 58 text

@aaronpk

Slide 59

Slide 59 text

@aaronpk Air Conditioner controlled via IR remote ❄

Slide 60

Slide 60 text

@aaronpk Broadlink RM Mini 3 (block its internet access!) WiFi to Infrared bridge

Slide 61

Slide 61 text

@aaronpk

Slide 62

Slide 62 text

@aaronpk TV On/Off smart tv? commercial display

Slide 63

Slide 63 text

@aaronpk https://github.com/grantemsley/viewsonictvrs232 USB to RS232

Slide 64

Slide 64 text

@aaronpk Bed presence detection flex sensor under mattress slats

Slide 65

Slide 65 text

@aaronpk

Slide 66

Slide 66 text

@aaronpk esphome.io DIY SENSORS NO CODING!

Slide 67

Slide 67 text

@aaronpk

Slide 68

Slide 68 text

@aaronpk

Slide 69

Slide 69 text

@aaronpk

Slide 70

Slide 70 text

@aaronpk

Slide 71

Slide 71 text

@aaronpk 1 Person at Home? 1 person 
 gets in bed Lights off 1 person gets
 out of bed Lights on Lights dim red dark 
 outside? no yes

Slide 72

Slide 72 text

@aaronpk 2 People at Home? 1 person 
 gets in bed Bedroom 
 lights off 2 people 
 get in bed All 
 lights off

Slide 73

Slide 73 text

@aaronpk 2 People at Home? 2 people 
 get out of bed All 
 lights on 1 person 
 gets out of bed Lights on
 dim red

Slide 74

Slide 74 text

@aaronpk

Slide 75

Slide 75 text

@aaronpk Automatic Cat Feeder kitchen scale, cereal dispenser, motor, distance sensor, esp32, MQTT

Slide 76

Slide 76 text

@aaronpk

Slide 77

Slide 77 text

@aaronpk

Slide 78

Slide 78 text

@aaronpk

Slide 79

Slide 79 text

@aaronpk Pressure sensor under couch Audio level sensor Local voice assistant (mycroft.ai) Cat presence detector? FUTURE EXPERIMENTS

Slide 80

Slide 80 text

@aaronpk THANK YOU! @aaronpk aaronpk.com aaronpk.com/oredev19 SLIDES