Automating our home with Android Things
About me
@sergioch23
github.com/sergiocasero
sergio.casero23@gmail.com
@sergioch23
Madrid Android Developer Group
About Android Things
About Android Things
About Android Things
About Android Things
About Android Things
Pinouts
Config
Hardware
Hardware
Lights
Rain
Thermostat
Fire detector
Alarm
Hardware
Lights
Relay
Triac
Link: https://goo.gl/opVD0s
Cost: 1€
Link: https://goo.gl/pD8seZ
Cost: 0,15€
Hardware
Rain
YL-83 / LM393
Link: https://goo.gl/Cd5THt
Cost: 0,52€
Hardware
Thermostat
DHT22
DS18B20
Link: https://goo.gl/smO2nE
Cost: 2,27€
Link: https://goo.gl/rhHIje
Cost: 0,524€
Hardware
Fire detector
MQ2
Link: https://goo.gl/8jSkCz
Cost: 0,88€
Hardware
HC-SR501
Alarm
Link: https://goo.gl/CBUHqQ
Cost: 0,75€
Hardware
HC-SR501
Alarm
Link: https://goo.gl/CBUHqQ
Cost: 0,75€
Hardware
Hardware
ESP8266
ESP8266
ESP8266
Development
Authentication
Limitations
2. No mouse
3. No touchscreen
4. No Auth API
The way
User is paired with device ;)
2 & 3. Phone reads the QR
4. Put user info into the database
4. Android Things receives the data
Read unique ID, push info to firebase and read in the Android Things device
Generate unique ID and push it to Firebase
User is paired with device ;)
Detecting sensors
Considerations
Wire sensors
Wireless sensors
Wireless sensors
Defining custom API
1 mandatory service: IP_ADDRESS/type
Wireless sensors
How to
192.168.1.100/type RETURN Sensor
192.168.1.101/type TIMEOUT
…
…
…
…
...
192.168.1.149/type RETURN Sensor
192.168.1.150/type TIMEOUT
Wireless sensors
How to
Wireless sensors
How to
Using sensors
Using sensors
How to
Using sensors
How to
Links
Thanks