Re: Python Plugin: Broadlink RM2
Posted: Sunday 25 June 2017 20:50
the V3 is here.oslalo wrote:Thank you kingoifsnake74 for you answerd.
It mean that nobody can use the Broadlink with Domoticz in this moment ???
the V3 is here.oslalo wrote:Thank you kingoifsnake74 for you answerd.
It mean that nobody can use the Broadlink with Domoticz in this moment ???
yeposlalo wrote:Hello zak45,
I have problems with the configuration of the Broadlink to Domoticz.
Could you send you my log file and json files ??
Thank you in advanced
you will find all information in Domoticz Wiki and/or Forum.goblin wrote:Thank zak45, for your reply:
i have only done what written in my last post.
i can not find the dir. plugins/broadlinkRM with WinSCP
the closest i could find is /usr/local/lib/python3.4/dist-packages/broadlink
Also no broadlinkRM.
BR
goblin wrote:i just did :
# Obtain plugin from github
mkdir -p domoticz/plugins/denon/
curl -L https://raw.githubusercontent.com/domot ... non4306.py > domoticz/plugins/denon/plugin.py
# set execute permissions (default was 644 pi:pi)
chmod 755 domoticz/plugins/denon/plugin.py
# restart domoticz service
sudo systemctl restart domoticz.service
and got this in the log:
2017-07-25 17:46:42.649 Error: PluginList: Parsing '/home/pi/domoticz/plugins/denon/', 'Error document empty.' at line 0 column 0 in XML ''.
and found the plugin.py at ./proc/self/task/13041/cwd/domoticz/plugins/denon/ (and in /AwoxSMP/)
the plugin.py was empty so i replaced them with the downloaded one from you (2017 3.0.0)
One step closer: got the broadlink in the hardware setup but nothing happens when i push setup.
it differs also a lot with the screen on https://www.domoticz.com/wiki/Plugins/BroadlinkRM2.html
(i wish i understood a little bit more of linux)
regards
Code: Select all
2017-08-06 21:24:57.096 User: Admin initiated a switch command (8/Broadcom - Remote/On)
2017-08-06 21:24:57.116 (Broadcom) Calling message handler 'onCommand'.
2017-08-06 21:24:57.116 (Broadcom) onCommand called for Unit 254: Parameter 'On', Level: 0 , Connected : False
2017-08-06 21:24:57.116 (Broadcom) Generate on Command for learned code stored on unit/ini :254
2017-08-06 21:24:57.117 Error: (Broadcom) 'onCommand' failed 'NoSectionError'.
2017-08-06 21:24:57.117 Error: (Broadcom) ----> Line 217 in /home/moulders/domoticz/plugins/BroadlinkRM2/plugin.py, function onCommand
2017-08-06 21:24:57.117 Error: (Broadcom) ----> Line 314 in /home/moulders/domoticz/plugins/BroadlinkRM2/plugin.py, function genCommand
2017-08-06 21:24:57.117 Error: (Broadcom) ----> Line 781 in /usr/lib/python3.5/configparser.py, function get
2017-08-06 21:24:57.117 Error: (Broadcom) ----> Line 1138 in /usr/lib/python3.5/configparser.py, function _unify_values
2017-08-06 21:25:12.803 (Broadcom) Calling message handler 'onHeartbeat'.
2017-08-06 21:25:42.819 (Broadcom) Calling message handler 'onHeartbeat'.
you have generated wrong ID value into the ini file for remote control. please see wiki.Moulders wrote:I thought I had set everything up correctly but I get the following error in the logs when I try to turn it on:
any ideas what I might of done wrong?Code: Select all
2017-08-06 21:24:57.096 User: Admin initiated a switch command (8/Broadcom - Remote/On) 2017-08-06 21:24:57.116 (Broadcom) Calling message handler 'onCommand'. 2017-08-06 21:24:57.116 (Broadcom) onCommand called for Unit [b]254[/b]: Parameter 'On', Level: 0 , Connected : False 2017-08-06 21:24:57.116 (Broadcom) Generate on Command for learned code stored on unit/ini :[b]254[/b] 2017-08-06 21:24:57.117 Error: (Broadcom) 'onCommand' failed 'NoSectionError'. 2017-08-06 21:24:57.117 Error: (Broadcom) ----> Line 217 in /home/moulders/domoticz/plugins/BroadlinkRM2/plugin.py, function onCommand 2017-08-06 21:24:57.117 Error: (Broadcom) ----> Line 314 in /home/moulders/domoticz/plugins/BroadlinkRM2/plugin.py, function genCommand 2017-08-06 21:24:57.117 Error: (Broadcom) ----> Line 781 in /usr/lib/python3.5/configparser.py, function get 2017-08-06 21:24:57.117 Error: (Broadcom) ----> Line 1138 in /usr/lib/python3.5/configparser.py, function _unify_values 2017-08-06 21:25:12.803 (Broadcom) Calling message handler 'onHeartbeat'. 2017-08-06 21:25:42.819 (Broadcom) Calling message handler 'onHeartbeat'.
Thanks.
here is mine: this is an example of ini need to be created for remote customizationMoulders wrote:I'm still struggling with the ini files.. can anyone provide an example of theirs so I can compare?
Code: Select all
Python 3.5.2
Code: Select all
pip 9.0.1 from /usr/local/lib/python3.5/site-packages (pyth
n 3.5)
Code: Select all
libpython3.5m.so libwiringPiDev.so.2.44 pkgconfig
libpython3.5m.so.1.0 libwiringPi.so python3.5
libpython3.so libwiringPi.so.2.44
libwiringPiDev.so perl
Code: Select all
abc.py hmac.py sched.py
aifc.py html selectors.py
antigravity.py http shelve.py
argparse.py idlelib shlex.py
ast.py imaplib.py shutil.py
asynchat.py imghdr.py signal.py
asyncio importlib _sitebuiltins.py
asyncore.py imp.py site-packages
base64.py inspect.py site.py
bdb.py io.py smtpd.py
binhex.py ipaddress.py smtplib.py
bisect.py json sndhdr.py
_bootlocale.py keyword.py socket.py
bz2.py lib2to3 socketserver.py
calendar.py lib-dynload sqlite3
cgi.py LICENSE.txt sre_compile.py
cgitb.py linecache.py sre_constants.py
chunk.py locale.py sre_parse.py
cmd.py logging ssl.py
codecs.py lzma.py statistics.py
codeop.py macpath.py stat.py
code.py macurl2path.py stringprep.py
collections mailbox.py string.py
_collections_abc.py mailcap.py _strptime.py
colorsys.py _markupbase.py struct.py
_compat_pickle.py mimetypes.py subprocess.py
compileall.py modulefinder.py sunau.py
_compression.py multiprocessing symbol.py
concurrent netrc.py symtable.py
config-3.5m nntplib.py _sysconfigdata.py
configparser.py ntpath.py sysconfig.py
contextlib.py nturl2path.py tabnanny.py
copy.py numbers.py tarfile.py
copyreg.py opcode.py telnetlib.py
cProfile.py operator.py tempfile.py
crypt.py optparse.py test
csv.py os.py textwrap.py
ctypes _osx_support.py this.py
curses pathlib.py _threading_local.py
datetime.py pdb.py threading.py
dbm __phello__.foo.py timeit.py
decimal.py pickle.py tkinter
difflib.py pickletools.py tokenize.py
dis.py pipes.py token.py
distutils pkgutil.py traceback.py
doctest.py platform.py tracemalloc.py
dummy_threading.py plat-linux trace.py
_dummy_thread.py plistlib.py tty.py
email poplib.py turtledemo
encodings posixpath.py turtle.py
ensurepip pprint.py types.py
enum.py profile.py typing.py
filecmp.py pstats.py unittest
fileinput.py pty.py urllib
fnmatch.py __pycache__ uuid.py
formatter.py pyclbr.py uu.py
fractions.py py_compile.py venv
ftplib.py _pydecimal.py warnings.py
functools.py pydoc_data wave.py
__future__.py pydoc.py weakref.py
genericpath.py _pyio.py _weakrefset.py
getopt.py queue.py webbrowser.py
getpass.py quopri.py wsgiref
gettext.py random.py xdrlib.py
glob.py reprlib.py xml
gzip.py re.py xmlrpc
hashlib.py rlcompleter.py zipapp.py
heapq.py runpy.py zipfile.py
Code: Select all
Processing ./broadlink-0.5
Requirement already satisfied (use --upgrade to upgrade):
broadlink==0.5 from file:///home/pi/BroadlinkRM2/broadlink-
.5 in /usr/local/lib/python3.5/site-packages
Requirement already satisfied: pycrypto==2.6.1 in /usr/loca
/lib/python3.5/site-packages (from broadlink==0.5)
Building wheels for collected packages: broadlink
Running setup.py bdist_wheel for broadlink ... done
Stored in directory: /root/.cache/pip/wheels/38/cc/a8/f73
d73c924b3fadd44f5a21f42b7fbeb1c37ec63be7a885d5
Successfully built broadlink
Code: Select all
total 52
-rwxrwxrwx 1 pi pi 11469 Oct 25 12:32 plugin_http.py
-rwxrwxrwx 1 pi pi 72 Oct 25 12:32 plugin_http.sh
-rwxrwxrwx 1 pi pi 1501 Oct 25 12:32 plugin_send.py
-rwxrwxrwx 1 pi pi 26034 Oct 25 13:55 plugin.py
drwxr-x--- 2 root root 4096 Oct 25 13:55 __pycache__