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 »

vodor wrote: Thursday 09 July 2020 20:08 Though I am able to communicate with my device now I am unable to send commands to it. I imported some codes for my Samsung air conditioner but when I try and send commands I still seem to get device storage full error.
Any pointers?

2020-07-09 19:58:38.423 Error: (BroadLink) Traceback (most recent call last):
2020-07-09 19:58:38.423 File "/home/pi/domoticz/plugins/broadlink/plugin.py", line 1629, in send
2020-07-09 19:58:38.423 DEVICE.send_data(SENDCOMMAND)
2020-07-09 19:58:38.423 File "/usr/local/lib/python3.7/dist-packages/broadlink/__init__.py", line 621, in send_data
2020-07-09 19:58:38.423 check_error(response[0x22:0x24])
2020-07-09 19:58:38.423 File "/usr/local/lib/python3.7/dist-packages/broadlink/exceptions.py", line 97, in check_error
2020-07-09 19:58:38.423 raise exception(error_code)
2020-07-09 19:58:38.423 broadlink.exceptions.StorageError: The device storage is full
2020-07-09 19:58:38.423 Error: (BroadLink) Warning : Code sent ....Probably timeout
Do a scan and show the output.
vodor
Posts: 39
Joined: Friday 19 February 2016 14:47
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin : Broadlink

Post by vodor »

Network Scan shows 0 devices found yet in device information it shows....
Type: RM2
Cloud: None
Firmware: 44057
Plugin Unit: 1
Domoticz IDX: 1269
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 »

vodor wrote: Thursday 09 July 2020 21:13 Network Scan shows 0 devices found yet in device information it shows....
Type: RM2
Cloud: None
Firmware: 44057
Plugin Unit: 1
Domoticz IDX: 1269
redo the scan, sometimes need to run twice ..., and if nothing, take a look to the log folder.
vodor
Posts: 39
Joined: Friday 19 February 2016 14:47
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin : Broadlink

Post by vodor »

Always the same results after more than 10 scans. 0 devices found

Logs below shows connected to device and device storage full.

2020-07-10 02:19:04.213 (BroadLink) scan--Error to retrieve Broadlink devices--1
2020-07-10 02:19:07.295 (BroadLink) Update 1:'END scan' (BroadLink - RM2M-Status)
2020-07-10 02:19:07.315 (BroadLink) Update 1:'On' (BroadLink - RM2M-Status)
2020-07-10 02:19:57.827 Error: (BroadLink) Traceback (most recent call last):
2020-07-10 02:19:57.827 File "/home/pi/domoticz/plugins/broadlink/plugin.py", line 1726, in check_temp
2020-07-10 02:19:57.827 File "/usr/local/lib/python3.7/dist-packages/broadlink/__init__.py", line 670, in check_temperature
2020-07-10 02:19:57.827 File "/usr/local/lib/python3.7/dist-packages/broadlink/__init__.py", line 665, in _check_sensors
2020-07-10 02:19:57.827 File "/usr/local/lib/python3.7/dist-packages/broadlink/exceptions.py", line 97, in check_error
2020-07-10 02:19:57.827 broadlink.exceptions.StorageError: The device storage is full
2020-07-10 02:19:57.827 Error: (BroadLink) Error getting temperature data from Broadlink device....Timeout
2020-07-10 02:20:02.546 (BroadLink) Connected to Broadlink device: 192.168.128.3 RM2
2020-07-10 02:20:16.075 (BroadLink) scan--Discover finished--0
2020-07-10 02:20:19.168 (BroadLink) Update 1:'END scan' (BroadLink - RM2M-Status)
2020-07-10 02:20:19.192 (BroadLink) Update 1:'On' (BroadLink - RM2M-Status)
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 »

ok, and what about the content of the log folder ?
vodor
Posts: 39
Joined: Friday 19 February 2016 14:47
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin : Broadlink

Post by vodor »

Not much in the plugin logs either
I wonder if I should not reset the device and re-setup on the wifi. Its strange though because it is communicating on some level.

2020-07-10 17:52:39.438 (BroadLink) scan--Discover finished--0
2020-07-10 17:52:42.522 (BroadLink) Update 1:'END scan' (BroadLink - RM2M-Status)
2020-07-10 17:52:42.540 (BroadLink) Update 1:'On' (BroadLink - RM2M-Status)

root@mediapi:/home/pi/domoticz/plugins/broadlink/log# cat 26Mainoutput.txt
--------------------------------------Start-------------------------------------
STEP ==: scan --- 2020-07-10 17:52:24
Discovering...
Found 0broadlink devices ---2020-07-10 17:52:39

---------------------------------------END--------------------------------------
root@mediapi:/home/pi/domoticz/plugins/broadlink/log# cat scan.txt
Found 0 devices --2020-07-10 17:52:39
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 »

open a term session and :
sudo python broadlink_discovery.py
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 »

Version 1.1.0 uploaded:

# 1.1.0 : 13/07/2020
# modify broadlink_connect : use of broadlink.gendevice()
# possibility to overwrite the default device type
# display only ini file name + domoticz idx and not full path in manage()

to update:
update.PNG
update.PNG (50.74 KiB) Viewed 1820 times


to overwrite default device type:
overwrite.PNG
overwrite.PNG (76.58 KiB) Viewed 1820 times
Last edited by zak45 on Saturday 08 August 2020 12:57, edited 1 time in total.
luckskynet
Posts: 5
Joined: Wednesday 15 July 2020 20:19
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin : Broadlink

Post by luckskynet »

Hello,
I tried to follow the installation of the plugin.
I see it in domoticz, but when I try to activate it I get this error message. :o
Can you help me.

2020-07-15 20:06:59.461 Status: (RM4_Mini) Started.
2020-07-15 20:07:00.055 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'.
2020-07-15 20:07:00.055 Error: (RM4_Mini) Module Import failed, exception: 'ModuleNotFoundError'
2020-07-15 20:07:00.055 Error: (RM4_Mini) Module Import failed: ' Name: requests_toolbelt'
2020-07-15 20:07:00.055 Error: (RM4_Mini) Error Line details not available.
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 »

luckskynet wrote: Wednesday 15 July 2020 20:24 Hello,
I tried to follow the installation of the plugin.
I see it in domoticz, but when I try to activate it I get this error message. :o
Can you help me.

2020-07-15 20:06:59.461 Status: (RM4_Mini) Started.
2020-07-15 20:07:00.055 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'.
2020-07-15 20:07:00.055 Error: (RM4_Mini) Module Import failed, exception: 'ModuleNotFoundError'
2020-07-15 20:07:00.055 Error: (RM4_Mini) Module Import failed: ' Name: requests_toolbelt'
2020-07-15 20:07:00.055 Error: (RM4_Mini) Error Line details not available.
Hi,
this mean that the required module has not been installed....
at the end of the setup.py, do you had seen something like that ? :
________________________________________
# We do necessary modifications depend of Platform
----------------------------------------
put *.py files executable (+x) OK
put *.sh files executable (+x) OK
________________________________________
Checking installation ....
----------------------------------------
Successfully imported googletrans
Successfully imported translate
Successfully imported requests
Successfully imported requests_toolbelt
Successfully imported broadlink
Directory ini exist, OK
Directory lng exist, OK
Directory log exist, OK
Directory scr exist, OK
Directory web exist, OK
File plugin.py exist, OK
File Dombroadlink.py exist, OK
*
================================================================================
*
Broadlink Plugin Installed
*
You need to restart Domoticz before use it.
*
Enjoy!!!
*
================================================================================
*

if not, this can explain that...
luckskynet
Posts: 5
Joined: Wednesday 15 July 2020 20:19
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin : Broadlink

Post by luckskynet »

Hello, thanks for your answer.

You are right, I do not get what you attached in your answer.

Here is what I get, as well as the two errors I found in the installation log.

I am sorry for the inconvenience, but I do not master linux, and I do not understand too much the error messages.

=================================================================================================
put *.py files executable (+x) OK
put *.sh files executable (+x) OK
________________________________________
Checking installation ....
----------------------------------------
Error importing googletrans

=================================================================================================

Collecting httpx==0.13.3 (from googletrans)
Could not find a version that satisfies the requirement httpx==0.13.3 (from googletrans) (from versions: )
No matching distribution found for httpx==0.13.3 (from googletrans)
ERROR to start subprocess
1
sudo -H python -m pip install googletrans
None
ERROR to install : googletrans
could be normal if already exist, continue in anyway....
-*-

=================================================================================================

Requirement already satisfied: requests in /usr/lib/python2.7/dist-packages (from translate) (2.21.0)
Collecting pre-commit (from translate)
Using cached https://www.piwheels.org/simple/pre-com ... ne-any.whl
pre-commit requires Python '>=3.6.1' but the running Python is 2.7.16
ERROR to start subprocess
1
sudo -H python -m pip install translate
None
ERROR to install : translate
could be normal if already exist, continue in anyway....
-*-
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 »

luckskynet wrote: Thursday 16 July 2020 22:27
Requirement already satisfied: requests in /usr/lib/python2.7/dist-packages (from translate) (2.21.0)
Collecting pre-commit (from translate)
Using cached https://www.piwheels.org/simple/pre-com ... ne-any.whl
pre-commit requires Python '>=3.6.1' but the running Python is 2.7.16
ERROR to start subprocess
hi,
be sure that you follow all pre-requests: python 3.x installed and need to be default one, pip installed.
luckskynet
Posts: 5
Joined: Wednesday 15 July 2020 20:19
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin : Broadlink

Post by luckskynet »

Hi,

Yes i have 3.7.3

I managed to install by modifying in the setup.py
sudo -H python pip install
by
sudo -H python3 pip install

and the ...
# We do necessary modifications depend on Platform
----------------------------------------
put * .py files executable (+ x) OK
put * .sh files executable (+ x) OK
________________________________________
Checking installation ....
----------------------------------------
Successfully imported googletrans
Successfully imported translate
Successfully imported requests
Successfully imported requests_toolbelt
Successfully imported broadlink
Directory ini exist, OK
Directory lng exist, OK
Directory log exist, OK
Directory scr exist, OK
Directory web exist, OK
File plugin.py exist, OK
File Dombroadlink.py exist, OK
*
=================================================== ===============================
*
Broadlink Plugin Installed
*
You need to restart Domoticz before use it.
*
Enjoy !!!
*
=================================================== ===============================
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 »

Looks better ;-)
luckskynet
Posts: 5
Joined: Wednesday 15 July 2020 20:19
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin : Broadlink

Post by luckskynet »

But now in domoticz log, i have :

2020-07-16 22:50:04.794 Status: Domoticz V2020.2 (c)2012-2020 GizMoCuz
2020-07-16 22:50:04.794 Status: Build Hash: b63341bc0, Date: 2020-04-26 13:47:55
2020-07-16 22:50:04.794 Status: Startup Path: /home/pi/domoticz/
2020-07-16 22:50:04.996 Status: PluginSystem: Started, Python version '3.7.3'.
2020-07-16 22:50:05.004 Active notification Subsystems: email, http, telegram (3/13)
2020-07-16 22:50:05.075 Starting shared server on: :::6144
2020-07-16 22:50:05.015 Status: WebServer(HTTP) started on address: :: with port 82
2020-07-16 22:50:05.072 Status: WebServer(SSL) started on address: :: with port 443
2020-07-16 22:50:05.075 Status: Camera: settings (re)loaded
2020-07-16 22:50:05.076 Status: RxQueue: queue worker started...
2020-07-16 22:50:05.076 Status: TCPServer: shared server started...
2020-07-16 22:50:07.080 Status: Hardware Monitor: Started
2020-07-16 22:50:07.096 Status: (Teleinfo) Teleinfo device uses serial port: /dev/ttyUSB0 at 1200 bauds
2020-07-16 22:50:07.096 Status: Pinger: Worker started...
2020-07-16 22:50:07.101 Status: (Teleinfo) CRC checks will be performed on incoming data
2020-07-16 22:50:07.102 Status: WOL: Started
2020-07-16 22:50:07.102 Status: Darksky: Started...
2020-07-16 22:50:07.102 Status: EventSystem: reset all events...
2020-07-16 22:50:07.103 Status: NotificationSystem: thread started...
2020-07-16 22:50:07.104 Status: EventSystem: reset all device statuses...
2020-07-16 22:50:07.278 Status: RFLink: Using serial port: /dev/ttyACM0
2020-07-16 22:50:07.308 Status: Python EventSystem: Initalizing event module.
2020-07-16 22:50:07.308 Status: EventSystem: Started
2020-07-16 22:50:07.308 Status: EventSystem: Queue thread started...
2020-07-16 22:50:07.389 Status: PluginSystem: Entering work loop.
2020-07-16 22:50:08.199 Status: RFLink: Controller Initialized!...
2020-07-16 22:50:08.275 Status: RFLink Detected, Version: 1.1 Revision: 48 Build: 4
2020-07-16 22:50:16.944 Status: Incoming connection from: 192.168.1.18
2020-07-16 22:50:17.950 (RFLink) Temp (Temp Ext)
2020-07-16 22:50:18.208 (Météo Angers) Temp + Humidity + Baro (Temp,Hum,Pression)
2020-07-16 22:50:18.216 (Météo Angers) Wind (Vent)
2020-07-16 22:50:18.223 (Météo Angers) UV (UV Index)
2020-07-16 22:50:18.246 (Météo Angers) Rain (Pluie)
2020-07-16 22:50:18.251 (Météo Angers) General/Visibility (Visibilité)
2020-07-16 22:50:18.255 (Météo Angers) General/Custom Sensor (Ozone Sensor)
2020-07-16 22:50:18.262 (Météo Angers) General/Percentage (Cloud Cover)
2020-07-16 22:50:30.447 Status: (RM4_Mini) Started.
2020-07-16 22:50:32.403 (RM4_Mini) fichier lang: /home/pi/domoticz/plugins/Broadlink/lng/en_fr.lng
2020-07-16 22:50:32.403 (RM4_Mini) Langue chargée pour: fr
2020-07-16 22:50:32.420 (RM4_Mini) Écouter le BROWebServer - Port: 9000
2020-07-16 22:50:32.422 (RM4_Mini) fichier ini pour télécommande créé: /home/pi/domoticz/plugins/Broadlink/remote/Broadlink-10-001.ini
2020-07-16 22:50:32.427 (RM4_Mini) Plugin démarrage du nombre de périphériques sur: 9
2020-07-16 22:50:32.445 (RM4_Mini) fichier de ligne de commande créé: /home/pi/domoticz/plugins/Broadlink/log/10RM24M.txt
2020-07-16 22:50:32.445 (RM4_Mini) Connexion à: 192.168.1.65 : 24DFA731180B
2020-07-16 22:50:32.511 (RM4_Mini) fichier html Admin créé: /home/pi/domoticz/www/templates/Broadlink-RM24M-10.html
2020-07-16 22:50:32.395 Status: (RM4_Mini) Entering work loop.
2020-07-16 22:50:32.396 Status: (RM4_Mini) Initialized version 1.1.0, author 'zak45'
2020-07-16 22:50:32.420 Error: (RM4_Mini) Device creation failed, Domoticz settings prevent accepting new devices.
2020-07-16 22:50:32.420 Error: (RM4_Mini) Device creation failed, Domoticz settings prevent accepting new devices.
2020-07-16 22:50:32.420 Error: (RM4_Mini) Device creation failed, Domoticz settings prevent accepting new devices.
2020-07-16 22:50:32.478 Error: (RM4_Mini) Traceback (most recent call last):
2020-07-16 22:50:32.478 File "/home/pi/domoticz/plugins/Broadlink/plugin.py", line 1768, in broadlink_connect
2020-07-16 22:50:32.478 DEVICE.auth()
2020-07-16 22:50:32.478 File "/usr/local/lib/python3.7/dist-packages/broadlink/__init__.py", line 252, in auth
2020-07-16 22:50:32.478 check_error(response[0x22:0x24])
2020-07-16 22:50:32.478 File "/usr/local/lib/python3.7/dist-packages/broadlink/exceptions.py", line 97, in check_error
2020-07-16 22:50:32.478 raise exception(error_code)
2020-07-16 22:50:32.478 broadlink.exceptions.AuthenticationError: Authentication failed
2020-07-16 22:50:32.478
2020-07-16 22:50:32.478 Error: (RM4_Mini) Erreur de se connecter à un appareil Broadlink: 192.168.1.65
2020-07-16 22:50:42.422 Error: (RM4_Mini) Traceback (most recent call last):
2020-07-16 22:50:42.422 File "/home/pi/domoticz/plugins/Broadlink/plugin.py", line 1768, in broadlink_connect
2020-07-16 22:50:42.422 DEVICE.auth()
2020-07-16 22:50:42.422 File "/usr/local/lib/python3.7/dist-packages/broadlink/__init__.py", line 252, in auth
2020-07-16 22:50:42.422 check_error(response[0x22:0x24])
2020-07-16 22:50:42.422 File "/usr/local/lib/python3.7/dist-packages/broadlink/exceptions.py", line 97, in check_error
2020-07-16 22:50:42.422 raise exception(error_code)
2020-07-16 22:50:42.422 broadlink.exceptions.AuthenticationError: Authentication failed
2020-07-16 22:50:42.422
2020-07-16 22:50:42.422 Error: (RM4_Mini) Erreur de se connecter à un appareil Broadlink: 192.168.1.65
2020-07-16 22:51:10.969 (RFLink) Temp (Temp Ext)
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 »

luckskynet wrote: Thursday 16 July 2020 22:53 But now in domoticz log, i have :

2020-07-16 22:50:32.396 Status: (RM4_Mini) Initialized version 1.1.0, author 'zak45'
2020-07-16 22:50:32.420 Error: (RM4_Mini) Device creation failed, Domoticz settings prevent accepting new devices.
2020-07-16 22:50:32.420 Error: (RM4_Mini) Device creation failed, Domoticz settings prevent accepting new devices.
2020-07-16 22:50:32.420 Error: (RM4_Mini) Device creation failed, Domoticz settings prevent accepting new devices.
2020-07-16 22:50:32.478 Error: (RM4_Mini) Traceback (most recent call last):
2020-07-16 22:50:32.478 File "/home/pi/domoticz/plugins/Broadlink/plugin.py", line 1768, in broadlink_connect
2020-07-16 22:50:32.478 DEVICE.auth()
2020-07-16 22:50:32.478 File "/usr/local/lib/python3.7/dist-packages/broadlink/__init__.py", line 252, in auth
2020-07-16 22:50:32.478 check_error(response[0x22:0x24])
2020-07-16 22:50:32.478 File "/usr/local/lib/python3.7/dist-packages/broadlink/exceptions.py", line 97, in check_error
2020-07-16 22:50:32.478 raise exception(error_code)
2020-07-16 22:50:32.478 broadlink.exceptions.AuthenticationError: Authentication failed
2020-07-16 22:50:32.478
2020-07-16 22:50:32.478 Error: (RM4_Mini) Erreur de se connecter à un appareil Broadlink: 192.168.1.65
2020-07-16 22:50:42.422 Error: (RM4_Mini) Traceback (most recent call last):
2020-07-16 22:50:42.422 File "/home/pi/domoticz/plugins/Broadlink/plugin.py", line 1768, in broadlink_connect
2020-07-16 22:50:42.422 DEVICE.auth()
2020-07-16 22:50:42.422 File "/usr/local/lib/python3.7/dist-packages/broadlink/__init__.py", line 252, in auth
2020-07-16 22:50:42.422 check_error(response[0x22:0x24])
2020-07-16 22:50:42.422 File "/usr/local/lib/python3.7/dist-packages/broadlink/exceptions.py", line 97, in check_error
2020-07-16 22:50:42.422 raise exception(error_code)
2020-07-16 22:50:42.422 broadlink.exceptions.AuthenticationError: Authentication failed
2020-07-16 22:50:42.422
2020-07-16 22:50:42.422 Error: (RM4_Mini) Erreur de se connecter à un appareil Broadlink: 192.168.1.65
2020-07-16 22:51:10.969 (RFLink) Temp (Temp Ext)
Two things:
first one : you need to allow new device creation in Domoticz / settings
second one: be sure that you you do not have linked your device to the official broadlink app, see first post .
luckskynet
Posts: 5
Joined: Wednesday 15 July 2020 20:19
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin : Broadlink

Post by luckskynet »

Hello,

RM4 was indeed connected to the application.
Everything is working now.
Thank you for your support and your patience.
and a big thank you for your talent and this plugin. :D :D :D :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 »

luckskynet wrote: Thursday 16 July 2020 23:26 Hello,

RM4 was indeed connected to the application.
Everything is working now.
Thank you for your support and your patience.
and a big thank you for your talent and this plugin. :D :D :D :D
Great, thanks !
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 »

New version uploaded :

# 1.1.1 : 16/07/2020
# better support for mobile device & some code clean up
Hogis
Posts: 12
Joined: Wednesday 01 July 2020 19:44
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin : Broadlink

Post by Hogis »

Getting this when trying to install:

IP/PORT OK
/home/pi/domoticz/plugins/broadlink
Installation initialized ......
________________________________________
# we retrieve Domoticz language
Traceback (most recent call last):
File "setup.py", line 72, in exe_domoticz
html = urllib.request.urlopen('http://' + str(Domoticz) + ':' + str(Port) + '/json.htm?' + params, timeout=20)
File "/usr/lib/python3.7/urllib/request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.7/urllib/request.py", line 531, in open
response = meth(req, response)
File "/usr/lib/python3.7/urllib/request.py", line 641, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python3.7/urllib/request.py", line 569, in error
return self._call_chain(*args)
File "/usr/lib/python3.7/urllib/request.py", line 503, in _call_chain
result = func(*args)
File "/usr/lib/python3.7/urllib/request.py", line 649, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 401: Unauthorized

Error sending command to Domoticz :type=settings
Post Reply

Who is online

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