stas-demydiuk / domoticz-ewpe-smart-mqtt-plugin

Python plugin for Domoticz to control ewpe-smart powered air conditioners
MIT License
11 stars 6 forks source link

Plugin does not transfer new measured temperature item of AirCo (item='TemSen') #7

Open JongsmaSimon opened 4 years ago

JongsmaSimon commented 4 years ago

The ewpe-smart-mqtt was recently adapted with "Fetch temperature sensor information in device status". The Python plugin does not process this new info.

I added a couple of lines in device.py as follows to make it work: 72 if self.get_device(address, 'mtemp') == None: 73 device_id = address + '_mtemp' 74 Domoticz.Debug('Creating domoticz device to handle measured temperature') 75 Domoticz.Device(Unit=self.get_first_available_unit(), DeviceID=device_id, Name=name + ' - Temperature Measured', TypeName="Temperature").Create() 76 This add a temp device of subtype 'LaCrosse TX3' for each AirCo. and to set the value: 167 if "TemSen" in state and "TemRec" in state: 168 temperature = state['TemSen'] + (0.5 if state['TemRec'] == 1 else 0) 169 self._update_device('mtemp', 0, str(temperature)) 170

Jan-nl commented 3 years ago

I would like that as well. Can you make a pull request so the author can easily add it?

evertverduin commented 3 years ago

Question, can you put the outside temperature in as well? The device measures the outdoor temperature as well!