yp87 / leaf2mqtt

Pull in data from the Nissan Connect platform for the LEAF and publish over MQTT
GNU General Public License v3.0
42 stars 39 forks source link

binary sensor dont work #53

Open amgstone opened 1 year ago

amgstone commented 1 year ago

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.

http://joxi.ru/bmob5pqF3BLgar

http://joxi.ru/V2VvW1Nsd64Z12

ExMacro commented 10 months ago

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