Python Plugin : Broadlink

Python and python framework

Moderator: leecollings

zak45
Posts: 952
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Python Plugin : Broadlink

Post by zak45 »

krystian wrote: Thursday 29 October 2020 18:25 hello, i'm new in here and new in Domoticz ;)

problem:

Code: Select all

2020-10-29 18:10:44.442 Error: (Broadlink) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/Broadlink/:/usr/lib/python37.zip:/usr/lib/python3.7:/usr/lib/python3.7/lib-dynload:/usr/local/lib/python3.7/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.7/dist-packages'.

Code: Select all

python --version
Returns
Python 3.7.3

When i run manually:

Code: Select all

python plugin.py
Traceback (most recent call last):
  File "plugin.py", line 110, in <module>
    import Domoticz
ModuleNotFoundError: No module named 'Domoticz'
first, welcome.

second, never run plugin.py like that, this should be run by Domoticz.
plz, read the first post and follow all step/link provided to understand.
mostorer
Posts: 5
Joined: Tuesday 02 July 2019 15:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin : Broadlink

Post by mostorer »

Hi all.
I have a little issue with the plugin, but I suppose is my fault.

I have bought a Broadlink RM4 mini, then installed the plugin on Domoticz following the instructions on the first page of this thread without any problem.
As it is still not too clear to me how the RM4 and the plugin work, I have played a little with the web interface. At the end I have found how to get the on/off code for my TV on IR DB, how to create the ini file and then create the Domoticz Device.

Now, testing the button from the web interface all is working ... push on, push off.
If I use the new created Domoticz device (On/Off switch), when I push it for the first time, the TV switch on, but when I push it newly, the TV remains on. Pushing the switch for the third time, the TV switch off.
I see within the log that, when the command sent to the plugin is "On", then the code is read from the ini file and sent, while when the command is Off, no code transmitted.

I'm sure there is something wrong in my configuration, but I don't know where to look for.

Thank you in advance.
zak45
Posts: 952
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Python Plugin : Broadlink

Post by zak45 »

mostorer wrote: Friday 30 October 2020 19:49
Now, testing the button from the web interface all is working ... push on, push off.
If I use the new created Domoticz device (On/Off switch), when I push it for the first time, the TV switch on, but when I push it newly, the TV remains on. Pushing the switch for the third time, the TV switch off.
I see within the log that, when the command sent to the plugin is "On", then the code is read from the ini file and sent, while when the command is Off, no code transmitted.
For the plugin, no matter how you send the code:
from the web interface, from the Domoticz linked device, from command line or http request,
this should send the same code, the one saved in the corresponding ini file.

Domoticz device is a "push On" button, this mean always one action and always the same one, the one linked to the ini file: this act as a "remote button".
On my side, with a Samsung TV, I have 3 buttons, one for "Off", one for "On" and another one for "toogle".
mostorer
Posts: 5
Joined: Tuesday 02 July 2019 15:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin : Broadlink

Post by mostorer »

zak45 wrote: Saturday 31 October 2020 0:13 Domoticz device is a "push On" button, this mean always one action and always the same one, the one linked to the ini file: this act as a "remote button".
Yes, you are right, that is a "push On" button. The problem is when you want to use it with Alexa. I am using Alhau skill to connect to Domoticz, so you can switch on the TV but not switch it off, unless you always ask to switch the TV on, as the Off command on the switch does more or less nothing.
This is why I am asking.
I think the plugin could send the same command both for On and Off. This way a push On/Off should work.
zak45
Posts: 952
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Python Plugin : Broadlink

Post by zak45 »

mostorer wrote: Saturday 31 October 2020 18:49 The problem is when you want to use it with Alexa. I am using Alhau skill to connect to Domoticz, so you can switch on the TV but not switch it off, unless you always ask to switch the TV on, as the Off command on the switch does more or less nothing.
Just to remove any confusion:
there is no 'Off' action from Domoticz device created by the plugin.
The device is linked to a ini file, and give the instruction to the plugin to read it, extract the IR (or RF) code from it and send it.
IF you have the IR code for 'toogle' (and if your TV manage it), you can with the same Domoticz push button, put your TV 'On' if 'Off' or put it 'Off' if 'On'.
mostorer
Posts: 5
Joined: Tuesday 02 July 2019 15:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin : Broadlink

Post by mostorer »

zak45 wrote: Saturday 31 October 2020 19:25 Just to remove any confusion:
there is no 'Off' action from Domoticz device created by the plugin.
Exactly, that is the problem I was pointing out. Managing 'Off' action the same as 'On' should permit to use a toggle switch from Alexa.
zak45
Posts: 952
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Python Plugin : Broadlink

Post by zak45 »

mostorer wrote: Saturday 31 October 2020 21:21
zak45 wrote: Saturday 31 October 2020 19:25 Just to remove any confusion:
there is no 'Off' action from Domoticz device created by the plugin.
Exactly, that is the problem I was pointing out. Managing 'Off' action the same as 'On' should permit to use a toggle switch from Alexa.
Hmmm... do not see any problem here ?? !!
chrispazz
Posts: 81
Joined: Friday 08 July 2016 10:38
Target OS: -
Domoticz version:
Contact:

Re: Python Plugin : Broadlink

Post by chrispazz »

Hello, I am trying to have my RM4 Pro working but have some problems with RF (IR works good).

If I try to do the sweep, all go ok and switch to Learn correctly.
After a couple of secs, without doing anything the Learn process stop giving an error:

State: Error to learn RF code
Error: (Broadlink) ERR : learnrf--RF not true, sweep necessary--21

If I try the same using the CLI interface, the RF remote is correctly sweeped and learned.
What can I check for errors?

Thank you
Chris
zak45
Posts: 952
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Python Plugin : Broadlink

Post by zak45 »

chrispazz wrote: Tuesday 17 November 2020 11:26
If I try to do the sweep, all go ok and switch to Learn correctly.
After a couple of secs, without doing anything the Learn process stop giving an error:

State: Error to learn RF code
Error: (Broadlink) ERR : learnrf--RF not true, sweep necessary--21

If I try the same using the CLI interface, the RF remote is correctly sweeped and learned.
Strange ... plugin do the same thing as the CLI.
Learning a RF is little bit more complicated than IR.
Be sure to be near the Broadlink device to avoid some noise problem.
sweep need to be done first to let the device scan RF and focus on one specific frequency, when this is done, the Domoticz device will be put to Learn.
Once you have learned one RF , you do not need to sweep again, Broadlink device should has been switched to right frequency.
If you do not see the Learn selector activated, click on the reset button... if Broadlink device had kept in memory the frequency, the Learn selector should activate.. otherwise, you need to redo the sweep process.
chrispazz
Posts: 81
Joined: Friday 08 July 2016 10:38
Target OS: -
Domoticz version:
Contact:

Re: Python Plugin : Broadlink

Post by chrispazz »

Yes, it keeps the frequency since the Learn button switch on by itself but if I press Learn, after 2 secs it get off without any interaction and with the given error.

Which kind of log can I see to diagnose the problem?

Thank you
zak45
Posts: 952
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Python Plugin : Broadlink

Post by zak45 »

chrispazz wrote: Tuesday 17 November 2020 14:56 Yes, it keeps the frequency since the Learn button switch on by itself but if I press Learn, after 2 secs it get off without any interaction and with the given error.

Which kind of log can I see to diagnose the problem?

Thank you
you said that using CLI this work: do you have used the same device type during your test ??

for logs,
put the plugin in debug mode, more information will be logged to domoticz log, you can also take a look to the log folder.
chrispazz
Posts: 81
Joined: Friday 08 July 2016 10:38
Target OS: -
Domoticz version:
Contact:

Re: Python Plugin : Broadlink

Post by chrispazz »

Yes, I am using the same device id.

It seems to answer OK to sweep command but when issuing the learn command I can see an error that sweep is not done.

RM4 Pro is 192.168.30.121
Domoticz is 192.168.30.30

Here are some logs:

Code: Select all

2020-11-18 11:28:16.859 Status: User: admin initiated a switch command (411/Broadlink - RF Commands/Set Level)
2020-11-18 11:28:29.371 Status: User: admin initiated a switch command (411/Broadlink - RF Commands/Set Level)
2020-11-18 11:28:31.375 Error: (Broadlink) ERR : learnrf--RF not true, sweep necessary--21
2020-11-18 11:29:13.605 (Broadlink) 76 65 20 61 3a 76 69 73 69 74 65 64 20 7b 0d 0a 20 20 20 20 ve.a:visited.{......
2020-11-18 11:29:13.605 (Broadlink) 63 6f 6c 6f 72 3a 20 23 32 31 32 31 32 31 3b 0d 0a 20 20 20 color:.#212121;.....
2020-11-18 11:29:13.605 (Broadlink) 20 74 65 78 74 2d 64 65 63 6f 72 61 74 69 6f 6e 3a 20 6e 6f .text-decoration:.no
2020-11-18 11:29:13.605 (Broadlink) 6e 65 3b 0d 0a 7d 0d 0a 0d 0a 2f 2a 20 49 6e 74 65 72 61 63 ne;..}..../*.Interac
2020-11-18 11:29:13.605 (Broadlink) 74 69 6f 6e 20 43 75 65 73 0d 0a 2d 2d 2d 2d 2d 2d 2d 2d 2d tion.Cues..---------
2020-11-18 11:29:13.605 (Broadlink) 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d --------------------
2020-11-18 11:29:13.605 (Broadlink) 2d 2d 2d 2d 2d 2a 2f 0d 0a 2e 75 69 2d 73 74 61 74 65 2d 68 -----*/...ui-state-h
2020-11-18 11:29:13.605 (Broadlink) 69 67 68 6c 69 67 68 74 2c 0d 0a 2e 75 69 2d 77 69 64 67 65 ighlight,...ui-widge
2020-11-18 11:29:13.605 (Broadlink) 74 2d 63 6f 6e 74 65 6e 74 20 2e 75 69 2d 73 74 61 74 65 2d t-content..ui-state-
2020-11-18 11:29:13.605 (Broadlink) 68 69 67 68 6c 69 67 68 74 2c 0d 0a 2e 75 69 2d 77 69 64 67 highlight,...ui-widg
2020-11-18 11:29:13.605 (Broadlink) 65 74 2d 68 65 61 64 65 72 20 2e 75 69 2d 73 74 61 74 65 2d et-header..ui-state-
2020-11-18 11:29:13.605 (Broadlink) 68 69 67 68 6c 69 67 68 74 20 7b 0d 0a 20 20 20 20 62 6f 72 highlight.{......bor
2020-11-18 11:29:13.605 (Broadlink) 64 65 72 3a 20 31 70 78 20 73 6f 6c 69 64 20 23 66 63 65 66 der:.1px.solid.#fcef
2020-11-18 11:29:13.605 (Broadlink) 61 31 3b 0d 0a 20 20 20 20 62 61 63 6b 67 72 6f 75 6e 64 3a a1;......background:
2020-11-18 11:29:13.605 (Broadlink) 20 23 66 62 66 39 65 65 3b 0d 0a 20 20 20 20 63 6f 6c 6f 72 .#fbf9ee;......color
2020-11-18 11:29:13.605 (Broadlink) 3a 20 23 33 36 33 36 33 36 3b 0d 0a 7d 0d 0a 2e 75 69 2d 73 :.#363636;..}...ui-s
2020-11-18 11:29:13.605 (Broadlink) 74 61 74 65 2d 64 69 73 61 62 6c 65 64 2c 0d 0a 2e 75 69 2d tate-disabled,...ui-
2020-11-18 11:29:13.605 (Broadlink) 77 69 64 67 65 74 2d 63 6f 6e 74 65 6e 74 20 2e 75 69 2d 73 widget-content..ui-s
2020-11-18 11:29:13.605 (Broadlink) 74 61 74 65 2d 64 69 73 61 62 6c 65 64 2c 0d 0a 2e 75 69 2d tate-disabled,...ui-
2020-11-18 11:29:13.605 (Broadlink) 77 69 64 67 65 74 2d 68 65 61 64 65 72 20 2e 75 69 2d 73 74 widget-header..ui-st
2020-11-18 11:29:13.605 (Broadlink) 61 74 65 2d 64 69 73 61 62 6c 65 64 20 7b 0d 0a 20 20 20 20 ate-disabled.{......
2020-11-18 11:29:13.605 (Broadlink) 6f 70 61 63 69 74 79 3a 20 2e 33 35 3b 0d 0a 20 20 20 20 66 opacity:..35;......f
2020-11-18 11:29:13.605 (Broadlink) 69 6c 74 65 72 3a 41 6c 70 68 61 28 4f 70 61 63 69 74 79 3d ilter:Alpha(Opacity=
2020-11-18 11:29:13.605 (Broadlink) 33 35 29 3b 20 2f 2a 20 73 75 70 70 6f 72 74 3a 20 49 45 38 35);./*.support:.IE8
2020-11-18 11:29:13.605 (Broadlink) 20 2a 2f 0d 0a 20 20 20 20 62 61 63 6b 67 72 6f 75 6e 64 2d .*/......background-
2020-11-18 11:29:13.605 (Broadlink) 69 6d 61 67 65 3a 20 6e 6f 6e 65 3b 0d 0a 7d 0d 0a 2f 2a 20 image:.none;..}../*.
2020-11-18 11:29:13.605 (Broadlink) 4f 76 65 72 6c 61 79 73 20 2a 2f 0d 0a 2e 75 69 2d 77 69 64 Overlays.*/...ui-wid
2020-11-18 11:29:13.605 (Broadlink) 67 65 74 2d 6f 76 65 72 6c 61 79 20 7b 0d 0a 20 20 20 20 70 get-overlay.{......p
2020-11-18 11:29:13.605 (Broadlink) 6f 73 69 74 69 6f 6e 3a 20 66 69 78 65 64 3b 0d 0a 20 20 20 osition:.fixed;.....
2020-11-18 11:29:13.605 (Broadlink) 20 74 6f 70 3a 20 30 3b 0d 0a 20 20 20 20 6c 65 66 74 3a 20 .top:.0;......left:.
2020-11-18 11:29:13.606 (Broadlink) 30 3b 0d 0a 20 20 20 20 77 69 64 74 68 3a 20 31 30 30 25 3b 0;......width:.100%;
2020-11-18 11:29:13.606 (Broadlink) 0d 0a 20 20 20 20 68 65 69 67 68 74 3a 20 31 30 30 25 3b 0d ......height:.100%;.
2020-11-18 11:29:13.606 (Broadlink) 0a 7d 0d 0a 2e 75 69 2d 61 63 63 6f 72 64 69 6f 6e 20 2e 75 .}...ui-accordion..u
2020-11-18 11:29:13.606 (Broadlink) 69 2d 61 63 63 6f 72 64 69 6f 6e 2d 68 65 61 64 65 72 20 7b i-accordion-header.{
2020-11-18 11:29:13.606 (Broadlink) 0d 0a 20 20 20 20 64 69 73 70 6c 61 79 3a 20 62 6c 6f 63 6b ......display:.block
2020-11-18 11:29:13.606 (Broadlink) 3b 0d 0a 20 20 20 20 63 75 72 73 6f 72 3a 20 70 6f 69 6e 74 ;......cursor:.point
2020-11-18 11:29:13.606 (Broadlink) 65 72 3b 0d 0a 20 20 20 20 70 6f 73 69 74 69 6f 6e 3a 20 72 er;......position:.r
2020-11-18 11:29:13.606 (Broadlink) 65 6c 61 74 69 76 65 3b 0d 0a 20 20 20 20 6d 61 72 67 69 6e elative;......margin
2020-11-18 11:29:13.606 (Broadlink) 3a 20 32 70 78 20 30 20 30 20 30 3b 0d 0a 20 20 20 20 70 61 :.2px.0.0.0;......pa
2020-11-18 11:29:13.606 (Broadlink) 64 64 69 6e 67 3a 20 2e 35 65 6d 20 2e 35 65 6d 20 2e 35 65 dding:..5em..5em..5e
2020-11-18 11:29:13.606 (Broadlink) 6d 20 2e 37 65 6d 3b 0d 0a 20 20 20 20 66 6f 6e 74 2d 73 69 m..7em;......font-si
2020-11-18 11:29:13.606 (Broadlink) 7a 65 3a 20 31 30 30 25 3b 0d 0a 20 20 20 20 62 6f 72 64 65 ze:.100%;......borde
2020-11-18 11:29:13.606 (Broadlink) 72 3a 20 31 70 78 20 73 6f 6c 69 64 20 70 75 72 70 6c 65 3b r:.1px.solid.purple;
2020-11-18 11:29:13.606 (Broadlink) 0d 0a 7d 0d 0a 2e 75 69 2d 61 63 63 6f 72 64 69 6f 6e 20 2e ..}...ui-accordion..
2020-11-18 11:29:13.606 (Broadlink) 75 69 2d 61 63 63 6f 72 64 69 6f 6e 2d 63 6f 6e 74 65 6e 74 ui-accordion-content
2020-11-18 11:29:13.606 (Broadlink) 20 7b 0d 0a 20 20 20 20 70 61 64 64 69 6e 67 3a 20 31 65 6d .{......padding:.1em
2020-11-18 11:29:13.606 (Broadlink) 20 32 2e 32 65 6d 3b 0d 0a 20 20 20 20 62 6f 72 64 65 72 2d .2.2em;......border-
2020-11-18 11:29:13.606 (Broadlink) 74 6f 70 3a 20 30 3b 0d 0a 20 20 20 20 6f 76 65 72 66 6c 6f top:.0;......overflo
2020-11-18 11:29:13.606 (Broadlink) 77 3a 20 61 75 74 6f 3b 0d 0a 7d 0d 0a 74 61 62 6c 65 2c 20 w:.auto;..}..table,.
2020-11-18 11:29:13.606 (Broadlink) 74 68 2c 20 74 64 20 7b 0d 0a 20 20 20 20 62 6f 72 64 65 72 th,.td.{......border
2020-11-18 11:29:13.606 (Broadlink) 3a 20 31 70 78 20 73 6f 6c 69 64 20 77 68 69 74 65 3b 0d 0a :.1px.solid.white;..
2020-11-18 11:29:13.606 (Broadlink) 20 20 20 20 62 6f 72 64 65 72 2d 63 6f 6c 6c 61 70 73 65 3a ....border-collapse:
2020-11-18 11:29:13.606 (Broadlink) 20 63 6f 6c 6c 61 70 73 65 3b 0d 0a 7d 0d 0a 74 68 2c 20 74 .collapse;..}..th,.t
2020-11-18 11:29:13.606 (Broadlink) 64 20 7b 0d 0a 20 20 20 20 70 61 64 64 69 6e 67 3a 20 31 70 d.{......padding:.1p
2020-11-18 11:29:13.606 (Broadlink) 78 3b 0d 0a 7d 0d 0a 0d 0a 23 73 63 72 6f 6c 6c 5f 74 6f 5f x;..}....#scroll_to_
2020-11-18 11:29:13.606 (Broadlink) 74 6f 70 20 7b 0d 0a 20 20 70 6f 73 69 74 69 6f 6e 3a 20 66 top.{....position:.f
2020-11-18 11:29:13.606 (Broadlink) 69 78 65 64 3b 0d 0a 20 20 77 69 64 74 68 3a 20 33 35 70 78 ixed;....width:.35px
2020-11-18 11:29:13.606 (Broadlink) 3b 0d 0a 20 20 68 65 69 67 68 74 3a 20 33 35 70 78 3b 0d 0a ;....height:.35px;..
2020-11-18 11:29:13.606 (Broadlink) 20 20 62 6f 74 74 6f 6d 3a 20 35 30 70 78 3b 0d 0a 20 20 72 ..bottom:.50px;....r
2020-11-18 11:29:13.606 (Broadlink) 69 67 68 74 3a 20 35 30 70 78 3b 0d 0a 20 20 64 69 73 70 6c ight:.50px;....displ
2020-11-18 11:29:13.606 (Broadlink) 61 79 3a 20 6e 6f 6e 65 3b 0d 0a 7d 0d 0a 0d 0a .. .. .. .. ay:.none;..}....
2020-11-18 11:29:14.304 (Broadlink) Pushing 'ReadEvent' on to queue
2020-11-18 11:29:14.334 (Broadlink) Processing 'ReadEvent' message
2020-11-18 11:29:14.334 (Broadlink) Received 618 bytes of data
2020-11-18 11:29:14.334 (Broadlink) 47 45 54 20 2f 6c 6f 67 3f 6b 65 79 3d 32 32 37 32 38 37 38 GET./log?key=2272878
2020-11-18 11:29:14.334 (Broadlink) 36 36 39 37 33 35 20 48 54 54 50 2f 31 2e 31 0d 0a 48 6f 73 669735.HTTP/1.1..Hos
2020-11-18 11:29:14.334 (Broadlink) 74 3a 20 31 39 32 2e 31 36 38 2e 33 30 2e 33 30 3a 39 30 30 t:.192.168.30.30:900
2020-11-18 11:29:14.334 (Broadlink) 30 0d 0a 43 6f 6e 6e 65 63 74 69 6f 6e 3a 20 6b 65 65 70 2d 0..Connection:.keep-
2020-11-18 11:29:14.334 (Broadlink) 61 6c 69 76 65 0d 0a 55 70 67 72 61 64 65 2d 49 6e 73 65 63 alive..Upgrade-Insec
2020-11-18 11:29:14.334 (Broadlink) 75 72 65 2d 52 65 71 75 65 73 74 73 3a 20 31 0d 0a 55 73 65 ure-Requests:.1..Use
2020-11-18 11:29:14.334 (Broadlink) 72 2d 41 67 65 6e 74 3a 20 4d 6f 7a 69 6c 6c 61 2f 35 2e 30 r-Agent:.Mozilla/5.0
2020-11-18 11:29:14.334 (Broadlink) 20 28 4d 61 63 69 6e 74 6f 73 68 3b 20 49 6e 74 65 6c 20 4d .(Macintosh;.Intel.M
2020-11-18 11:29:14.334 (Broadlink) 61 63 20 4f 53 20 58 20 31 31 5f 30 5f 30 29 20 41 70 70 6c ac.OS.X.11_0_0).Appl
2020-11-18 11:29:14.334 (Broadlink) 65 57 65 62 4b 69 74 2f 35 33 37 2e 33 36 20 28 4b 48 54 4d eWebKit/537.36.(KHTM
2020-11-18 11:29:14.334 (Broadlink) 4c 2c 20 6c 69 6b 65 20 47 65 63 6b 6f 29 20 43 68 72 6f 6d L,.like.Gecko).Chrom
2020-11-18 11:29:14.334 (Broadlink) 65 2f 38 36 2e 30 2e 34 32 34 30 2e 31 39 38 20 53 61 66 61 e/86.0.4240.198.Safa
2020-11-18 11:29:14.334 (Broadlink) 72 69 2f 35 33 37 2e 33 36 0d 0a 41 63 63 65 70 74 3a 20 74 ri/537.36..Accept:.t
2020-11-18 11:29:14.334 (Broadlink) 65 78 74 2f 68 74 6d 6c 2c 61 70 70 6c 69 63 61 74 69 6f 6e ext/html,application
2020-11-18 11:29:14.334 (Broadlink) 2f 78 68 74 6d 6c 2b 78 6d 6c 2c 61 70 70 6c 69 63 61 74 69 /xhtml+xml,applicati
2020-11-18 11:29:14.334 (Broadlink) 6f 6e 2f 78 6d 6c 3b 71 3d 30 2e 39 2c 69 6d 61 67 65 2f 61 on/xml;q=0.9,image/a
2020-11-18 11:29:14.334 (Broadlink) 76 69 66 2c 69 6d 61 67 65 2f 77 65 62 70 2c 69 6d 61 67 65 vif,image/webp,image
2020-11-18 11:29:14.334 (Broadlink) 2f 61 70 6e 67 2c 2a 2f 2a 3b 71 3d 30 2e 38 2c 61 70 70 6c /apng,*/*;q=0.8,appl
2020-11-18 11:29:14.334 (Broadlink) 69 63 61 74 69 6f 6e 2f 73 69 67 6e 65 64 2d 65 78 63 68 61 ication/signed-excha
2020-11-18 11:29:14.334 (Broadlink) 6e 67 65 3b 76 3d 62 33 3b 71 3d 30 2e 39 0d 0a 52 65 66 65 nge;v=b3;q=0.9..Refe
2020-11-18 11:29:14.334 (Broadlink) 72 65 72 3a 20 68 74 74 70 3a 2f 2f 31 39 32 2e 31 36 38 2e rer:.http://192.168.
2020-11-18 11:29:14.334 (Broadlink) 33 30 2e 33 30 3a 38 30 38 32 2f 0d 0a 41 63 63 65 70 74 2d 30.30:8082/..Accept-
2020-11-18 11:29:14.334 (Broadlink) 45 6e 63 6f 64 69 6e 67 3a 20 67 7a 69 70 2c 20 64 65 66 6c Encoding:.gzip,.defl
2020-11-18 11:29:14.334 (Broadlink) 61 74 65 0d 0a 41 63 63 65 70 74 2d 4c 61 6e 67 75 61 67 65 ate..Accept-Language
2020-11-18 11:29:14.334 (Broadlink) 3a 20 65 6e 2d 55 53 2c 65 6e 3b 71 3d 30 2e 39 2c 69 74 3b :.en-US,en;q=0.9,it;
2020-11-18 11:29:14.334 (Broadlink) 71 3d 30 2e 38 0d 0a 43 6f 6f 6b 69 65 3a 20 44 4d 5a 53 49 q=0.8..Cookie:.DMZSI
2020-11-18 11:29:14.334 (Broadlink) 44 3d 32 36 61 34 65 35 62 63 38 33 39 30 39 32 63 35 31 31 D=26a4e5bc839092c511
2020-11-18 11:29:14.334 (Broadlink) 64 31 31 62 62 39 61 61 61 39 33 36 34 65 5f 4e 44 51 31 4d d11bb9aaa9364e_NDQ1M
2020-11-18 11:29:14.334 (Broadlink) 44 52 68 4d 6a 6b 74 59 57 55 33 59 69 30 30 4e 47 45 30 4c DRhMjktYWU3Yi00NGE0L
2020-11-18 11:29:14.334 (Broadlink) 54 67 34 5a 44 63 74 4f 47 51 7a 4d 44 5a 6d 5a 6a 55 77 4f Tg4ZDctOGQzMDZmZjUwO
2020-11-18 11:29:14.334 (Broadlink) 57 56 69 2e 31 36 30 35 36 39 35 38 37 37 0d 0a 0d 0a .. .. WVi.1605695877....
2020-11-18 11:29:14.334 (Broadlink) Pushing 'onMessageCallback' on to queue
2020-11-18 11:29:14.334 (Broadlink) Processing 'onMessageCallback' message
2020-11-18 11:29:14.334 (Broadlink) Calling message handler 'onMessage'.
2020-11-18 11:29:14.334 (Broadlink) onMessage called for connection: 192.168.20.110:53258
2020-11-18 11:29:14.334 (Broadlink) Request from : 192.168.20.110:53258 to : /log?key=2272878669735

Code: Select all

--------------------------------------Start-------------------------------------
STEP ==: learnrf --- 2020-11-18 11:28:31
learning command
Connected to Broadlink device: 192.168.30.121 0x61a2 RM4
RF not true, sweep necessary
Error : None None None
---------------------------------------END--------------------------------------
zak45
Posts: 952
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Python Plugin : Broadlink

Post by zak45 »

Can you provide the same log, but after a sweep ?
and also a screen shot of your device configuration
e.g.
Capture.PNG
Capture.PNG (50.75 KiB) Viewed 1572 times
chrispazz
Posts: 81
Joined: Friday 08 July 2016 10:38
Target OS: -
Domoticz version:
Contact:

Re: Python Plugin : Broadlink

Post by chrispazz »

Sure! Here it is:

Code: Select all

2020-11-18 12:12:00.173 Status: User: admin initiated a switch command (411/Broadlink - RF Commands/Set Level)
2020-11-18 12:12:14.114 (Broadlink) 41 63 63 65 70 74 3a 20 43 6f 6e 74 65 6e 74 2d 54 79 70 65 Accept:.Content-Type
2020-11-18 12:12:14.114 (Broadlink) 3a 20 74 65 78 74 2f 68 74 6d 6c 3b 20 63 68 61 72 73 65 74 :.text/html;.charset
2020-11-18 12:12:14.115 (Broadlink) 3d 55 54 46 2d 38 0d 0a 41 63 63 65 70 74 2d 45 6e 63 6f 64 =UTF-8..Accept-Encod
2020-11-18 12:12:14.115 (Broadlink) 69 6e 67 3a 20 67 7a 69 70 2c 20 64 65 66 6c 61 74 65 0d 0a ing:.gzip,.deflate..
2020-11-18 12:12:14.115 (Broadlink) 41 63 63 65 73 73 2d 43 6f 6e 74 72 6f 6c 2d 41 6c 6c 6f 77 Access-Control-Allow
2020-11-18 12:12:14.115 (Broadlink) 2d 4f 72 69 67 69 6e 3a 20 2a 0d 0a 43 61 63 68 65 2d 43 6f -Origin:.*..Cache-Co
2020-11-18 12:12:14.115 (Broadlink) 6e 74 72 6f 6c 3a 20 6e 6f 2d 63 61 63 68 65 2c 20 6e 6f 2d ntrol:.no-cache,.no-
2020-11-18 12:12:14.115 (Broadlink) 73 74 6f 72 65 2c 20 6d 75 73 74 2d 72 65 76 61 6c 69 64 61 store,.must-revalida
2020-11-18 12:12:14.115 (Broadlink) 74 65 0d 0a 50 72 61 67 6d 61 3a 20 6e 6f 2d 63 61 63 68 65 te..Pragma:.no-cache
2020-11-18 12:12:14.115 (Broadlink) 0d 0a 45 78 70 69 72 65 73 3a 20 30 0d 0a 43 6f 6e 74 65 6e ..Expires:.0..Conten
2020-11-18 12:12:14.115 (Broadlink) 74 2d 4c 65 6e 67 74 68 3a 20 36 37 31 0d 0a 0d 0a 0a 20 20 t-Length:.671.......
2020-11-18 12:12:14.115 (Broadlink) 20 20 20 20 20 20 20 20 20 20 3c 21 44 4f 43 54 59 50 45 20 .....................................................
2020-11-18 12:12:14.115 (Broadlink) 3c 6d 65 74 61 20 63 68 61 72 73 65 74 3d 22 55 54 46 2d 38 .................
2020-11-18 12:12:14.115 (Broadlink) 3c 6c 69 6e 6b 20 72 65 6c 3d 22 69 63 6f 6e 22 20 68 72 65 ........
2020-11-18 12:12:14.115 (Broadlink) 20 20 20 20 20 3c 2f 68 65 61 64 3e 0a 20 20 20 20 20 20 20 .............
2020-11-18 12:12:14.115 (Broadlink) 20 20 20 20 20 3c 62 6f 64 79 3e 0a 20 20 20 20 20 20 20 20 ..............
2020-11-18 12:12:14.115 (Broadlink) 20 20 20 20 20 20 20 20 3c 64 69 76 20 73 74 79 6c 65 3d 22 ........
2020-11-18 12:12:14.115 (Broadlink) 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ....................
2020-11-18 12:12:14.115 (Broadlink) 20 3c 68 33 3e 3c 70 20 73 74 79 6c 65 3d 22 62 61 63 6b 67 .

Broadlink.response. 2020-11-18 12:12:14.115 (Broadlink) 4f 4b 21 3c 2f 70 3e 20 3a 2d 29 0a 20 20 20 20 20 20 20 20 OK!
.:-)......... 2020-11-18 12:12:14.115 (Broadlink) 20 20 20 20 20 20 20 20 20 20 20 20 3c 2f 68 33 3e 0a 20 20 ............
... 2020-11-18 12:12:14.115 (Broadlink) 20 20 20 20 20 20 20 20 20 20 20 20 20 20 3c 2f 64 69 76 3e .............. 2020-11-18 12:12:14.115 (Broadlink) 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 3c 73 63 ................................ 2020-11-18 12:12:14.115 (Broadlink) 20 20 20 20 20 20 69 66 20 28 20 77 69 6e 64 6f 77 2e 68 69 ......if.(.window.hi 2020-11-18 12:12:14.115 (Broadlink) 73 74 6f 72 79 2e 72 65 70 6c 61 63 65 53 74 61 74 65 20 29 story.replaceState.) 2020-11-18 12:12:14.115 (Broadlink) 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .{.................. 2020-11-18 12:12:14.115 (Broadlink) 20 20 20 20 20 20 20 77 69 6e 64 6f 77 2e 68 69 73 74 6f 72 .......window.histor 2020-11-18 12:12:14.115 (Broadlink) 79 2e 72 65 70 6c 61 63 65 53 74 61 74 65 28 20 6e 75 6c 6c y.replaceState(.null 2020-11-18 12:12:14.115 (Broadlink) 2c 20 6e 75 6c 6c 2c 20 77 69 6e 64 6f 77 2e 6c 6f 63 61 74 ,.null,.window.locat 2020-11-18 12:12:14.115 (Broadlink) 69 6f 6e 2e 68 72 65 66 20 29 3b 0a 20 20 20 20 20 20 20 20 ion.href.);......... 2020-11-18 12:12:14.115 (Broadlink) 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 20 20 ................}... 2020-11-18 12:12:14.115 (Broadlink) 20 20 20 20 20 20 20 20 20 20 20 20 20 20 3c 2f 73 63 72 69 ............................................ 2020-11-18 12:12:14.115 (Broadlink) 20 20 20 20 20 20 20 20 3c 2f 68 74 6d 6c 3e 0a 20 20 20 20 ............. 2020-11-18 12:12:14.115 (Broadlink) 20 20 20 20 20 20 20 20 .. .. .. .. .. .. .. .. .. .. .. .. ........ 2020-11-18 12:12:14.126 (Broadlink) Queued asynchronous read aborted (192.168.30.30:54114), [2] End of file. 2020-11-18 12:12:14.126 (Broadlink) Pushing 'DisconnectedEvent' on to queue 2020-11-18 12:12:14.126 (Broadlink) Processing 'DisconnectedEvent' message 2020-11-18 12:12:14.126 (Broadlink) Disconnect event received for '192.168.30.30:54114'. 2020-11-18 12:12:14.126 (Broadlink) Pushing 'onDisconnectCallback' on to queue 2020-11-18 12:12:14.126 (Broadlink) Processing 'onDisconnectCallback' message 2020-11-18 12:12:14.127 (Broadlink) Calling message handler 'onDisconnect'. 2020-11-18 12:12:14.127 (Broadlink) onDisconnect called for connection 192.168.30.30:54114 2020-11-18 12:12:14.127 (Broadlink) Server Connections: 2020-11-18 12:12:14.127 (Broadlink) --> 192.168.20.110:55340'. 2020-11-18 12:12:14.127 (Broadlink) --> 192.168.20.110:55341'. 2020-11-18 12:12:14.127 (Broadlink) --> 192.168.20.110:55342'. 2020-11-18 12:12:14.127 (Broadlink) --> 192.168.20.110:55343'. 2020-11-18 12:12:14.127 (Broadlink) --> 192.168.20.110:55344'. 2020-11-18 12:12:14.127 (Broadlink) --> 192.168.20.110:55345'. 2020-11-18 12:12:14.127 (Broadlink) --> 192.168.30.30:54114'. 2020-11-18 12:12:18.163 (Broadlink) Pushing 'ReadEvent' on to queue 2020-11-18 12:12:18.194 (Broadlink) Processing 'ReadEvent' message 2020-11-18 12:12:18.194 (Broadlink) Received 618 bytes of data 2020-11-18 12:12:18.194 (Broadlink) 47 45 54 20 2f 6c 6f 67 3f 6b 65 79 3d 32 32 37 32 38 37 38 GET./log?key=2272878 2020-11-18 12:12:18.194 (Broadlink) 36 36 39 37 33 35 20 48 54 54 50 2f 31 2e 31 0d 0a 48 6f 73 669735.HTTP/1.1..Hos 2020-11-18 12:12:18.194 (Broadlink) 74 3a 20 31 39 32 2e 31 36 38 2e 33 30 2e 33 30 3a 39 30 30 t:.192.168.30.30:900 2020-11-18 12:12:18.194 (Broadlink) 30 0d 0a 43 6f 6e 6e 65 63 74 69 6f 6e 3a 20 6b 65 65 70 2d 0..Connection:.keep- 2020-11-18 12:12:18.194 (Broadlink) 61 6c 69 76 65 0d 0a 55 70 67 72 61 64 65 2d 49 6e 73 65 63 alive..Upgrade-Insec 2020-11-18 12:12:18.194 (Broadlink) 75 72 65 2d 52 65 71 75 65 73 74 73 3a 20 31 0d 0a 55 73 65 ure-Requests:.1..Use 2020-11-18 12:12:18.194 (Broadlink) 72 2d 41 67 65 6e 74 3a 20 4d 6f 7a 69 6c 6c 61 2f 35 2e 30 r-Agent:.Mozilla/5.0 2020-11-18 12:12:18.194 (Broadlink) 20 28 4d 61 63 69 6e 74 6f 73 68 3b 20 49 6e 74 65 6c 20 4d .(Macintosh;.Intel.M 2020-11-18 12:12:18.194 (Broadlink) 61 63 20 4f 53 20 58 20 31 31 5f 30 5f 30 29 20 41 70 70 6c ac.OS.X.11_0_0).Appl 2020-11-18 12:12:18.194 (Broadlink) 65 57 65 62 4b 69 74 2f 35 33 37 2e 33 36 20 28 4b 48 54 4d eWebKit/537.36.(KHTM 2020-11-18 12:12:18.194 (Broadlink) 4c 2c 20 6c 69 6b 65 20 47 65 63 6b 6f 29 20 43 68 72 6f 6d L,.like.Gecko).Chrom 2020-11-18 12:12:18.194 (Broadlink) 65 2f 38 36 2e 30 2e 34 32 34 30 2e 31 39 38 20 53 61 66 61 e/86.0.4240.198.Safa 2020-11-18 12:12:18.194 (Broadlink) 72 69 2f 35 33 37 2e 33 36 0d 0a 41 63 63 65 70 74 3a 20 74 ri/537.36..Accept:.t 2020-11-18 12:12:18.194 (Broadlink) 65 78 74 2f 68 74 6d 6c 2c 61 70 70 6c 69 63 61 74 69 6f 6e ext/html,application 2020-11-18 12:12:18.194 (Broadlink) 2f 78 68 74 6d 6c 2b 78 6d 6c 2c 61 70 70 6c 69 63 61 74 69 /xhtml+xml,applicati 2020-11-18 12:12:18.194 (Broadlink) 6f 6e 2f 78 6d 6c 3b 71 3d 30 2e 39 2c 69 6d 61 67 65 2f 61 on/xml;q=0.9,image/a 2020-11-18 12:12:18.194 (Broadlink) 76 69 66 2c 69 6d 61 67 65 2f 77 65 62 70 2c 69 6d 61 67 65 vif,image/webp,image 2020-11-18 12:12:18.194 (Broadlink) 2f 61 70 6e 67 2c 2a 2f 2a 3b 71 3d 30 2e 38 2c 61 70 70 6c /apng,*/*;q=0.8,appl 2020-11-18 12:12:18.194 (Broadlink) 69 63 61 74 69 6f 6e 2f 73 69 67 6e 65 64 2d 65 78 63 68 61 ication/signed-excha 2020-11-18 12:12:18.194 (Broadlink) 6e 67 65 3b 76 3d 62 33 3b 71 3d 30 2e 39 0d 0a 52 65 66 65 nge;v=b3;q=0.9..Refe 2020-11-18 12:12:18.194 (Broadlink) 72 65 72 3a 20 68 74 74 70 3a 2f 2f 31 39 32 2e 31 36 38 2e rer:.http://192.168. 2020-11-18 12:12:18.194 (Broadlink) 33 30 2e 33 30 3a 38 30 38 32 2f 0d 0a 41 63 63 65 70 74 2d 30.30:8082/..Accept- 2020-11-18 12:12:18.194 (Broadlink) 45 6e 63 6f 64 69 6e 67 3a 20 67 7a 69 70 2c 20 64 65 66 6c Encoding:.gzip,.defl 2020-11-18 12:12:18.194 (Broadlink) 61 74 65 0d 0a 41 63 63 65 70 74 2d 4c 61 6e 67 75 61 67 65 ate..Accept-Language 2020-11-18 12:12:18.194 (Broadlink) 3a 20 65 6e 2d 55 53 2c 65 6e 3b 71 3d 30 2e 39 2c 69 74 3b :.en-US,en;q=0.9,it; 2020-11-18 12:12:18.194 (Broadlink) 71 3d 30 2e 38 0d 0a 43 6f 6f 6b 69 65 3a 20 44 4d 5a 53 49 q=0.8..Cookie:.DMZSI 2020-11-18 12:12:18.194 (Broadlink) 44 3d 36 38 62 62 65 62 39 33 39 35 35 33 64 36 31 39 30 32 D=68bbeb939553d61902 2020-11-18 12:12:18.194 (Broadlink) 33 61 36 62 32 65 36 36 38 66 62 33 61 33 5f 4e 54 42 6c 59 3a6b2e668fb3a3_NTBlY 2020-11-18 12:12:18.194 (Broadlink) 32 4e 6a 4e 44 6b 74 4d 32 55 30 4e 69 30 30 59 6a 41 32 4c 2NjNDktM2U0Ni00YjA2L 2020-11-18 12:12:18.194 (Broadlink) 57 49 30 4d 54 55 74 4d 7a 59 32 4e 47 49 34 4d 6a 51 33 4d WI0MTUtMzY2NGI4MjQ3M 2020-11-18 12:12:18.194 (Broadlink) 6a 55 32 2e 31 36 30 35 36 39 38 35 31 32 0d 0a 0d 0a .. .. jU2.1605698512.... 2020-11-18 12:12:18.195 (Broadlink) Pushing 'onMessageCallback' on to queue 2020-11-18 12:12:18.195 (Broadlink) Processing 'onMessageCallback' message 2020-11-18 12:12:18.195 (Broadlink) Calling message handler 'onMessage'. 2020-11-18 12:12:18.195 (Broadlink) onMessage called for connection: 192.168.20.110:55340 2020-11-18 12:12:18.195 (Broadlink) Request from : 192.168.20.110:55340 to : /log?key=2272878669735
Screenshot 2020-11-18 at 12.16.50.jpg
Screenshot 2020-11-18 at 12.16.50.jpg (201.68 KiB) Viewed 1571 times
zak45
Posts: 952
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Python Plugin : Broadlink

Post by zak45 »

thanks.
missing the content of the file in the log folder.
chrispazz
Posts: 81
Joined: Friday 08 July 2016 10:38
Target OS: -
Domoticz version:
Contact:

Re: Python Plugin : Broadlink

Post by chrispazz »

Code: Select all

--------------------------------------Start-------------------------------------
STEP ==: sweep --- 2020-11-18 12:12:02
Connected to Broadlink device: 192.168.30.121 0x61a2 RM4
sweeping...; LED should be RED
check frequency... 1
check frequency... 2
check frequency... 3
check frequency... 4
check frequency... 5
check frequency... 6
frequency found! check LED, should be off
---------------------------------------END--------------------------------------
:D
zak45
Posts: 952
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Python Plugin : Broadlink

Post by zak45 »

Thanks.. this show that sweep process is OK.
Now, maybe you face this issue:
https://github.com/mjg59/python-broadlink/issues/458

Made a test like this :
reboot your Broadlink device (power Off/On)
do the sweep, check in the log file if ok.
do the learn as soon as the sweep is ok and let me know the log file content.
chrispazz
Posts: 81
Joined: Friday 08 July 2016 10:38
Target OS: -
Domoticz version:
Contact:

Re: Python Plugin : Broadlink

Post by chrispazz »

This is the plugin log:

Code: Select all

2020-11-18 13:04:14.287 Status: User: admin initiated a switch command (411/Broadlink - RF Commands/Set Level)
2020-11-18 13:04:28.944 Status: User: admin initiated a switch command (411/Broadlink - RF Commands/Set Level)
2020-11-18 13:04:34.554 Error: (Broadlink) ERR : learnrf--RF not true, sweep necessary--21
2020-11-18 13:04:39.807 (Broadlink) 41 63 63 65 70 74 3a 20 43 6f 6e 74 65 6e 74 2d 54 79 70 65 Accept:.Content-Type
2020-11-18 13:04:39.807 (Broadlink) 3a 20 74 65 78 74 2f 68 74 6d 6c 3b 20 63 68 61 72 73 65 74 :.text/html;.charset
2020-11-18 13:04:39.807 (Broadlink) 3d 55 54 46 2d 38 0d 0a 41 63 63 65 70 74 2d 45 6e 63 6f 64 =UTF-8..Accept-Encod
2020-11-18 13:04:39.807 (Broadlink) 69 6e 67 3a 20 67 7a 69 70 2c 20 64 65 66 6c 61 74 65 0d 0a ing:.gzip,.deflate..
2020-11-18 13:04:39.807 (Broadlink) 41 63 63 65 73 73 2d 43 6f 6e 74 72 6f 6c 2d 41 6c 6c 6f 77 Access-Control-Allow
2020-11-18 13:04:39.807 (Broadlink) 2d 4f 72 69 67 69 6e 3a 20 2a 0d 0a 43 61 63 68 65 2d 43 6f -Origin:.*..Cache-Co
2020-11-18 13:04:39.807 (Broadlink) 6e 74 72 6f 6c 3a 20 6e 6f 2d 63 61 63 68 65 2c 20 6e 6f 2d ntrol:.no-cache,.no-
2020-11-18 13:04:39.807 (Broadlink) 73 74 6f 72 65 2c 20 6d 75 73 74 2d 72 65 76 61 6c 69 64 61 store,.must-revalida
2020-11-18 13:04:39.807 (Broadlink) 74 65 0d 0a 50 72 61 67 6d 61 3a 20 6e 6f 2d 63 61 63 68 65 te..Pragma:.no-cache
2020-11-18 13:04:39.807 (Broadlink) 0d 0a 45 78 70 69 72 65 73 3a 20 30 0d 0a 43 6f 6e 74 65 6e ..Expires:.0..Conten
2020-11-18 13:04:39.807 (Broadlink) 74 2d 4c 65 6e 67 74 68 3a 20 36 37 31 0d 0a 0d 0a 0a 20 20 t-Length:.671.......
2020-11-18 13:04:39.807 (Broadlink) 20 20 20 20 20 20 20 20 20 20 3c 21 44 4f 43 54 59 50 45 20 .....................................................
2020-11-18 13:04:39.807 (Broadlink) 3c 6d 65 74 61 20 63 68 61 72 73 65 74 3d 22 55 54 46 2d 38 .................
2020-11-18 13:04:39.807 (Broadlink) 3c 6c 69 6e 6b 20 72 65 6c 3d 22 69 63 6f 6e 22 20 68 72 65 ........
2020-11-18 13:04:39.807 (Broadlink) 20 20 20 20 20 3c 2f 68 65 61 64 3e 0a 20 20 20 20 20 20 20 .............
2020-11-18 13:04:39.807 (Broadlink) 20 20 20 20 20 3c 62 6f 64 79 3e 0a 20 20 20 20 20 20 20 20 ..............
2020-11-18 13:04:39.807 (Broadlink) 20 20 20 20 20 20 20 20 3c 64 69 76 20 73 74 79 6c 65 3d 22 ........
2020-11-18 13:04:39.807 (Broadlink) 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ....................
2020-11-18 13:04:39.807 (Broadlink) 20 3c 68 33 3e 3c 70 20 73 74 79 6c 65 3d 22 62 61 63 6b 67 .

Broadlink.response. 2020-11-18 13:04:39.807 (Broadlink) 4f 4b 21 3c 2f 70 3e 20 3a 2d 29 0a 20 20 20 20 20 20 20 20 OK!
.:-)......... 2020-11-18 13:04:39.807 (Broadlink) 20 20 20 20 20 20 20 20 20 20 20 20 3c 2f 68 33 3e 0a 20 20 ............
... 2020-11-18 13:04:39.807 (Broadlink) 20 20 20 20 20 20 20 20 20 20 20 20 20 20 3c 2f 64 69 76 3e .............. 2020-11-18 13:04:39.807 (Broadlink) 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 3c 73 63 ................................ 2020-11-18 13:04:39.807 (Broadlink) 20 20 20 20 20 20 69 66 20 28 20 77 69 6e 64 6f 77 2e 68 69 ......if.(.window.hi 2020-11-18 13:04:39.807 (Broadlink) 73 74 6f 72 79 2e 72 65 70 6c 61 63 65 53 74 61 74 65 20 29 story.replaceState.) 2020-11-18 13:04:39.807 (Broadlink) 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .{.................. 2020-11-18 13:04:39.807 (Broadlink) 20 20 20 20 20 20 20 77 69 6e 64 6f 77 2e 68 69 73 74 6f 72 .......window.histor 2020-11-18 13:04:39.807 (Broadlink) 79 2e 72 65 70 6c 61 63 65 53 74 61 74 65 28 20 6e 75 6c 6c y.replaceState(.null 2020-11-18 13:04:39.807 (Broadlink) 2c 20 6e 75 6c 6c 2c 20 77 69 6e 64 6f 77 2e 6c 6f 63 61 74 ,.null,.window.locat 2020-11-18 13:04:39.807 (Broadlink) 69 6f 6e 2e 68 72 65 66 20 29 3b 0a 20 20 20 20 20 20 20 20 ion.href.);......... 2020-11-18 13:04:39.807 (Broadlink) 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 20 20 ................}... 2020-11-18 13:04:39.807 (Broadlink) 20 20 20 20 20 20 20 20 20 20 20 20 20 20 3c 2f 73 63 72 69 ............................................ 2020-11-18 13:04:39.807 (Broadlink) 20 20 20 20 20 20 20 20 3c 2f 68 74 6d 6c 3e 0a 20 20 20 20 ............. 2020-11-18 13:04:39.807 (Broadlink) 20 20 20 20 20 20 20 20 .. .. .. .. .. .. .. .. .. .. .. .. ........ 2020-11-18 13:04:39.814 (Broadlink) Queued asynchronous read aborted (192.168.30.30:57694), [2] End of file. 2020-11-18 13:04:39.814 (Broadlink) Pushing 'DisconnectedEvent' on to queue 2020-11-18 13:04:39.814 (Broadlink) Processing 'DisconnectedEvent' message 2020-11-18 13:04:39.814 (Broadlink) Disconnect event received for '192.168.30.30:57694'. 2020-11-18 13:04:39.814 (Broadlink) Pushing 'onDisconnectCallback' on to queue 2020-11-18 13:04:39.814 (Broadlink) Processing 'onDisconnectCallback' message 2020-11-18 13:04:39.814 (Broadlink) Calling message handler 'onDisconnect'. 2020-11-18 13:04:39.814 (Broadlink) onDisconnect called for connection 192.168.30.30:57694 2020-11-18 13:04:39.814 (Broadlink) Server Connections: 2020-11-18 13:04:39.814 (Broadlink) --> 192.168.20.110:56557'. 2020-11-18 13:04:39.814 (Broadlink) --> 192.168.20.110:56558'. 2020-11-18 13:04:39.814 (Broadlink) --> 192.168.20.110:56559'. 2020-11-18 13:04:39.814 (Broadlink) --> 192.168.20.110:56560'. 2020-11-18 13:04:39.814 (Broadlink) --> 192.168.20.110:56561'. 2020-11-18 13:04:39.814 (Broadlink) --> 192.168.20.110:56562'. 2020-11-18 13:04:39.814 (Broadlink) --> 192.168.30.30:57694'. 2020-11-18 13:04:45.627 (Broadlink) Pushing 'ReadEvent' on to queue 2020-11-18 13:04:45.650 (Broadlink) Processing 'ReadEvent' message 2020-11-18 13:04:45.650 (Broadlink) Received 618 bytes of data 2020-11-18 13:04:45.650 (Broadlink) 47 45 54 20 2f 6c 6f 67 3f 6b 65 79 3d 32 32 37 32 38 37 38 GET./log?key=2272878 2020-11-18 13:04:45.650 (Broadlink) 36 36 39 37 33 35 20 48 54 54 50 2f 31 2e 31 0d 0a 48 6f 73 669735.HTTP/1.1..Hos 2020-11-18 13:04:45.650 (Broadlink) 74 3a 20 31 39 32 2e 31 36 38 2e 33 30 2e 33 30 3a 39 30 30 t:.192.168.30.30:900 2020-11-18 13:04:45.650 (Broadlink) 30 0d 0a 43 6f 6e 6e 65 63 74 69 6f 6e 3a 20 6b 65 65 70 2d 0..Connection:.keep- 2020-11-18 13:04:45.650 (Broadlink) 61 6c 69 76 65 0d 0a 55 70 67 72 61 64 65 2d 49 6e 73 65 63 alive..Upgrade-Insec 2020-11-18 13:04:45.650 (Broadlink) 75 72 65 2d 52 65 71 75 65 73 74 73 3a 20 31 0d 0a 55 73 65 ure-Requests:.1..Use 2020-11-18 13:04:45.650 (Broadlink) 72 2d 41 67 65 6e 74 3a 20 4d 6f 7a 69 6c 6c 61 2f 35 2e 30 r-Agent:.Mozilla/5.0 2020-11-18 13:04:45.650 (Broadlink) 20 28 4d 61 63 69 6e 74 6f 73 68 3b 20 49 6e 74 65 6c 20 4d .(Macintosh;.Intel.M 2020-11-18 13:04:45.650 (Broadlink) 61 63 20 4f 53 20 58 20 31 31 5f 30 5f 30 29 20 41 70 70 6c ac.OS.X.11_0_0).Appl 2020-11-18 13:04:45.650 (Broadlink) 65 57 65 62 4b 69 74 2f 35 33 37 2e 33 36 20 28 4b 48 54 4d eWebKit/537.36.(KHTM 2020-11-18 13:04:45.650 (Broadlink) 4c 2c 20 6c 69 6b 65 20 47 65 63 6b 6f 29 20 43 68 72 6f 6d L,.like.Gecko).Chrom 2020-11-18 13:04:45.650 (Broadlink) 65 2f 38 36 2e 30 2e 34 32 34 30 2e 31 39 38 20 53 61 66 61 e/86.0.4240.198.Safa 2020-11-18 13:04:45.650 (Broadlink) 72 69 2f 35 33 37 2e 33 36 0d 0a 41 63 63 65 70 74 3a 20 74 ri/537.36..Accept:.t 2020-11-18 13:04:45.650 (Broadlink) 65 78 74 2f 68 74 6d 6c 2c 61 70 70 6c 69 63 61 74 69 6f 6e ext/html,application 2020-11-18 13:04:45.650 (Broadlink) 2f 78 68 74 6d 6c 2b 78 6d 6c 2c 61 70 70 6c 69 63 61 74 69 /xhtml+xml,applicati 2020-11-18 13:04:45.650 (Broadlink) 6f 6e 2f 78 6d 6c 3b 71 3d 30 2e 39 2c 69 6d 61 67 65 2f 61 on/xml;q=0.9,image/a 2020-11-18 13:04:45.650 (Broadlink) 76 69 66 2c 69 6d 61 67 65 2f 77 65 62 70 2c 69 6d 61 67 65 vif,image/webp,image 2020-11-18 13:04:45.650 (Broadlink) 2f 61 70 6e 67 2c 2a 2f 2a 3b 71 3d 30 2e 38 2c 61 70 70 6c /apng,*/*;q=0.8,appl 2020-11-18 13:04:45.650 (Broadlink) 69 63 61 74 69 6f 6e 2f 73 69 67 6e 65 64 2d 65 78 63 68 61 ication/signed-excha 2020-11-18 13:04:45.650 (Broadlink) 6e 67 65 3b 76 3d 62 33 3b 71 3d 30 2e 39 0d 0a 52 65 66 65 nge;v=b3;q=0.9..Refe 2020-11-18 13:04:45.650 (Broadlink) 72 65 72 3a 20 68 74 74 70 3a 2f 2f 31 39 32 2e 31 36 38 2e rer:.http://192.168. 2020-11-18 13:04:45.650 (Broadlink) 33 30 2e 33 30 3a 38 30 38 32 2f 0d 0a 41 63 63 65 70 74 2d 30.30:8082/..Accept- 2020-11-18 13:04:45.650 (Broadlink) 45 6e 63 6f 64 69 6e 67 3a 20 67 7a 69 70 2c 20 64 65 66 6c Encoding:.gzip,.defl 2020-11-18 13:04:45.650 (Broadlink) 61 74 65 0d 0a 41 63 63 65 70 74 2d 4c 61 6e 67 75 61 67 65 ate..Accept-Language 2020-11-18 13:04:45.650 (Broadlink) 3a 20 65 6e 2d 55 53 2c 65 6e 3b 71 3d 30 2e 39 2c 69 74 3b :.en-US,en;q=0.9,it; 2020-11-18 13:04:45.650 (Broadlink) 71 3d 30 2e 38 0d 0a 43 6f 6f 6b 69 65 3a 20 44 4d 5a 53 49 q=0.8..Cookie:.DMZSI 2020-11-18 13:04:45.650 (Broadlink) 44 3d 35 63 38 36 38 32 66 37 64 39 38 61 62 31 65 65 63 65 D=5c8682f7d98ab1eece 2020-11-18 13:04:45.650 (Broadlink) 38 61 37 66 30 66 34 66 61 31 35 37 64 31 5f 59 7a 59 78 59 8a7f0f4fa157d1_YzYxY 2020-11-18 13:04:45.651 (Broadlink) 57 56 6b 4d 6d 45 74 4f 57 52 6b 4d 79 30 30 4d 44 67 33 4c WVkMmEtOWRkMy00MDg3L 2020-11-18 13:04:45.651 (Broadlink) 54 6c 6c 59 6a 41 74 4e 7a 52 68 59 7a 64 68 4d 47 5a 6a 59 TllYjAtNzRhYzdhMGZjY 2020-11-18 13:04:45.651 (Broadlink) 7a 63 32 2e 31 36 30 35 37 30 31 35 39 37 0d 0a 0d 0a .. .. zc2.1605701597.... 2020-11-18 13:04:45.651 (Broadlink) Pushing 'onMessageCallback' on to queue 2020-11-18 13:04:45.651 (Broadlink) Processing 'onMessageCallback' message 2020-11-18 13:04:45.651 (Broadlink) Calling message handler 'onMessage'. 2020-11-18 13:04:45.651 (Broadlink) onMessage called for connection: 192.168.20.110:56557 2020-11-18 13:04:45.651 (Broadlink) Request from : 192.168.20.110:56557 to : /log?key=2272878669735

This is the log:

Code: Select all

--------------------------------------Start-------------------------------------
STEP ==: learnrf --- 2020-11-18 13:04:34
learning command
Connected to Broadlink device: 192.168.30.121 0x61a2 RM4
RF not true, sweep necessary
Error : None None None
---------------------------------------END--------------------------------------
Sweep was ok in the log.
It seems the same problem....
zak45
Posts: 952
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Python Plugin : Broadlink

Post by zak45 »

So... strange.

You said :
using CLI it's OK
using plugin it's KO

the plugin use the same process as the CLI.
The only difference as see is that the plugin:
for the sweep, initiate a first connection.
for the learn, initiate a second connection.

For the moment, do not have any solution.
Will check the Broadlink git for time to time to see how it's doing.

but you have a workaround for your problem, not so sexy but should work:

do a CLI learn and save the result in file.
in plugin:
do an IR learn (what else), copy and paste the RF code on it.
chrispazz
Posts: 81
Joined: Friday 08 July 2016 10:38
Target OS: -
Domoticz version:
Contact:

Re: Python Plugin : Broadlink

Post by chrispazz »

Great. I am trying
Which part of the CLI output should I save? First one or Base64?

Ty
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest