binary sensor dont work
Opened this issue · 1 comments
amgstone commented
Describe the bug
A clear and concise description of what the bug is.
LEAF_TYPE
The leaf type you use in your configuration
Expected behavior
A clear and concise description of what you expected to happen.
-
name: leaf_connected
You can specify the vin if you prefer or if you have more than one Leaf.
state_topic: "leaf/SJNFAAZE1U0021---/battery/connected"
device_class: connectivity -
name: leaf_charging
You can specify the vin if you prefer or if you have more than one Leaf.
state_topic: "leaf/battery/charging"
device_class: connectivity
ExMacro commented
This works for me so try adding the payloads into the config.
# Leaf2MQTT
mqtt:
binary_sensor:
- name: leaf_battery_charging
# Since VIN is not specified, it will represent the state from the first vehicle in the account.
state_topic: "leaf/battery/charging"
payload_off: "false"
payload_on: "true"
device_class: battery_charging
- name: leaf_battery_connected
# Since VIN is not specified, it will represent the state from the first vehicle in the account.
state_topic: "leaf/battery/connected"
payload_off: "false"
payload_on: "true"
device_class: connectivity