Replies: 1 comment
-
|
Seems to have resolved the issue by fixing the USB serial converter permissions... thanks |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
Great work here with PAI, thanks!
I am battling to connect to my MG5050+. I confirmed my serial device is connected correctly as I can access the panel through Babyware. I just can't seem to get it going through docker. Here's my configuration and the log below (I have * my MQTT password)
import logging
CONNECTION_TYPE = 'Serial' # Serial or IP
SERIAL_PORT = '/dev/ttyUSB0' # Pathname of the Serial Port
SERIAL_BAUD = 115200 # 9600 for SP/MG. For EVO: Use 38400(default setting) or 57600. 115200 for + versions
KEEP_ALIVE_INTERVAL = 10 # Interval between status updates
IO_TIMEOUT = 30 # Timeout for IO operations
LIMITS = { # By default all zones will be monitored
'zone': 'auto', # Zones to monitor and control
'user': [1, 2, 3, 4], # Users to consider
'door': '', # Doors to consider
'pgm': range(1, 17), # PGMs to monitor and control
'partition': 'auto', # Partitions to monitor and control
}
LABEL_ENCODING = 'paradox-en' # Encoding to use when decoding labels. paradox-* or https://docs.python.org/3/library/codecs.html#standard-encodings
LABEL_REFRESH_INTERVAL = 15 * 60 # Interval between refresh of labels
OUTPUT_PULSE_DURATION = 1 # Duration of a PGM pulse in seconds
SYNC_TIME = False # Update panel time periodically when time drifts more than SYNC_TIME_MIN_DRIFT
PASSWORD = '1928' # PC Password. Set to None if Panel has no Password.
MQTT_ENABLE = True # Enable MQTT Interface
MQTT_HOST = '192.168.1.79' # Hostname or address
MQTT_PORT = 1883 # TCP Port (TLS port if MQTT_TLS_CERT_PATH is set)
MQTT_TRANSPORT = "tcp" # Transport to use ("tcp" or "websockets")
MQTT_QOS = 0 # Publish messages with QOS level (0 - fire and forget, 1 - at least once, 2 - exactly once)
MQTT_KEEPALIVE = 60 # Keep alive
MQTT_USERNAME = 'mqtt-user' # MQTT Username for authentication
MQTT_PASSWORD = '*******' # MQTT Password
MQTT_RETAIN = True # Publish messages with Retain
MQTT_BIND_ADDRESS = '' # MQTT Client bind address. Default: "" - pick automatically
MQTT_BIND_PORT = 0 # MQTT Client bind port. Default: 0 - pick automatically
MQTT_REPUBLISH_INTERVAL = 60 * 60 * 12 # Interval for republishing all data
MQTT_PUBLISH_DEFINITIONS = False # Publish definitions of partitions/zones/users to MQTT. Not required in most cases.
MQTT_BASE_TOPIC = 'paradox' # Root of all topics
MQTT_ZONE_TOPIC = 'zones' # Base for zone states
MQTT_PARTITION_TOPIC = 'partitions' # Base for partition states
MQTT_BUS_TOPIC = 'buses' # Base for buses states
MQTT_MODULE_TOPIC = 'bus-module' # Base for bus module states
MQTT_SYSTEM_TOPIC = 'system' # Base for panel states
MQTT_REPEATER_TOPIC = 'repeaters' # Base for repeater states
MQTT_USER_TOPIC = 'users' # Base for user states
MQTT_EVENTS_TOPIC = 'events' # Base for events
MQTT_CONTROL_TOPIC = 'control' # Base for control of other elements (ROOT/CONTROL/TYPE)
MQTT_DEFINITIONS_TOPIC = 'control' # Base for definitions
MQTT_HOMEASSISTANT_DISCOVERY_PREFIX = 'homeassistant'
MQTT_HOMEASSISTANT_ENTITY_PREFIX = '' # If you want to prefix all entities you can use: "Paradox {serial_number} ", placeholders "serial_number" and "model" are supported. Default: "" - no prefix
MQTT_OUTPUT_TOPIC = 'outputs'
MQTT_DOOR_TOPIC = 'doors'
MQTT_KEYPAD_TOPIC = 'keypads'
MQTT_STATES_TOPIC = 'states'
MQTT_RAW_TOPIC = 'raw'
MQTT_NOTIFICATIONS_TOPIC = 'notifications'
MQTT_SEND_PANIC_TOPIC = 'panic'
MQTT_PUBLISH_RAW_EVENTS = True
MQTT_INTERFACE_TOPIC = 'interface'
MQTT_TOGGLE_CODES = {}
MQTT_USE_NUMERIC_STATES = False # use 0 and 1 instead of True and False
MQTT_PUBLISH_COMMAND_STATUS = False # Publish command statuses to MQTT
MQTT_COMMAND_STATUS_TOPIC = "command_status"
MQTT_HOMEASSISTANT_AUTODISCOVERY_ENABLE = False
MQTT_HOMEASSISTANT_CODE = None
HOMEASSISTANT_NOTIFICATIONS_ENABLE = False
HOMEASSISTANT_NOTIFICATIONS_NOTIFIER_NAME = 'notify'
HOMEASSISTANT_NOTIFICATIONS_MIN_EVENT_LEVEL = 'INFO'
HOMEASSISTANT_PUBLISH_PARTITION_PROPERTIES = [
'target_state',
'current_state'
]
HOMEASSISTANT_PUBLISH_ZONE_PROPERTIES = [
'open',
'tamper'
]
HOMEASSISTANT_NOTIFICATIONS_EVENT_FILTERS = [ # list of tags to include or exclude see hardware event.py for tag list
'live,alarm,-restore', # or
'trouble,-clock', # or
'live,tamper'
]
2024-07-31 17:54:56,731 - INFO - PAI - Starting Paradox Alarm Interface 3.5.0
2024-07-31 17:54:56,731 - INFO - PAI - Config loaded from /etc/pai/pai.conf
2024-07-31 17:54:56,732 - INFO - PAI - Console Log level set to 20
2024-07-31 17:54:56,887 - INFO - PAI.paradox.interfaces - Starting BasicMQTTInterface Interface
2024-07-31 17:54:56,891 - INFO - PAI.paradox.interfaces.mqtt.core - MQTT loop started
2024-07-31 17:54:56,892 - INFO - PAI - Starting...
2024-07-31 17:54:56,892 - INFO - PAI.paradox.paradox - Connecting to interface
2024-07-31 17:54:56,893 - INFO - PAI.paradox.paradox - Using Serial Connection
2024-07-31 17:54:56,913 - INFO - PAI.paradox.connections.serial_connection - Connecting to serial port /dev/ttyUSB0
2024-07-31 17:54:56,923 - INFO - PAI.paradox.connections.serial_connection - Serial port open
2024-07-31 17:54:56,925 - INFO - PAI.paradox.paradox - Connecting to Panel
2024-07-31 17:54:57,906 - INFO - PAI.paradox.interfaces.mqtt.core - MQTT Broker Connected
2024-07-31 17:55:01,938 - ERROR - PAI.paradox.paradox - Timeout while connecting to panel. Is an other connection active?
2024-07-31 17:55:01,964 - ERROR - PAI - Unable to connect to alarm
2024-07-31 17:55:04,968 - INFO - PAI - Starting...
2024-07-31 17:55:04,969 - INFO - PAI.paradox.paradox - Disconnecting from the Alarm Panel
2024-07-31 17:55:04,969 - INFO - PAI.paradox.paradox - Clean Session
2024-07-31 17:55:04,970 - INFO - PAI.paradox.paradox - Cleaning previous session. Closing connection
2024-07-31 17:55:05,015 - ERROR - PAI.paradox.connections.protocols - Connection was closed: None
2024-07-31 17:55:05,016 - ERROR - PAI.paradox.connections.serial_connection - Connection to panel was lost
2024-07-31 17:55:05,023 - INFO - PAI.paradox.paradox - Disconnected from the Alarm Panel
2024-07-31 17:55:05,024 - INFO - PAI.paradox.paradox - Connecting to interface
2024-07-31 17:55:05,024 - INFO - PAI.paradox.connections.serial_connection - Connecting to serial port /dev/ttyUSB0
2024-07-31 17:55:05,033 - INFO - PAI.paradox.connections.serial_connection - Serial port open
2024-07-31 17:55:05,035 - INFO - PAI.paradox.paradox - Connecting to Panel
2024-07-31 17:55:10,051 - ERROR - PAI.paradox.paradox - Timeout while connecting to panel. Is an other connection
Beta Was this translation helpful? Give feedback.
All reactions