Daikin AC Integration BRP069C4x

I too got it working very easily, and superfast with the binary from gigatexel. Thanks! The only issue, which is caused by the Daikin cloud probably, is that controlling my AC units trough the “Daikin Residential Controller” integration is much slower than the “Daiking AC” integration. Three of my four AC units (Daikin Stylish) support the local method.

I have a semi related question about my FVXM25A with the new Wifi module BRP069C4x. First, the unit keeps broadcasting it’s own SSID. The other three don’t do that. That seems to be “normal” if I read this thread correctly. But what’s more, the Perfera keeps reconnecting to my Wifi every 5 minutes. Rarely it’s exactly double that, but it’s like a clock: reconnect every 5min. Wiifi signal is great, my other units connect to the same AP and some are further away and their signal is not as good. (read: still very good signal)

Does anyone see the same behaviour with the Perfera and BRP069C4x? Or does your unit have a stable Wifi connection.

My Prefera’s also keep sending out wifi… Seems Daikin think this is okay and normal…

1 Like

Thanks to all involved to create this! Some amazing work. Took me a while even with the binary, but all good and well and working.

Questions:

  1. the led on the unit doesn’t go on when I turn the AC on from HA. Is this normal?
  2. the updates of the status etc seems to take a while. Any specific reason for this?
  1. No that’s not what happens to my units. They just act as if I used the remote controller or the daikin app. Are you sure you didn’t disable some LED settings through your remote control?
  2. The reason is that the Daikin cloud is absolute shit. It’s slow to respond and when using the app I often have to shut down/power on the unit 2 or 3 times. This actuall improved with HA, when only 1 command has been suffice.

So I can’t say I recognize your points regarding the integration. Is the wifi strong enough for your AC units? This could be an issue since Daikin lets their units send out an own signal as well which disturbs the WIFI space.

Thank you for the response.

  1. I haven’t touched anything on the LED settings, so I’d be surprised if that’s the case. The LED just goes on whenever I use the app or the remote. I’ll check with my other AC units.
  2. The wifi is just fine. They al respond quickly from either the app or google home integration.

I was just curious if anyone else noticed the same issues. Could be that it’s not an open API that is causing issues I guess.

THANK YOU so much really, it been flawless to add my 2 perfera to HA.

I do have problems to add my stylish AC to the residential app. When i try to add the device It says " Cannot add the device seems that the region is not supported"

BTW Thank you for the effort and time spent to make residential app models working with HA

Hey All,

I have a short update. New version of the tokensaver (Release Release v0.2.0 · Apollon77/daikin-controller-cloud · GitHub) … now it should be possible to do “tokensaver [email protected] mypassword” to get tokens … Please try it out too. if this works, no proxy is needed … Proxy is still there as fallback.

2 Likes

Hi, please help me.
I get tokenset.json correctly put in the same folder of configuration.yaml, for an heat pump Altherma 3 but in HA i have 1 device and one entity unvailable.

this is my log:
`
Logger: homeassistant.components.climate
Source: custom_components/daikin_residential/daikin_base.py:101
Integration: Climate (documentation, issues)
First occurred: 10:59:43 PM (1 occurrences)
Last logged: 10:59:43 PM

Error while setting up daikin_residential platform for climate
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/helpers/entity_platform.py”, line 205, in _async_setup_platform
await asyncio.shield(task)
File “/config/custom_components/daikin_residential/climate.py”, line 84, in async_setup_entry
async_add_entities([DaikinClimate(device)], update_before_add=True)
File “/config/custom_components/daikin_residential/climate.py”, line 98, in init
ATTR_SWING_MODE: self._device.swing_modes,
File “/config/custom_components/daikin_residential/daikin_base.py”, line 239, in swing_modes
hMode = self.getData(ATTR_HSWING_MODE)
File “/config/custom_components/daikin_residential/daikin_base.py”, line 106, in getData
cmd_set = self.getCommandSet(param)
File “/config/custom_components/daikin_residential/daikin_base.py”, line 101, in getCommandSet
cmd_set[2] = cmd_set[2].replace("%operationMode%", operation_mode)
TypeError: replace() argument 2 must be str, not None
and
Logger: homeassistant.components.sensor
Source: custom_components/daikin_residential/daikin_base.py:286
Integration: Sensor (documentation, issues)
First occurred: 10:59:43 PM (2 occurrences)
Last logged: 10:59:43 PM

Error adding entities for domain sensor with platform daikin_residential
Error while setting up daikin_residential platform for sensor
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/helpers/entity_platform.py”, line 322, in async_add_entities
await asyncio.gather(*tasks)
File “/usr/src/homeassistant/homeassistant/helpers/entity_platform.py”, line 514, in _async_add_entity
await entity.add_to_platform_finish()
File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 547, in add_to_platform_finish
self.async_write_ha_state()
File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 310, in async_write_ha_state
self._async_write_ha_state()
File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 334, in _async_write_ha_state
sstate = self.state
File “/config/custom_components/daikin_residential/sensor.py”, line 132, in state
return self._device.inside_temperature
File “/config/custom_components/daikin_residential/daikin_base.py”, line 286, in inside_temperature
return float(self.getValue(ATTR_INSIDE_TEMPERATURE))
TypeError: float() argument must be a string or a number, not ‘NoneType’
`

what i do wrong?
how integration can connet to daikin servers only with token? There’s a place to config email and password?
Thanks…

Hi,
the procedure worked for me but i have to report some strange behavior of some of my machines.
I have 2 perfera and 1 Stylish model, all of them are bought in 2021 whit BRP c version.

Sems that randomly one of the AC goes offline and notify a “conflict”
Am i doing something wrong or some of you did have the same behavior??
Thank in advance

Thank you @rospogrigio @Apollon77 @ gigatexel for make it possible! Good work!

Now is time to to write daikin for ask about the AP anouncement… it has no sense and is quite annoying.

2 Likes

Major Japanese air conditioners support the echonet lite protocol. echonet lite is a unified standard for smart homes in Japan, but it is not well known because it is not even widely used in Japan.

I’m curious if Daikin air conditioners in other regions support the echonet lite protocol. I live in Japan, so I can’t check the behavior of air conditioners in other regions.

I have heard from other users that mitsubishi_hass can be used with newer Daikin air conditioners sold in Japan. mitsubishi_hass is a component that controls Mitsubishi air conditioners with the echonet lite protocol.

1 Like

Any chance that this integration can be tweaked slightly so that the power consumption is exposed in the correct way to be added to the new power feature of HA 2021.8?

If you add the device_class, the state_class and reset date through the customize option, it works. Just an intermediary solution if need be.

Can you give a bit more information how you did this? @Cazimbo

You need to add those attributes to the customize.yaml file and then include it in your configuration.yaml. I’ve added what i’ve used.

customize.yaml

sensor.daikin_kamer_adriaan_daily_cool_energy_consumption:
  last_reset: '1970-01-01T00:00:00+00:00'
  device_class: energy
  state_class: measurement
sensor.daikin_kamer_adriaan_daily_heat_energy_consumption:
  last_reset: '1970-01-01T00:00:00+00:00'
  device_class: energy
  state_class: measurement
sensor.daikin_slaapkamer_daily_cool_energy_consumption:
  last_reset: '1970-01-01T00:00:00+00:00'
  device_class: energy
  state_class: measurement
sensor.daikin_slaapkamer_daily_heat_energy_consumption:
  last_reset: '1970-01-01T00:00:00+00:00'
  device_class: energy
  state_class: measurement
configuration.yaml

homeassistant:
  customize: !include customize.yaml

just not sure how correct it’s working as i’ve got negative usage stats for today. So need to take a closer look to that.

1 Like

Exactly that :wink:

The stats are calculated by Daikin I think so not much the integration can do about that.

1 Like

Easiest way to get a daily consumption in the new energy dashboard is to add an energy meter with the following config:

utility_meter:
  atticac_energy:
    source: sensor.attic_ac_daily_cool_energy_consumption
    cycle: daily
    name: Attic AC Energy

And then use the newly created sensor in the dashboard.

It may take a while for it to be available.

1 Like

Please create an Issue in my repo to track this problem and I’ll give it a look.
In the meantime, you should try to install this PR (Introduced dumping of JSON data received by rospogrigio · Pull Request #6 · rospogrigio/daikin_residential · GitHub ), which will store a dump of the JSON data of your devices, obfuscate sensitive data and send it to me or post it in the Issue you’ll open. Bye

Thanks rospogrigio, it seems thath the error is before…
“daikin_data.json” file is not written…

raceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 249, in async_setup
result = await component.async_setup_entry(hass, self) # type: ignore
File “/config/custom_components/daikin_residential/init.py”, line 58, in async_setup_entry
devices = await daikin_api.getCloudDevices()
File “/config/custom_components/daikin_residential/daikin_api.py”, line 155, in getCloudDevices
json.dump(devices, jsonFile, indent=4, sort_keys=True)
NameError: name ‘devices’ is not defined

issue created, maybe my model BRP069A78 (Altherma 3 heat pump) is not supported.
i’m awaiting your opinion.
thanks