bilan / connectlife-api-connector

Connectlife API proxy / MQTT Home Assistant integration
51 stars 13 forks source link

Connectlife 009-104 swing mode not available #15

Open delumerlino opened 4 months ago

delumerlino commented 4 months ago

Hi, when I was in 2.0.0 swing mode was working, now in 2.1.0 it does no more work.

here is device config: {"009":{"t_work_mode":["fan only","heat","cool","dry","auto"],"t_fan_speed":{"0":"auto","5":"low","6":"middle low","7":"medium","8":"middle high","9":"high"},"t_swing_angle":{"0":"swing","2":"bottom 1\/6 ","3":"bottom 2\/6","4":"bottom 3\/6","5":"top 4\/6","6":"top 5\/6","7":"top 6\/6"}}}

Already deleted, it add-on compile the same. Already deleted prevois MQTT devices

MQTT discovery give me this:

name: Split corridoio unique_id: pu000098650051000200030003000000f7f617d8c0f modes:

And here is my control card:

image

How may I get back swing mode? Thanks!

bilan commented 4 months ago

Hi, change in add-on configuration device_config from 009 to 104.

{"104":{"t_work_mode":["fan only","heat","cool","dry","auto"],"t_fan_speed":{"0":"auto","5":"low","6":"middle low","7":"medium","8":"middle high","9":"high"},"t_swing_angle":{"0":"swing","2":"bottom 1/6 ","3":"bottom 2/6","4":"bottom 3/6","5":"top 4/6","6":"top 5/6","7":"top 6/6"}}}

delumerlino commented 4 months ago

Thanks but nothing changed. I have also restarted MQTT, then the add-on

bilan commented 4 months ago

Try:

{"104":{"t_work_mode":["fan only","heat","cool","dry","auto"],"t_fan_speed":{"0":"auto","5":"super low","6":"low","7":"medium","8":"high","9":"super high"},"t_swing_direction":["straight","right","both sides","swing","left"],"t_swing_angle":{"0":"swing","2":"bottom 1\/6 ","3":"bottom 2\/6","4":"bottom 3\/6","5":"top 4\/6","6":"top 5\/6","7":"top 6\/6"}}}

delumerlino commented 4 months ago

YUP, with that I have them all! But works only up and down, may I delete the not useful modes?

bilan commented 4 months ago

Btw it seems like your dive do not support t_swing_direction / t_swing_angle. It has probably one dimensional swing controlled by "t_up_down". Can you paste here device state please?

bilan commented 4 months ago

You need to have at least one t_swing_direction mode. I will try to fix it in v2.1.1

bilan commented 4 months ago

Try:

{"104":{"t_work_mode":["fan only","heat","cool","dry","auto"],"t_fan_speed":{"0":"auto","5":"super low","6":"low","7":"medium","8":"high","9":"super high"},"t_swing_direction":["-"],"t_swing_angle":{"0":"swing","2":"bottom 1/6 ","3":"bottom 2/6","4":"bottom 3/6","5":"top 4/6","6":"top 5/6","7":"top 6/6"}}}

delumerlino commented 4 months ago

This?

[{"wifiId":"blabla","deviceId":"blabla","puid":"pu000098650051000200030003000000f7f617d8c0f","deviceNickName":"Split corridoio","deviceFeatureCode":"104","deviceFeatureName":"104\u51b7\u6696\u8282\u80fd\u65e0\u529f\u7387","deviceTypeCode":"009","deviceTypeName":"","bindTime":1695327645349,"role":1,"roomId":2818830,"roomName":"default_room","statusList":{"t_sleep":"0","t_power":"0","t_work_mode":"0","t_fan_speed":"0","t_fan_speed_s":"0","t_fan_mute":"0","t_super":"0","t_eco":"0","t_temp":"26","t_temp_type":"0","t_up_down":"0","t_swing_follow":"0","t_swing_direction":"0","t_swing_angle":"0","t_fanspeedcv":"0","t_tms":"0","t_temp_compensate":"10","f_humidity":"128","f_temp_in":"23","f_electricity":"0","f_votage":"0","f_e_intemp":"0","f_e_incoiltemp":"0","f_e_inhumidity":"0","f_e_infanmotor":"0","f_e_arkgrille":"0","f_e_invzero":"0","f_e_incom":"0","f_e_indisplay":"0","f_e_inkeys":"0","f_e_inwifi":"0","f_e_inele":"0","f_e_ineeprom":"0","f_e_outeeprom":"0","f_e_outcoiltemp":"0","f_e_outgastemp":"0","f_e_outtemp":"0","f_e_waterfull":"0","f_e_upmachine":"0","f_e_dwmachine":"0","f_e_over_cold":"0","f_e_over_hot":"0","f_e_push":"0","t_demand_response":"0","t_dal":"0","t_talr":"0","f-filter":"0","f_ecm":"1"},"useTime":1695327645327,"offlineState":1,"seq":0,"createTime":0},

delumerlino commented 4 months ago

Try:

{"104":{"t_work_mode":["fan only","heat","cool","dry","auto"],"t_fan_speed":{"0":"auto","5":"super low","6":"low","7":"medium","8":"high","9":"super high"},"t_swing_direction":["-"],"t_swing_angle":{"0":"swing","2":"bottom 1/6 ","3":"bottom 2/6","4":"bottom 3/6","5":"top 4/6","6":"top 5/6","7":"top 6/6"}}}

nope 😑

maverik80 commented 4 months ago

But does your 009 104 correspond to the aeh-wgh2 wifi module?

Hi, when I was in 2.0.0 swing mode was working, now in 2.1.0 it does no more work.

here is device config: {"009":{"t_work_mode":["fan only","heat","cool","dry","auto"],"t_fan_speed":{"0":"auto","5":"low","6":"middle low","7":"medium","8":"middle high","9":"high"},"t_swing_angle":{"0":"swing","2":"bottom 1/6 ","3":"bottom 2/6","4":"bottom 3/6","5":"top 4/6","6":"top 5/6","7":"top 6/6"}}}

Already deleted, it add-on compile the same. Already deleted prevois MQTT devices

MQTT discovery give me this:

name: Split corridoio unique_id: pu000098650051000200030003000000f7f617d8c0f modes:

  • fan_only
  • heat
  • cool
  • dry
  • auto
  • 'off' fan_modes:
  • auto
  • super_low
  • low
  • medium
  • high
  • super_high swing_modes: [] payload_on: '1' payload_off: '0' power_command_topic: pu000098650051000200030003000000f7f617d8c0f/ac/power/set mode_command_topic: pu000098650051000200030003000000f7f617d8c0f/ac/mode/set mode_state_topic: pu000098650051000200030003000000f7f617d8c0f/ac/mode/get temperature_command_topic: pu000098650051000200030003000000f7f617d8c0f/ac/temperature/set temperature_state_topic: pu000098650051000200030003000000f7f617d8c0f/ac/temperature/get current_temperature_topic: pu000098650051000200030003000000f7f617d8c0f/ac/current-temperature/get json_attributes_topic: pu000098650051000200030003000000f7f617d8c0f/ac/attributes/get precision: 0.5 max_temp: 32 min_temp: 16 temp_step: 1 device: identifiers:

    • pu000098650051000200030003000000f7f617d8c0f manufacturer: Connectlife model: 009-104 fan_mode_command_topic: pu000098650051000200030003000000f7f617d8c0f/ac/fan/set fan_mode_state_topic: pu000098650051000200030003000000f7f617d8c0f/ac/fan/get platform: mqtt

And here is my control card:

image

How may I get back swing mode? Thanks!

delumerlino commented 4 months ago

But does your 009 104 correspond to the aeh-wgh2 wifi module?

Nope, mine is AEH-W4G2

bilan commented 4 months ago

To make a dump of your device configuration:

  1. Go to HOME_ASSISTANT/developer-tools/state
  2. Find your AC device image
  3. Copy all attributes, for case from my screenshot it will be:
hvac_modes: fan_only, heat, cool, dry, auto, off
min_temp: 16
max_temp: 32
[ ... ]
t_talr: 0
f-filter: 0
f_ecm: 1
friendly_name: Klimatyzator Klimatyzator 
supported_features: 41
  1. Change swing mode.
  2. Wait at least 1 minute.
  3. Go to step 3. unitl you've walked through all swing options.
  4. Paste (or attach in file) here the result.

I will make adjustments if I will have this data for your devices.

maverik80 commented 4 months ago

But does your 009 104 correspond to the aeh-wgh2 wifi module?

Nope, mine is AEH-W4G2

Sorry for my typing error, yes mine is like yours except that I can't turn them on and I don't understand why. Have you set anything in particular?

maverik80 commented 4 months ago

image

To make a dump of your device configuration:

  1. Go to HOME_ASSISTANT/developer-tools/state
  2. Find your AC device

image 3. Copy all attributes, for case from my screenshot it will be:

hvac_modes: fan_only, heat, cool, dry, auto, off
min_temp: 16
max_temp: 32
[ ... ]
t_talr: 0
f-filter: 0
f_ecm: 1
friendly_name: Klimatyzator Klimatyzator 
supported_features: 41
  1. Change swing mode.
  2. Wait at least 1 minute.
  3. Go to step 3. unitl you've walked through all swing options.
  4. Paste (or attach in file) here the result.

I will make adjustments if I will have this data for your devices.

bilan commented 4 months ago

Please read carefully full instruction I wrote.

delumerlino commented 4 months ago

Here are mine.

None of them make swing works, only from official app. Each selection goes back to --swing after about one minute. swings.txt

TY lots!

bilan commented 4 months ago

I was unclear, step 5. should be: Change swing mode in official app.

The point is to discover all possible: t_swing_direction: 0 t_swing_angle: 0

values.

delumerlino commented 4 months ago

I was unclear, step 5. should be: Change swing mode in official app.

The point is to discover all possible: t_swing_direction: 0 t_swing_angle: 0

values.

In this case it is super easy, I have only one swing mode:

hvac_modes: fan_only, heat, cool, dry, auto, off min_temp: 16 max_temp: 32 target_temp_step: 1 fan_modes: auto, super_low, low, medium, high, super_high swing_modes: - - swing, - - bottom 1/6 , - - bottom 2/6, - - bottom 3/6, - - top 4/6, - - top 5/6, - - top 6/6 current_temperature: 21 temperature: 23 fan_mode: super_low swing_mode: - - swing t_sleep: 0 t_power: 1 t_work_mode: 0 t_fan_speed: 5 t_fan_speed_s: 5 t_fan_mute: 0 t_super: 0 t_eco: 0 t_temp: 23 t_temp_type: 0 t_up_down: 1 t_swing_follow: 0 t_swing_direction: 0 t_swing_angle: 0 t_fanspeedcv: 0 t_tms: 0 t_temp_compensate: 10 f_humidity: 128 f_temp_in: 21 f_electricity: 0 f_votage: 0 f_e_intemp: 0 f_e_incoiltemp: 0 f_e_inhumidity: 0 f_e_infanmotor: 0 f_e_arkgrille: 0 f_e_invzero: 0 f_e_incom: 0 f_e_indisplay: 0 f_e_inkeys: 0 f_e_inwifi: 0 f_e_inele: 0 f_e_ineeprom: 0 f_e_outeeprom: 0 f_e_outcoiltemp: 0 f_e_outgastemp: 0 f_e_outtemp: 0 f_e_waterfull: 0 f_e_upmachine: 0 f_e_dwmachine: 0 f_e_over_cold: 0 f_e_over_hot: 0 f_e_push: 0 t_demand_response: 0 t_dal: 0 t_talr: 0 f-filter: 0 f_ecm: 1 icon: mdi:air-conditioner friendly_name: Split corridoio supported_features: 425

maverik80 commented 4 months ago

I was unclear, step 5. should be: Change swing mode in official app.

The point is to discover all possible: t_swing_direction: 0 t_swing_angle: 0

values.

this is mine with active oscillation from connectlife app

hvac_modes:

from what I noticed for me the t_up_down is the one that varies from 0 to 1 where 0 means active and 1 is fixed

Monacoslo commented 4 months ago

I can see my devices in addon LOG, but I can not find any in HOME_ASSISTANT/developer-tools/state

What did I miss?

delumerlino commented 3 months ago

Hi Bilan, do you have some news about it? Thanks

BenJamesAndo commented 3 months ago

I've got the same thing, t_up_down instead of t_swing_direction. I tried this but it didn't work "t_up_down":{"0":"vertical","1":"off"}

My model is HAWJ9KR.

Log:

hvac_modes:
  - fan_only
  - heat
  - cool
  - dry
  - auto
  - "off"
min_temp: 16
max_temp: 32
target_temp_step: 1
fan_modes:
  - auto
  - super_low
  - low
  - medium
  - high
  - super_high
current_temperature: 24
temperature: 26
fan_mode: auto
t_work_mode: "0"
t_power: "1"
t_temp: "26"
t_temp_type: "0"
t_fan_speed: "0"
t_fan_speed_s: "0"
t_up_down: "0"
t_sleep: "0"
t_eco: "0"
t_fan_mute: "0"
t_super: "0"
f_temp_in: "24"
f_e_push: "0"
f_e_intemp: "0"
f_e_incoiltemp: "0"
f_e_inhumidity: "0"
f_e_infanmotor: "0"
f_e_arkgrille: "0"
f_e_invzero: "0"
f_e_incom: "0"
f_e_indisplay: "0"
f_e_inkeys: "0"
f_e_inwifi: "0"
f_e_inele: "0"
f_e_ineeprom: "0"
f_e_outeeprom: "0"
f_e_outcoiltemp: "0"
f_e_outgastemp: "0"
f_e_outtemp: "0"
daily_energy_kwh: 0
friendly_name: Hisense air conditioner
supported_features: 393
delumerlino commented 3 months ago

Swing mode - straight still not working. Thanks

42Network commented 2 months ago

I've got the same thing, t_up_down instead of t_swing_direction.

I too have a ConnectLife mini split that only has "t_up_down" for vertical swing. The unit also has horizontal swing available from the handheld remote (but not from the app). Is there any way to add either the vertical or horizontal swing into HA?

Thanks

iTigere commented 1 month ago

even with the new update you can see the entities but they don't work with Connectlife 009-104 solutions? Thank you