bilan / connectlife-api-connector

Connectlife API proxy / MQTT Home Assistant integration
67 stars 17 forks source link

plugin ac/power/set on/off #13

Closed Keany closed 7 months ago

Keany commented 7 months ago

Hello,

in all version is ac/power/set on or off is ignored. Message is not in log mqtt.

Only possible workround to turn on and turn off AC is:

ac/mode/set heat(cool etc..) and ac/mode/set off

[2024-02-25 12:41:59] production.INFO: Updating HA device state ["pu000098650051000200030003000000f2758379e0d"] [2024-02-25 12:42:25] production.INFO: Mqtt: received a on [pu000098650051000200030003000000f2758379e09/ac/mode/set] heat
[2024-02-25 12:42:25] production.INFO: ConnectLife: updating device. {"puid":"pu000098650051000200030003000000f2758379e09","properties":{"t_power":1,"t_temp_type":"0","t_temp":23,"t_beep":0,"t_swing_direction":0,"t_swing_angle":0,"t_fan_speed":0,"t_work_mode":1}} [2024-02-25 12:42:25] production.INFO: Response ["{\"resultCode\":0,\"kvMap\":null,\"errorCode\":0,\"errorDesc\":null}"] [2024-02-25 12:42:25] production.INFO: ConnectLife: updating device result. {"resultCode":0,"kvMap":null,"errorCode":0,"errorDesc":null} [2024-02-25 12:42:55] production.INFO: Mqtt: received a on [pu000098650051000200030003000000f2758379e09/ac/mode/set] off
[2024-02-25 12:42:55] production.INFO: ConnectLife: updating device. {"puid":"pu000098650051000200030003000000f2758379e09","properties":{"t_power":0,"t_temp_type":"0","t_temp":23,"t_beep":0,"t_swing_direction":0,"t_swing_angle":0,"t_fan_speed":0}} [2024-02-25 12:42:55] production.INFO: Response ["{\"resultCode\":0,\"kvMap\":null,\"errorCode\":0,\"errorDesc\":null}"] [2024-02-25 12:42:55] production.INFO: ConnectLife: updating device result. {"resultCode":0,"kvMap":null,"errorCode":0,"errorDesc":null}

I have "deviceFeatureCode\":\"104\",\"deviceFeatureName\":\"104\u51b7\u6696\u8282\u80fd\u65e0\u529f\u7387\",\"deviceTypeCode\":\"009\

How to turn AC off and on without mode setting?

Thanks

bilan commented 7 months ago

Hi, should be solved in v2.1.0.

Keany commented 7 months ago

Hi, message is in log, but nothing happens.

[2024-02-25 16:26:18] production.INFO: Mqtt: received a on [pu000098650051000200030003000000887dd8c5b8f/ac/power/set] on
[2024-02-25 16:26:18] production.INFO: ConnectLife: updating device. {"puid":"pu000098650051000200030003000000887dd8c5b8f","properties":{"t_power":0,"t_temp_type":"0","t_temp":22,"t_beep":0,"t_fan_speed":0}} [2024-02-25 16:26:18] production.INFO: Response ["{\"resultCode\":0,\"kvMap\":null,\"errorCode\":0,\"errorDesc\":null}"] [2024-02-25 16:26:18] production.INFO: ConnectLife: updating device result. {"resultCode":0,"kvMap":null,"errorCode":0,"errorDesc":null}

bilan commented 7 months ago

How do you send on/off message?

Keany commented 7 months ago

pu000098650051000200030003000000887dd8c5b8f/ac/power/set on - nothing happens

pu000098650051000200030003000000887dd8c5b8f/ac/mode/set heat - turn on AC with mode heat

pu000098650051000200030003000000887dd8c5b8f/ac/power/set off - AC turn off thats OK.

So only power on doesnt work now.

bilan commented 7 months ago

It's because "power" is set to on and "mode" is set to "off". I think I should remove mode off.

Keany commented 7 months ago

So you send power on with mode to off? What happens when you send only power on without mode? By default app mode is the same when you turn off.

bilan commented 7 months ago

I set mode to "off" and then device power is off. When I set device mode to Heat then device is turning on and heat mode is set.

Keany commented 7 months ago

And power off without setting mode off doesnt work? Power on and power off without changing mode doesnt work?

bilan commented 7 months ago

Power off without setting mode does work. Power on while mode is still off do not change anything.

Keany commented 7 months ago

OK so,

power commands are unusable.

We can use only mode.

If you want turn ON so set heat, cool etc..and if you want off so set mode to off.

bilan commented 7 months ago

That's right