waltervl wrote: ↑Wednesday 28 October 2020 19:45
What temperatures are reported when you run the following python program?
Code: Select all
#!/usr/bin/env python3
from msmart.device import device as midea_device
from msmart.device import air_conditioning_device as ac
import logging
logging.basicConfig(level=logging.DEBUG)
# first take device's ip and id
# pip3 install msmart; midea-discover
c = midea_device('YourDeviceIP', YourDeviceID, 6444 )
device = c.setup()
# Refresh the object with the actual state by querying it
device.refresh()
print({
'id': device.id,
'name': device.ip,
'power_state': device.power_state,
'prompt_tone': device.prompt_tone,
'target_temperature': device.target_temperature,
'operational_mode': device.operational_mode,
'fan_speed': device.fan_speed,
'swing_mode': device.swing_mode,
'eco_mode': device.eco_mode,
'turbo_mode': device.turbo_mode,
'indoor_temperature': device.indoor_temperature,
'outdoor_temperature': device.outdoor_temperature
})
ON stage:
Code: Select all
Appliance response data: c00188667f7f003f00000053430c0056000000000000002f799f
{'id': '093102000011', 'name': '192.168.1.130', 'power_state': True, 'prompt_tone': False, 'target_temperature': 24.0, 'operational_mode': <operational_mode_enum.heat: 4>, 'fan_speed': <fan_speed_enum.Auto: 102>, 'swing_mode': <swing_mode_enum.Both: 15>, 'eco_mode': False, 'turbo_mode':False, 'indoor_temperature': 16.6, 'outdoor_temperature': 8.5}
OFF stage:
Code: Select all
Appliance response data: c00087667f7f003f00000052ff0b0002000000000000002710ac
{'id': '093102000011', 'name': '192.168.1.130', 'power_state': False, 'prompt_tone': False, 'target_temperature': 23.0, 'operational_mode': <operational_mode_enum.heat: 4>, 'fan_speed': <fan_speed_enum.Auto: 102>, 'swing_mode': <swing_mode_enum.Both: 15>, 'eco_mode': False, 'turbo_mode': False, 'indoor_temperature': 16.2, 'outdoor_temperature': 102.5}
Had to put the original qlima plugin back , without modification addviced earlier, since i had troubles with it.
If switched on via domoticz, and put to heat mode, it switched back to fan, in a minute or so.
Not really stable and efficient at this time as i need to work on workshop and it is chilly inside/outside
As a basic idea in all my scripts:
I save the current state of sensor, and compare with previous state, if they not matching i send to domoticz, otherwise nothing to send.
I would rather like so see the plugin work in such a maner. No need to update every minute from my side.