I've got this almost working, but the 'driving' portion isn't working.
Basically I want it to determine if my phone is connected to my car, and if so, mark me as driving.
- platform: template sensors: jeff_home_away: friendly_name: 'Jeff Location Status' value_template: > {% if (states('sensor.jeff_s_phone_wifi_connection') == "CloudNine") %} 1 {% elif (states('zone.work') == '1') %} 2 {% elif "AC:7A:4D:66:3D:EE" in state_attr('sensor.jeff_s_phone_bluetooth_connection', 'connected_paired_devices') %} 3 {% else %} 0 {% endif %} icon_template: >- {% if is_state('sensor.jeff_home_away', '1') %} mdi:home {% elif is_state('sensor.jeff_home_away', '2') %} mdi:office-building {% elif is_state('sensor.jeff_home_away', '3') %} mdi:car {% else %} mdi:home-export-outline {% endif %}