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

Expose on-going request status via MQTT #45

Closed hkapanen closed 1 year ago

hkapanen commented 1 year ago

As Nissan's backend system (at least the carwings-based one) takes usually minutes to respond to any request, it would be good to let the user know if requests are pending. So I propose that leaf2mqtt would publish following topics with true/false payload: leaf/{vin}/battery/request_ongoing leaf/{vin}/climate/request_ongoing leaf/{vin}/stats/request_ongoing leaf/{vin}/cockpitStatus/request_ongoing

The payload would default to false, but be kept true while corresponding command is being executed.

yp87 commented 1 year ago

Hello, Since Nissan blocked the NissanConnectNA api for third party integrations, I cannot test anything, so I prefer to not do more development to prevent issues.

Please feel free to create a PR with this change.

Regards