Python plugin: Daikin BRP069A42 WiFi adapter

Python and python framework
videodrome
Posts: 58
Joined: Wednesday 11 May 2016 16:11
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Python plugin: Daikin BRP069A42 WiFi adapter

Post by videodrome » Friday 22 December 2017 16:39

Anyone could help me?

Inviato dal mio HUAWEI CRR-L09 utilizzando Tapatalk


spiderjn
Posts: 20
Joined: Wednesday 27 December 2017 14:37
Target OS: Raspberry Pi
Domoticz version: 3.8834
Contact:

Re: Python plugin: Daikin BRP069A42 WiFi adapter

Post by spiderjn » Wednesday 27 December 2017 15:27

hi,

first thank's for this good job.

it is a very interesting plugin for my installation, I tried to install it on my raspberry and unfortunately as soon as I configure a new hardware, it crashes Domoticz and I must go remove the python file in plugin folder.

i search any information on how investigate this point without success.

Any help for start this configuration or how to test this plugin outside of domoticz ?

i've installed domoticz beta.

Best regards

spiderjn
Posts: 20
Joined: Wednesday 27 December 2017 14:37
Target OS: Raspberry Pi
Domoticz version: 3.8834
Contact:

Re: Python plugin: Daikin BRP069A42 WiFi adapter

Post by spiderjn » Sunday 07 January 2018 12:18

hi all

finally i prefer update hardware plugin.

See : https://www.domoticz.com/forum/viewtopi ... 34&t=21126

best regards

leejoow
Posts: 12
Joined: Saturday 05 November 2016 18:30
Target OS: Linux
Domoticz version:
Contact:

Re: Python plugin: Daikin BRP069A42 WiFi adapter

Post by leejoow » Friday 06 July 2018 19:41

Updated the git plugin to work with new Domoticz version. Stability seems to be improved after removing some imports.

Prutsium
Posts: 24
Joined: Monday 18 June 2018 11:31
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Germany / Netherlands
Contact:

Re: Python plugin: Daikin BRP069A42 WiFi adapter

Post by Prutsium » Saturday 07 July 2018 10:38

Just installed it and works great. Added the first Aircon (1 of 3) and no issues with setup.

Prutsium
Posts: 24
Joined: Monday 18 June 2018 11:31
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Germany / Netherlands
Contact:

Re: Python plugin: Daikin BRP069A42 WiFi adapter

Post by Prutsium » Wednesday 18 July 2018 8:43

Prutsium wrote:
Saturday 07 July 2018 10:38
Just installed it and works great. Added the first Aircon (1 of 3) and no issues with setup.
Seems some settings always revert back to some previous settings for example i set Airco to FAN but jumps back to cool after a minute.
Whats wrong here ?

Prutsium
Posts: 24
Joined: Monday 18 June 2018 11:31
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Germany / Netherlands
Contact:

Re: Python plugin: Daikin BRP069A42 WiFi adapter

Post by Prutsium » Wednesday 18 July 2018 9:44

Seems with the new firmware of the Wifi adapter some commands are not accepted anymore.

Below i try to switch to FAN mode got the following result:

Code: Select all

2018-07-18 10:39:22.576  (Airco - Living) Processing 'ReadEvent' message
2018-07-18 10:39:22.576  (Airco - Living) Received 84 bytes of data
2018-07-18 10:39:22.576  (Airco - Living)     48 54 54 50 2f 31 2e 30 20 32 30 30 20 4f 4b 0d 0a 43 6f 6e     HTTP/1.0.200.OK..Con
2018-07-18 10:39:22.576  (Airco - Living)     74 65 6e 74 2d 4c 65 6e 67 74 68 3a 20 31 39 0d 0a 43 6f 6e     tent-Length:.19..Con
2018-07-18 10:39:22.576  (Airco - Living)     74 65 6e 74 2d 54 79 70 65 3a 20 74 65 78 74 2f 70 6c 61 69     tent-Type:.text/plai
2018-07-18 10:39:22.576  (Airco - Living)     6e 0d 0a 0d 0a 72 65 74 3d 50 41 52 41 4d 20 4e 47 2c 61 64     n....ret=PARAM.NG,ad
2018-07-18 10:39:22.576  (Airco - Living)     76 3d 31 33 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..     v=13
2018-07-18 10:39:22.576  (Airco - Living) Pushing 'onMessageCallback' on to queue
2018-07-18 10:39:22.576  (Airco - Living) Processing 'DisconnectedEvent' message
2018-07-18 10:39:22.576  (Airco - Living) Disconnect event received for '192.168.199.106:80'.
2018-07-18 10:39:22.577  (Airco - Living) Pushing 'onDisconnectCallback' on to queue
2018-07-18 10:39:22.577  (Airco - Living) Processing 'onMessageCallback' message
2018-07-18 10:39:22.577  (Airco - Living) Calling message handler 'onMessage'.
2018-07-18 10:39:22.577  (Airco - Living) onMessage called
2018-07-18 10:39:22.577  (Airco - Living) Received data from connection Set Control: ret=PARAM NG,adv=13


Prutsium
Posts: 24
Joined: Monday 18 June 2018 11:31
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Germany / Netherlands
Contact:

Re: Python plugin: Daikin BRP069A42 WiFi adapter

Post by Prutsium » Wednesday 18 July 2018 12:45

Prutsium wrote:
Wednesday 18 July 2018 9:44
Seems with the new firmware of the Wifi adapter some commands are not accepted anymore.

Below i try to switch to FAN mode got the following result:

Code: Select all

2018-07-18 10:39:22.576  (Airco - Living) Processing 'ReadEvent' message
2018-07-18 10:39:22.576  (Airco - Living) Received 84 bytes of data
2018-07-18 10:39:22.576  (Airco - Living)     48 54 54 50 2f 31 2e 30 20 32 30 30 20 4f 4b 0d 0a 43 6f 6e     HTTP/1.0.200.OK..Con
2018-07-18 10:39:22.576  (Airco - Living)     74 65 6e 74 2d 4c 65 6e 67 74 68 3a 20 31 39 0d 0a 43 6f 6e     tent-Length:.19..Con
2018-07-18 10:39:22.576  (Airco - Living)     74 65 6e 74 2d 54 79 70 65 3a 20 74 65 78 74 2f 70 6c 61 69     tent-Type:.text/plai
2018-07-18 10:39:22.576  (Airco - Living)     6e 0d 0a 0d 0a 72 65 74 3d 50 41 52 41 4d 20 4e 47 2c 61 64     n....ret=PARAM.NG,ad
2018-07-18 10:39:22.576  (Airco - Living)     76 3d 31 33 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..     v=13
2018-07-18 10:39:22.576  (Airco - Living) Pushing 'onMessageCallback' on to queue
2018-07-18 10:39:22.576  (Airco - Living) Processing 'DisconnectedEvent' message
2018-07-18 10:39:22.576  (Airco - Living) Disconnect event received for '192.168.199.106:80'.
2018-07-18 10:39:22.577  (Airco - Living) Pushing 'onDisconnectCallback' on to queue
2018-07-18 10:39:22.577  (Airco - Living) Processing 'onMessageCallback' message
2018-07-18 10:39:22.577  (Airco - Living) Calling message handler 'onMessage'.
2018-07-18 10:39:22.577  (Airco - Living) onMessage called
2018-07-18 10:39:22.577  (Airco - Living) Received data from connection Set Control: ret=PARAM NG,adv=13

After digging in your Python script i found the whole FAN mode missing.

After adding:

Code: Select all

           elif (mode == "6"):
                sValueNew = "40" #Fan
and

Code: Select all

        elif (Devices[4].sValue == "40"):
            requestUrl = requestUrl + "6"
The Fan mode works again seems you missed this somehow.
(Ps me proud of myself never worked with Python but just looked at the logic and noticed something missing :))

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests