Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
Penguidom
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
domotika
Penguidom
Commits
62f83c5d
Commit
62f83c5d
authored
7 years ago
by
Franco (nextime) Lanza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Output and alarm control messages
parent
8a3d920e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
0 deletions
+30
-0
mapping.py
penguidom/plugins/paradox/mapping.py
+20
-0
paradox37b.py
penguidom/plugins/paradox/paradox37b.py
+10
-0
No files found.
penguidom/plugins/paradox/mapping.py
View file @
62f83c5d
...
...
@@ -185,6 +185,26 @@ class ParadoxRegisters(Singleton):
def
getsupportedItems
(
self
):
return
self
.
registers
.
supportedItems
def
ARM
(
self
,
partition
):
return
REGISTERS
.
registers
.
controlAlarm
[
partition
][
'ARM'
]
def
DISARM
(
self
,
partition
):
return
REGISTERS
.
registers
.
controlAlarm
[
partition
][
'DISARM'
]
def
SLEEP
(
self
,
partition
):
return
REGISTERS
.
registers
.
controlAlarm
[
partition
][
'SLEEP'
]
def
STAY
(
self
,
partition
):
return
REGISTERS
.
registers
.
controlAlarm
[
partition
][
'STAY'
]
def
ON
(
self
,
pgm
):
return
REGISTERS
.
registers
.
controlOutput
[
pgm
][
'ON'
]
def
OFF
(
self
,
pgm
):
return
REGISTERS
.
registers
.
controlOutput
[
pgm
][
'OFF'
]
def
getParadoxEventMap
():
return
ParadoxEventMap
.
getInstance
()
...
...
This diff is collapsed.
Click to expand it.
penguidom/plugins/paradox/paradox37b.py
View file @
62f83c5d
...
...
@@ -20,6 +20,8 @@
#
##############################################################################
from
mapping
import
EVENTMAP
,
REGISTERS
import
ctypes
c_uint8
=
ctypes
.
c_uint8
...
...
@@ -165,5 +167,13 @@ def getPanelName(message):
return
str
(
message
[
28
:
36
])
.
strip
(
'
\x00
'
)
ARM
=
REGISTERS
.
ARM
DISARM
=
REGISTERS
.
DISARM
STAY
=
REGISTERS
.
STAY
SLEEP
=
REGISTERS
.
SLEEP
PGM_ON
=
REGISTERS
.
ON
PGM_OFF
=
REGISTER
.
OFF
#PGM_CHANGE = REGISTER.CHANGE
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment