Hey Everyone,
I have a special use case for network and power regulation. We have a fully remote location that needs insulated pipes to not freeze (again). Our solution is to activate a small low-power heating lamp when the temperature approaches freezing and then turn it off when the temperature reaches a higher threshold. Our expectations are that the affected area would warm for about 10 minutes and then cool off over an hour or so and then repeat.
If I were at home, the solution would be simple:
- Bluetooth LE thermometer monitors and reports the temperature
- Home Assistant monitors the reported temperature
- When the temperature is too cold, Home Assistant turn on the power plug to the heating bulb
- When the temperature target is reached, Home Assistant turn off the power plug
However with this location completely off-grid, power and network become a challenge.
For this solution, we are considering the following:
- A 500Wh solar powered battery pack with pass-through charging
- A Govee Bluetooth smart plug
- A Govee Bluetooth thermometer
- A small 100w heat bulb
- A Raspberry Pi Zero W running Home Assistant
Since the entirety of this instance of Home Assistant’s work will be monitoring one temperature sensor and turning on/off a single smart plug, I think a Pi Zero W should be fine for this case while using the least amount of power. The idle consumption of the smart plug should (I’m guessing) be on par or less than the Pi Zero. The thermometer is self-powered.
My concern is the Pi Zero WiFi. I’d like it to be as energy efficient as possible, but I’d also like to be able to connect to it to periodically check the results recorded by the Pi Zero Home Assistant and make any adjustments as needed. This means the WiFi needs to stay off, but turn on if my phone is around.
My thoughts on this is to create an automation that will turn the WiFi on if my phone Bluetooth beacon is detected and then turn it off when my phone Bluetooth beacon is gone. However, I keep finding conflicting information on if/when this is possible.
My questions:
- How can I configure Home Assistant running on a Pi Zero W to turn on/off its own Wifi based on my phone’s Bluetooth beacon?
- How can I configure the Pi Zero W network to open and allow my phone to directly connect to it over the internal Pi Zero WiFi?
- How can I make sure only my phone is allowed to connect and not some random person walking by?
Thank you for your help!!