mkorz / integrapy Goto Github PK
View Code? Open in Web Editor NEWBasic ETHM-1 integration script
Basic ETHM-1 integration script
Witam,
poszukuję pomocy w rozbudowaniu skryptu o możliwość odczytu wydarzeń z centrali czyli komenty 8C
Pozdrawiam
python3 -m IntegraPy.demo 192.168.100.180
Traceback (most recent call last):
File "/usr/local/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/usr/local/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/tmp/IntegraPy/IntegraPy/demo.py", line 27, in
for part in integra.get_armed_partitions()
File "/tmp/IntegraPy/IntegraPy/init.py", line 205, in get_armed_partitions
resp = self.run_command(b'0A')
File "/tmp/IntegraPy/IntegraPy/init.py", line 81, in run_command
raise Exception('Wrong header - got {}'.format(hexlify(resp[:2])))
Exception: Wrong header - got b'1042'
Witam,
Zauwazeylem ze brak jest obslugi bledow tu chodzi o zajetosc przez polaczenie innego programu do centrali
root /integra # python3 integrademo.py
0x10
0x42
0x75
0x73
0x79
0x21
0xD
0xA
0xD7
0x0
0x0
0x0
0x0
0x0
0x0
0x0
0x0
Traceback (most recent call last):
File "integrademo.py", line 257, in
iVersion()
File "integrademo.py", line 137, in iVersion
resp = sendcommand("7E")
File "integrademo.py", line 88, in sendcommand
raise Exception("Wrong header - got %X%X" % (resp[0], resp[1]))
Exception: Wrong header - got 1042
Hi, I love your project.
I can read the zone status and partition statuses but I can't figure out how I can switch an output.
Could you give me an example so I can test it in the demo.py script?
It should start with toggle_outputs but whats next? Do I need to put the output number or the output text and in what format?
FYI I am not a programmer of some sort ;)
Thanks!
I get the following error:
-- ------------- --
-- Receving data --
<<<0xFE ('þ')
<<<0xFE ('þ')
<<<0xEE ('î')
<<<0x4 ('')
<<<0x1 ('')
<<<0x29 (')')
<<<0x56 ('V')
<<<0xFD ('ý')
<<<0x73 ('s')
<<<0x74 ('t')
<<<0x75 ('u')
<<<0x70 ('p')
<<<0x20 (' ')
<<<0x20 (' ')
<<<0x20 (' ')
<<<0x31 ('1')
<<<0x20 (' ')
<<<0x20 (' ')
<<<0x20 (' ')
<<<0x20 (' ')
<<<0x20 (' ')
<<<0x20 (' ')
<<<0xD8 ('Ø')
<<<0x81 ('�')
<<<0xFE ('þ')
')<0xD ('
-- ------------- --
Traceback (most recent call last):
File "integrademo.py", line 263, in <module>
iOutputs()
File "integrademo.py", line 201, in iOutputs
o += str(8 * i + b + 1) + " " + iName(8 * i + b + 1, OUTPUT) + ": ON\n"
File "integrademo.py", line 172, in iName
return r[3:].decode("utf-8")
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfd in position 1: invalid start byte
To fix this I had to change line 172
return r[3:].decode("utf-8")
to
return r[3:].decode("utf-8", "ignore")
I have no experience with Python and I don't know what these invalid characters at the end of the message contain.
Complete log with DEBUG=1: http://pastebin.com/mNP1diEQ
Witam,
jest szansa napisać moduł do integracji Satela z IOBROKER'em?
Witam,
Czy udalo by sie jakos opisac jakie i dodac parametry aby mozna bylo sterowac tym skryptem zalacz strefy wylacz pokaz stan oraz odczytac eventy, kasowac alarmy, kilka funkcji poprzez podanie parametrow ?
Moze cos na zasadzie parametru do skryptu np. 1 armed, 2 disarmed , 3 status, 4 alarm statys, 5 status awarii, 6 kasowanie awarii, 7 kasowanie alarmu, 8, odczyt zdazen, 9 stan stref albo poszczegolnych czujnikow, 0 info o centrali itp.
Pozdrawiam,
RL
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.