AirCon icon indicating copy to clipboard operation
AirCon copied to clipboard

Precision in fglair to 0.1

Open colladoman opened this issue 3 years ago • 1 comments

Hello, I'd like to know how to adjust precision to 0.1. Im using fglair aircon. Looking at the code, at main.py, precision looks to be hardcoded: config = { 'name': device.name, 'unique_id': device.mac_address, 'device': { 'identifiers': [f'hisense_ac_{device.mac_address}'], 'manufacturer': f'Hisense ({device.app})', 'model': device.model, 'name': device.name, 'sw_version': device.sw_version }, 'availability': [ { 'topic': mqtt_topics['lwt'] }, { 'topic': mqtt_topics['pub'].format(device.mac_address, 'available') }, ], 'precision': 1.0, 'temperature_unit': 'F' if device.is_fahrenheit else 'C' }

colladoman avatar Aug 22 '22 07:08 colladoman

#222 addresses this to a certain extent, with that it takes a per-device precision value (which I set to 0.5 for my device, as that seems to be what works). It's not settable from the config but it could be made to be.

emoses avatar Mar 31 '23 05:03 emoses