SAIC-iSmart-API / saic-python-mqtt-gateway

A service that queries the data from an MG iSMART account and publishes the data over MQTT and to other sources
MIT License
71 stars 21 forks source link

[BUG] Case Blowing Only ---> invalid payload #134

Closed an0Nym0us63 closed 8 months ago

an0Nym0us63 commented 8 months ago

Hello team

There is an issue with the remote climate set mode blowingOnly. I had issue with it and decided to dig into the code

and

in the mqtt_gateway.py file

there is a switch case condition for all modes

and the switch is based on msg.payload.decode().strip().lower() which will always be lowercase

and the case

case 'blowingOnly': LOG.info('A/C will be set to blowing only') self.saic_api.start_ac_blowing(self.vin_info)

Can never happen in fact

;)

Tonno87 commented 8 months ago

I can confirm the problem:

image