In stock
View Purchasing OptionsProject update - not yet live
In this update, I’d like to talk about low battery alerts and how to set them up. Battery alerts are particularly useful if you own multiple cars that you don’t often use. All modern cars have some "parasitic current draw" between 20 mA to 85 mA which will eventually discharge the battery if the car is not started; some cars can only last about 30 days before they need a jump start.
WiCAN can help you keep an eye on the battery voltage as the battery discharges and send you an alert when the preset value is reached. In this tutorial, you’ll create a simple MQTT sensor and automation in Home Assistant so, when a low battery is detected, a text-to-speech notification will be sent to Google Home speaker.
Battery alerts are easy to set up, assuming you have a Wi-Fi connection where you park your car and you have a Home Assistant running on your network. Here’s how to set it up:
Install Home Assistant Mosquitto broker add-on
Create Home Assistant new user account for WiCAN. These user credentials will be used to set up the MQTT setting for WiCAN.
Connect to WiCAN access point WiCAN_xxxxxxxxxxxx then, using a web browser, go to http://192.168.80.1/
Enable Sleep mode and Battery Alert.
Fill in the Battery Alert configuration info. For the Alert URL use your Home Assistant IP address and the MQTT User/Password created in step two.
To create a new MQTT sensor, you’ll need to edit the configuration.yaml
file by adding the following lines:
mqtt:
sensor:
- name: "Car Battery"
state_topic: "CAR1/voltage"
unit_of_measurement: "V"
value_template: "{{ value_json.battery_voltage }}"
Restart Home Assistant, then edit your dashboard to add a new card with the “Car Battery” entity.
Lastly, create a new automation by setting the MQTT topic, entity name, and battery voltage value.