phidauex
Well-Known Member
- First Name
- Sam
- Joined
- Dec 8, 2020
- Threads
- 16
- Messages
- 847
- Reaction score
- 1,564
- Location
- Colorado
- Vehicles
- 2021 MachE 4EX, 2006 Prius, 1997 Tacoma
- Occupation
- Renewable Energy Engineer
It is buried as an attribute inI didnt see Plug Status, I will look for that. Any clues about where it is so I can make a template sensor for it, please?
sensor.fordpass_elVeh
so you need to use a template to extract it:And here is a template snippet that works to extract it into a template sensor with a friendly name and a custom icon:
Code:
- sensor:
- name: Plug Status
state: >-
{% if is_state_attr('sensor.fordpass_elveh', 'Plug Status', 0) %}
Unplugged
{% elif is_state_attr('sensor.fordpass_elveh', 'Plug Status', 1) %}
Plugged In
{% else %}
{% endif %}
icon: >-
{% if is_state_attr('sensor.fordpass_elveh', 'Plug Status', 0) %}
mdi: power-plug-off
{% elif is_state_attr('sensor.fordpass_elveh', 'Plug Status', 1) %}
mdi: power-plug
{% else %}
mdi:connection
{% endif %}
Code:
- binary_sensor:
- name: EV Plug
unique_id: ev_plug
state: "{{ is_state_attr('sensor.fordpass_elveh', 'Plug Status', 1) }}"
device_class: power
Sponsored