timAU67
(Tim)
April 30, 2022, 11:54pm
1
I’ve searched the forum and read this thread
Hi there
I have gotten a chance to develop a Python library and a platform for climate component of Fujitsu.
[image]
create this directory path /config/custom_components/climate/ if does not exist.
Download this custom platform file from GitHub and place it in the climate directory mentioned in previous step. So the file would be as /config/custom_components/climate/fujitsu_general_heatpump.py
add the below lines to your configuration.yaml:
climate:
- platform: fujitsu_general_…
and have installed the Fujitsu integration as detailed here:
I followed those instructions to the letter, copy/paste where possible, and have checked and rechecked multiple times.
When I get HA to check the configuration.yaml prior to a restart I get this error
Platform error climate.fujitsu_general_heatpump - Integration ‘fujitsu_general_heatpump’ not found.
The section in configuration.yaml is as follows:
climate:
- platform: fujitsu_general_heatpump
username: [email protected]
password: xxxxxxxxx
I’m very new to HA and have no idea where to look to troubleshoot this. Any suggestions would be very much appreciated.
nickrout
(Nick Rout)
May 1, 2022, 12:10am
2
I don’t think it will found before a restart. Chicken, meet egg.
timAU67
(Tim)
May 1, 2022, 12:17am
3
Yeah, considered that too. Can’t restart as HA won’t let me.
Do I just power cycle the Pi it’s running on?
If doing this breaks my HA setup, am I likely to still have samba access to edit the configuration.yaml file to delete the offending lines?
timAU67
(Tim)
May 1, 2022, 1:03am
4
Rebooted with a power cycle, no change still won’t accept the fujitsu code.
nickrout
(Nick Rout)
May 1, 2022, 10:25am
5
I suggest an issue on their github.
timAU67
(Tim)
May 1, 2022, 10:43pm
6
The github page for the Fujitsu integration states:
This is a platform to support Fujitsu General Airconditioners under Climate component of Home Assistant. The Python supporting library for accessing the FGLair API is located at: GitHub - Mmodarre/pyfujitsu: Python Library for interacting with Fujitsu General split AC API
and maifest.json is
{
"domain": "https://github.com/Mmodarre/pyfujitsu_for_homeassistant",
"name": "fujitsu_general_heatpump",
"documentation": "https://github.com/Mmodarre/pyfujitsu_for_homeassistant/blob/95e3ba879214aa9abf70979185ae189776ba4846/README.md",
"dependencies": [],
"codeowners": [],
"requirements": ["pyfujitsu==0.8.1.1"]
}
It doesn’t say anything about having to install that library but I’m thinking maybe I have to manually install it?
Would the correct command for this be:
python -m pip install https://github.com/Mmodarre/pyfujitsu
I’m a Linux newbie as well as HA newbie so it’s a very steep learning curve…
nickrout
(Nick Rout)
May 2, 2022, 8:32pm
7
No it will be installed for you.
timAU67
(Tim)
May 2, 2022, 9:25pm
8
OK, thanks.
Turns out the github code was flawed, there is a forked version here
copied those files over in place of the old ones and configuration check is now fine.
Still no sign of the fujitsu api though, as per instructions in the other thread manually copied the files to
\192.168.0.33\config\deps\lib\python3.8\site-packages
and rebooted but still no fujitsu device anywhere to be found.
nickrout
(Nick Rout)
May 3, 2022, 4:46am
10
This doesn’t match he config stated in the docs, which requires region and tokenpath.
timAU67
(Tim)
May 3, 2022, 6:12am
11
Wasn’t seeing anything in the logs, but I’ll spend some more time looking through them tonight when I get home. Will post anything that looks relevant.
Docs suggested region and tokenpath both have suitable defaults so I left them out to reduce chance of creating a problem. It states they are optional. Will try with them included later on, thanks for checking up on that.
nickrout
(Nick Rout)
May 3, 2022, 7:35am
12
I can’t see that in the docs, I must have missed it.
timAU67
(Tim)
May 3, 2022, 7:41am
13
Just rebooted HA and now getting errors in the logs, so some progress but not a lot. I think manually adding the fujitsu api files in has kicked it along a bit further, just needed another reboot.
Almost identical log messages to the last post in here
This GitHub - deiger/AirCon: Scripts for controlling Air Conditioners, e.g. with HiSense modules. method is a better solution at this point. It is a a solution that supports many different AC/heat pump units, is well maintained, and should have broader support and reliability. There are still a few little quirks but overall it is quite reliable.
One thing to note: if you Ha instance has more than one network interface, you may need to change the setting int Configuration > General > Network to …
so I’ll move this discussion over there.