Plugin for the Daikin Airconditioning (KKRP01A)

Python and python framework
Post Reply
foxfire
Posts: 2
Joined: Tuesday 14 March 2017 13:23
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Plugin for the Daikin Airconditioning (KKRP01A)

Post by foxfire » Thursday 16 March 2017 15:39

This is a full plugin for the Daikin Airconditioning (KKRP01A).
Just copy it to the plugin directory and decompress it there and restart the server.
I have only tested it with one Unit and it has to be a KKRP01A, which connects to http://www.onlinecontroller.eu/ .
This plugins connects directly to the board.
Not tested with authentication.
Currently it is running on my Qnap, but i do not use any special modules and no shell escape.
Use freely, change and redistribuite at will, just leave a coment inside your code.
Attachments
KKRP01A.zip
Daikin plugin
(3.44 KiB) Downloaded 51 times

homerci
Posts: 1
Joined: Tuesday 11 April 2017 13:29
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Plugin for the Daikin Airconditioning (KKRP01A)

Post by homerci » Thursday 20 April 2017 12:30

Hello,
I also have at home a Daikin Airconditioning with (KKRP01A). :D
My tests of your python script give me an error when I run it in the terminal:

  "" ""
  /home/pi/domoticz/scripts/python/plugin_PAC.py
Traceback (most recent call last):
   File "/home/pi/domoticz/scripts/python/plugin_PAC.py", line 32, in <module>
     Import http.client
ImportError: No module named http.client
And also ImportError: No module named Domoticz :o :x
"" "" "

Or I can find these 2 modules to import :?: :?:

robhuls
Posts: 32
Joined: Monday 23 March 2015 20:20
Target OS: Raspberry Pi
Domoticz version: beta
Location: Zwolle
Contact:

Re: Plugin for the Daikin Airconditioning (KKRP01A)

Post by robhuls » Saturday 08 July 2017 11:26

I have zero knowledge of python plugins, but it seems you are calling the stock python on your machine and not the python version included with Domoticz.

robhuls
Posts: 32
Joined: Monday 23 March 2015 20:20
Target OS: Raspberry Pi
Domoticz version: beta
Location: Zwolle
Contact:

Re: Plugin for the Daikin Airconditioning (KKRP01A)

Post by robhuls » Saturday 08 July 2017 11:32

foxfire wrote:This is a full plugin for the Daikin Airconditioning (KKRP01A).
Use freely, change and redistribuite at will, just leave a coment inside your code.
Interesting. I made a lua script to control my Daikin Ururu Sarara using the BRP069A42 wifi controller (the one in the wiki). I shortly looked at the python code and the interface itself seems slightly different, but I can probably make a version that works with the API of the BRP069A42.

foxfire
Posts: 2
Joined: Tuesday 14 March 2017 13:23
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Plugin for the Daikin Airconditioning (KKRP01A)

Post by foxfire » Monday 06 August 2018 22:28

hello ,
sorry i have been very busy and had to put domoticz on hold, also it was working almost perfectly :D for me.
I had to upgrade my QNAP NAS, so i upgraded domoticz to 4.9701 and the daikin plugin stoped working completely.
On version 1 i had an strange event that sometimes the plugins would crash it could take a few days but it would happen.
So i created version 2, a more simpler version based on the old one. Also i fixed the devices to be compatible with domoticz again.
Same as before feel free to use it at your pleasure.
Some notes, the code is ugly and does not follow domoticz guidelines ... sorry just don't have time for this right now.
It is configured to poll data each 30 seconds ... too much or too less edit the file and change this line

Domoticz.Heartbeat(30)

in the onStart function.

1) Homerci http.client should not give you problems check your python version
https://docs.python.org/3/library/http.client.html
now domoticz not importing that is weard, but sorry my python knowlege is limited.
just one hint in order to make it work in domoticz QNAP i had to add these 2 lines to domotics.sh

export LD_LIBRARY_PATH=/opt/QPython3/lib:$LD_LIBRARY_PATH
export PATH=/opt/QPython3/bin:$PATH

adjust the path as needed.

2) robhuls it is quite simple in order to get the data you need to access http://<ip>:80/param.csv
this line will give you something like this
OK. OFF. NONE. NONE. NONE. UD. 27,0. OFF/OFF. ENA. ---. NOR.NOR.NOR.NOR. Controller1. COOL.19.23.23.FA. user. 22,5. 50. -. -. -. 1.
check my code for more info.
in order to change status you need to POST to http://<ip>:80/index.htm some thing like this

wON=On&wMODE=Cool&wTEMP=23C&wFUN=FAuto&wSWNG=UD&wSETd1=Set

hope it helps, if you need aditional help just let me know.
Attachments
KKRP01A.zip
(3.08 KiB) Downloaded 6 times

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests