Python Plugin : Broadlink
Posted: Wednesday 01 July 2020 18:20
Hi,
complete new plugin.
Old version (4.x) could not be upgraded, you need to create a new folder, and import your ini files if you want to use this one.
Info : do not use the official app if using broadlink library
see https://github.com/mjg59/python-broadlink/issues/377
note: pip need to be installed
(for linux users: sudo apt install python3-pip)
To be able to see the Web Pages, Custom menu need to be activated: Domoticz / settings.
Be sure that your active python version is > 3.4 (Change python version system-wide)
this mean: python --version ( or sudo python --version for linux users)
should give output e.g. python 3.x.x and not python 2.x.x
this one : https://linuxconfig.org/how-to-change-f ... bian-linux
Features:
Multi-Language
Multi-Devices (MP1 / A1 / SP1-2-3 / RM2-3 Pro & mini / RM4 Pro & mini
Web Admin page
RF is now managed
Multi-code ini file creation by drag & drop
Create Broadlink ini from Pronto Hex
Create ini from e-Control
Modify number of repetition (do and test with caution)
Import feature
Send code with a simple URL
and more .....
Installation :
create Broadlink directory under your Domoticz/plugins folder.
download setup.py from here : https://raw.githubusercontent.com/zak-4 ... n/setup.py
and put it into Broadlink directory.
Open a terminal session, go to Broadlink directory and execute this command : python setup.py (tested on Windows with admin right, maybe need sudo on linux e.g; : sudo python setup.py)
Provide response to questions.
Restart Domoticz.
Create a new hardware, type : Broadlink with Kodi Remote
Manual installation:
see GitHub
WebAdmin Page overview:
For Devlopers:
this is the port necessary to use MS visual debugger
--> main py : plugin.py
Domoticz.Log('Waiting for MS Visual Studio remote debugger connection ....')
ptvsd.enable_attach(address=('0.0.0.0', 5678))
--> subprocess : Dombroadlink.py
ptvsd.enable_attach(address=('0.0.0.0', 6789))
module ptvsd need to be installed.
Lets try and play with it.
Provide bugs/feedback here.
Enjoy !!
test platform : Windows 10
Version: 2020.2 (build 12120)
Build Hash: ecd90cd57
Compile Date: 2020-06-04 20:50:42
dzVents Version: 3.0.9
Python Version: 3.7.5 (tags/v3.7.5:5c02a39a0b, Oct 14 2019, 23:09:19) [MSC v.1916 32 bit (Intel)]
complete new plugin.
Old version (4.x) could not be upgraded, you need to create a new folder, and import your ini files if you want to use this one.
Info : do not use the official app if using broadlink library
see https://github.com/mjg59/python-broadlink/issues/377
note: pip need to be installed
(for linux users: sudo apt install python3-pip)
To be able to see the Web Pages, Custom menu need to be activated: Domoticz / settings.
Be sure that your active python version is > 3.4 (Change python version system-wide)
this mean: python --version ( or sudo python --version for linux users)
should give output e.g. python 3.x.x and not python 2.x.x
this one : https://linuxconfig.org/how-to-change-f ... bian-linux
Features:
Multi-Language
Multi-Devices (MP1 / A1 / SP1-2-3 / RM2-3 Pro & mini / RM4 Pro & mini
Web Admin page
RF is now managed
Multi-code ini file creation by drag & drop
Create Broadlink ini from Pronto Hex
Create ini from e-Control
Modify number of repetition (do and test with caution)
Import feature
Send code with a simple URL
and more .....
Installation :
create Broadlink directory under your Domoticz/plugins folder.
download setup.py from here : https://raw.githubusercontent.com/zak-4 ... n/setup.py
and put it into Broadlink directory.
Open a terminal session, go to Broadlink directory and execute this command : python setup.py (tested on Windows with admin right, maybe need sudo on linux e.g; : sudo python setup.py)
Provide response to questions.
Restart Domoticz.
Create a new hardware, type : Broadlink with Kodi Remote
Manual installation:
see GitHub
WebAdmin Page overview:
For Devlopers:
this is the port necessary to use MS visual debugger
--> main py : plugin.py
Domoticz.Log('Waiting for MS Visual Studio remote debugger connection ....')
ptvsd.enable_attach(address=('0.0.0.0', 5678))
--> subprocess : Dombroadlink.py
ptvsd.enable_attach(address=('0.0.0.0', 6789))
module ptvsd need to be installed.
Lets try and play with it.
Provide bugs/feedback here.
Enjoy !!
test platform : Windows 10
Version: 2020.2 (build 12120)
Build Hash: ecd90cd57
Compile Date: 2020-06-04 20:50:42
dzVents Version: 3.0.9
Python Version: 3.7.5 (tags/v3.7.5:5c02a39a0b, Oct 14 2019, 23:09:19) [MSC v.1916 32 bit (Intel)]