AirCon icon indicating copy to clipboard operation
AirCon copied to clipboard

Current Temperature FGLair

Open kevtuning opened this issue 1 year ago • 17 comments

Hi,

If I understand well , the only way to have the current temperature for FGLair AC (Fujitsu, ...) when running as an add-on is to integrate the Pull requests #222 and #224.

Is it correct ? and if yes, @deiger is it possible to integrate it in the next release ?

Thank you very much,

kevtuning avatar Aug 09 '23 10:08 kevtuning

Same request here #240

I believe it is a key enhancement !

2x thank you very much

legantois avatar Aug 27 '23 08:08 legantois

Any chance to get it merged with 2023.10 ?

kevtuning avatar Sep 29 '23 13:09 kevtuning

Is there any way to get all integrated ?

legantois avatar Nov 12 '23 20:11 legantois

Is there any way to get all integrated ?

legantois avatar Jan 27 '24 10:01 legantois

seems we will never get this new feature on the official release

Could someone explains how to install an addon PR ?

my config: Core 2024.2.3 Supervisor 2024.02.0 Operating System 11.5 Frontend 20240207.1

legantois avatar Feb 23 '24 21:02 legantois

Through lot of trials and errors, I was able to clone the repo and create a docker image from PR #224. I don't see the temperature on the thermostat card but mqtt sends the correct data as in the FGLair application. Link to paste in HA for installation: https://github.com/xury77/AirCon.git

xury77 avatar Jul 17 '24 20:07 xury77

I don't see the temperature on the thermostat card but mqtt sends the correct data as in the FGLair application. Link to paste in HA for installation: https://github.com/xury77/AirCon.git

Hi @xury77, what's the mqtt topic ?

Is it well 'display_temperature' ?

kevtuning avatar Jul 24 '24 11:07 kevtuning

My topic is:

hisense_ac/047bcb58141e/display_temperature/status

And payload:

25.5

But when I go to HA > developer tools I have:

hvac_modes:

  • "off"
  • fan_only
  • heat
  • cool
  • dry
  • auto min_temp: 16 max_temp: 30 target_temp_step: 1 fan_modes:
  • auto
  • quiet
  • low
  • medium
  • high swing_modes:
  • "on"
  • "off" current_temperature: null temperature: 24 fan_mode: low swing_mode: "on" friendly_name: AC000W026243923 MQTT HVAC supported_features: 425

So current_temperature remains null

xury77 avatar Jul 24 '24 13:07 xury77

I don't really see in the sources where it is doing the mapping display_temperature to current_temperature

kevtuning avatar Jul 24 '24 14:07 kevtuning

I think is some env_temp related with f_temp_in.

xury77 avatar Jul 24 '24 14:07 xury77

@xury77

I am not an expert but I would try to test to change the line 247 of main.py

config['display_temperature_state_topic'] = mqtt_topics['pub'].format(device.mac_address, topics['display_temperature'])

by

config['current_temperature_topic'] = mqtt_topics['pub'].format(device.mac_address, topics['display_temperature'])

kevtuning avatar Jul 25 '24 10:07 kevtuning

Yes. According https://www.home-assistant.io/integrations/climate.mqtt/

current_temperature_topic string (optional) The MQTT topic on which to listen for the current temperature. A "None" value received will reset the current temperature. Empty values (''') will be ignored.

I will check it.

xury77 avatar Jul 25 '24 13:07 xury77

Yes at least it works: Zrzut ekranu z 2024-07-25 17-05-54

xury77 avatar Jul 25 '24 15:07 xury77

New release 0.3.20 pushed to dockerhub and available at https://github.com/xury77/AirCon At least current temperature is displayed as above.

xury77 avatar Jul 25 '24 21:07 xury77

works on my side two

image

Many Thanks for the work !!!

legantois avatar Jul 26 '24 16:07 legantois

I think I can be able to add some features for FGlair devices such as: vertical positions, eco, boost mode, energy saving, outdoor noise etc: I'm not a python developer but I like doing some hacks :)

xury77 avatar Jul 26 '24 18:07 xury77

this is great! i've switched to your fork. any other features you want to add are welcome for me!

jonad0521 avatar Aug 22 '24 18:08 jonad0521