Use a raspberry pi as your home server.
I use one running Mosquitto and Node-Red. Several sensors around the home report data via MQTT to Node-Red that stores the data in a database and displays it. It also collects weather, travel, earthquake & Aurora activity to add to the database, and interfaces between Alexa (I don't have Google but think it's possible to use that as well) and an IR server to turn on/off the TV and other IR controlled boxes and control lights connected to Sonoff sockets.
1 Like