Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop working after update to HA OS 5.11 #199

Closed
sicarriere opened this issue Feb 8, 2021 · 97 comments
Closed

Stop working after update to HA OS 5.11 #199

sicarriere opened this issue Feb 8, 2021 · 97 comments
Labels
bug Something isn't working home-assistant Home Assistant
Milestone

Comments

@sicarriere
Copy link

Alarm system

SP6000 with IP100

Environment

RPI 4
HA core-2021.2.1
HA supervisor-2021.02.5
Home Assistant OS 5.11

Git branch

Prod 2.2.5

Describe the bug

After updating from HA OS 5.10 to 5.11, PAI stop working. I'm using IP Connection type. Was working without problem with HA OS 5.10.

To Reproduce

Logs

2021-02-08 15:27:40,477 - INFO - PAI - Starting...
2021-02-08 15:27:40,477 - INFO - PAI.paradox.paradox - Disconnecting from the Alarm Panel
2021-02-08 15:27:40,478 - INFO - PAI.paradox.paradox - Clean Session
2021-02-08 15:27:40,479 - INFO - PAI.paradox.paradox - Connecting to interface
2021-02-08 15:27:40,480 - INFO - PAI.paradox.connections.serial_connection - Connecting to serial port /dev/ttyS1
2021-02-08 15:27:40,481 - INFO - PAI.paradox.connections.serial_connection - /dev/ttyS1 is not readable/writable. Trying to fix...
2021-02-08 15:27:40,482 - ERROR - PAI.paradox.connections.serial_connection - Failed to update file /dev/ttyS1 permissions
2021-02-08 15:27:40,484 - ERROR - PAI.paradox.paradox - Failed to connect to interface
2021-02-08 15:27:40,486 - ERROR - PAI - Unable to connect to alarm

Here my config :
LOGGING_FILE: null
LOGGING_LEVEL_CONSOLE: 20
LOGGING_LEVEL_FILE: 40
LOGGING_DUMP_PACKETS: false
LOGGING_DUMP_MESSAGES: false
LOGGING_DUMP_STATUS: false
LOGGING_DUMP_EVENTS: false
CONNECTION_TYPE: IP
SERIAL_PORT: /dev/ttyUSB0
SERIAL_BAUD: 9600
IP_CONNECTION_HOST: 192.168.xxx.xxx
IP_CONNECTION_PORT: 10000
IP_CONNECTION_PASSWORD: xxxxxxxxxx
IP_CONNECTION_SITEID: null
IP_CONNECTION_EMAIL: null
IP_CONNECTION_PANEL_SERIAL: null
IP_CONNECTION_BARE: false
LIMITS:
pgm: []
partition:
- 1
SYNC_TIME: false
PASSWORD: 'XXXX'
MQTT_ENABLE: true
MQTT_HOST: core-mosquitto
MQTT_PORT: 1883
MQTT_USERNAME: xxxxxxxxxx
MQTT_PASSWORD: xxxxxxxxxx
MQTT_RETAIN: true
MQTT_BIND_ADDRESS: 127.0.0.1
MQTT_BIND_PORT: 0
MQTT_HOMEASSISTANT_AUTODISCOVERY_ENABLE: false

@sicarriere sicarriere added bug Something isn't working to be confirmed Reported but not yet confirmed labels Feb 8, 2021
@Gunth
Copy link

Gunth commented Feb 8, 2021

I have the same issue but note sure if it is the upgrade of HA OS or HA Supervisor to 2021.02.5.
I'm seeing a lot of add-ons upgading with the change log "Update add-on configuration for Supervisor 2021.2"

@Gunth
Copy link

Gunth commented Feb 8, 2021

In the supervisor log there is this :

21-02-08 20:36:01 WARNING (MainThread) [supervisor.addons.options] Unknown options LOGGING_FILE
21-02-08 20:36:01 WARNING (MainThread) [supervisor.addons.options] Unknown options LOGGING_LEVEL_CONSOLE
21-02-08 20:36:01 WARNING (MainThread) [supervisor.addons.options] Unknown options LOGGING_LEVEL_FILE
21-02-08 20:36:01 WARNING (MainThread) [supervisor.addons.options] Unknown options LOGGING_DUMP_PACKETS
21-02-08 20:36:01 WARNING (MainThread) [supervisor.addons.options] Unknown options LOGGING_DUMP_MESSAGES
21-02-08 20:36:01 WARNING (MainThread) [supervisor.addons.options] Unknown options LOGGING_DUMP_STATUS
21-02-08 20:36:01 WARNING (MainThread) [supervisor.addons.options] Unknown options LOGGING_DUMP_EVENTS
21-02-08 20:36:01 WARNING (MainThread) [supervisor.addons.options] Unknown options CONNECTION_TYPE
21-02-08 20:36:01 WARNING (MainThread) [supervisor.addons.options] Unknown options SERIAL_PORT
21-02-08 20:36:01 WARNING (MainThread) [supervisor.addons.options] Unknown options SERIAL_BAUD
21-02-08 20:36:01 WARNING (MainThread) [supervisor.addons.options] Unknown options IP_CONNECTION_HOST
21-02-08 20:36:01 WARNING (MainThread) [supervisor.addons.options] Unknown options IP_CONNECTION_PORT
21-02-08 20:36:01 WARNING (MainThread) [supervisor.addons.options] Unknown options IP_CONNECTION_PASSWORD
21-02-08 20:36:01 WARNING (MainThread) [supervisor.addons.options] Unknown options IP_CONNECTION_SITEID
21-02-08 20:36:01 WARNING (MainThread) [supervisor.addons.options] Unknown options IP_CONNECTION_EMAIL
21-02-08 20:36:01 WARNING (MainThread) [supervisor.addons.options] Unknown options IP_CONNECTION_PANEL_SERIAL
21-02-08 20:36:01 WARNING (MainThread) [supervisor.addons.options] Unknown options IP_CONNECTION_BARE
21-02-08 20:36:01 WARNING (MainThread) [supervisor.addons.options] Unknown options LIMITS
21-02-08 20:36:01 WARNING (MainThread) [supervisor.addons.options] Unknown options SYNC_TIME
21-02-08 20:36:01 WARNING (MainThread) [supervisor.addons.options] Unknown options PASSWORD
21-02-08 20:36:01 WARNING (MainThread) [supervisor.addons.options] Unknown options MQTT_ENABLE
21-02-08 20:36:01 WARNING (MainThread) [supervisor.addons.options] Unknown options MQTT_HOST
21-02-08 20:36:01 WARNING (MainThread) [supervisor.addons.options] Unknown options MQTT_PORT
21-02-08 20:36:01 WARNING (MainThread) [supervisor.addons.options] Unknown options MQTT_USERNAME
21-02-08 20:36:01 WARNING (MainThread) [supervisor.addons.options] Unknown options MQTT_PASSWORD
21-02-08 20:36:01 WARNING (MainThread) [supervisor.addons.options] Unknown options MQTT_RETAIN
21-02-08 20:36:01 WARNING (MainThread) [supervisor.addons.options] Unknown options MQTT_BIND_ADDRESS
21-02-08 20:36:01 WARNING (MainThread) [supervisor.addons.options] Unknown options MQTT_BIND_PORT
21-02-08 20:36:01 WARNING (MainThread) [supervisor.addons.options] Unknown options MQTT_HOMEASSISTANT_AUTODISCOVERY_ENABLE
21-02-08 20:36:01 WARNING (MainThread) [supervisor.addons.options] Unknown options MQTT_PUBLISH_STATUS
21-02-08 20:36:03 WARNING (MainThread) [supervisor.addons.options] Unknown options port

@clau-bucur
Copy link
Contributor

Same issue here. After HassOS and Supervisor upgrades.

@yozik04
Copy link
Collaborator

yozik04 commented Feb 8, 2021

@Gunth I'm seeing a lot of add-ons upgading with the change log "Update add-on configuration for Supervisor 2021.2"

What are these addons?

@clau-bucur
Copy link
Contributor

See this one for example: hassio-addons/addon-ssh@5f8a384

@Gunth
Copy link

Gunth commented Feb 8, 2021

VS Code : hassio-addons/addon-vscode@ce707ad
Node Red : hassio-addons/addon-node-red@a870641

All with the same kind of commit

@yozik04
Copy link
Collaborator

yozik04 commented Feb 8, 2021

I also updated that but it does not solve the problem.

@tvl9ops
Copy link

tvl9ops commented Feb 9, 2021

Same here, HA OS 5.11 broke the integration.

@Rusti-gotrage
Copy link

Ditto for me - updated both HASS and Core and now PAI is dead - same errors in my logs as posted above.

@ukrolelo
Copy link

ukrolelo commented Feb 9, 2021

same here with
ERROR - PAI.paradox.connections.serial_connection - Failed to update file /dev/ttyS1 permissions

@marius-venter
Copy link

I have updated to the latest but still getting the errors:
21-02-09 07:38:18 WARNING (MainThread) [supervisor.addons.options] Unknown options LOGGING_FILE 21-02-09 07:38:18 WARNING (MainThread) [supervisor.addons.options] Unknown options LOGGING_LEVEL_CONSOLE 21-02-09 07:38:18 WARNING (MainThread) [supervisor.addons.options] Unknown options LOGGING_LEVEL_FILE 21-02-09 07:38:18 WARNING (MainThread) [supervisor.addons.options] Unknown options LOGGING_DUMP_PACKETS 21-02-09 07:38:18 WARNING (MainThread) [supervisor.addons.options] Unknown options LOGGING_DUMP_MESSAGES 21-02-09 07:38:18 WARNING (MainThread) [supervisor.addons.options] Unknown options LOGGING_DUMP_STATUS 21-02-09 07:38:18 WARNING (MainThread) [supervisor.addons.options] Unknown options LOGGING_DUMP_EVENTS 21-02-09 07:38:18 WARNING (MainThread) [supervisor.addons.options] Unknown options CONNECTION_TYPE 21-02-09 07:38:18 WARNING (MainThread) [supervisor.addons.options] Unknown options SERIAL_PORT 21-02-09 07:38:18 WARNING (MainThread) [supervisor.addons.options] Unknown options SERIAL_BAUD 21-02-09 07:38:18 WARNING (MainThread) [supervisor.addons.options] Unknown options IP_CONNECTION_HOST 21-02-09 07:38:18 WARNING (MainThread) [supervisor.addons.options] Unknown options IP_CONNECTION_PORT 21-02-09 07:38:18 WARNING (MainThread) [supervisor.addons.options] Unknown options IP_CONNECTION_PASSWORD 21-02-09 07:38:18 WARNING (MainThread) [supervisor.addons.options] Unknown options IP_CONNECTION_SITEID 21-02-09 07:38:18 WARNING (MainThread) [supervisor.addons.options] Unknown options IP_CONNECTION_EMAIL 21-02-09 07:38:18 WARNING (MainThread) [supervisor.addons.options] Unknown options IP_CONNECTION_PANEL_SERIAL 21-02-09 07:38:18 WARNING (MainThread) [supervisor.addons.options] Unknown options IP_CONNECTION_BARE 21-02-09 07:38:18 WARNING (MainThread) [supervisor.addons.options] Unknown options LIMITS 21-02-09 07:38:18 WARNING (MainThread) [supervisor.addons.options] Unknown options SYNC_TIME 21-02-09 07:38:18 WARNING (MainThread) [supervisor.addons.options] Unknown options PASSWORD 21-02-09 07:38:18 WARNING (MainThread) [supervisor.addons.options] Unknown options MQTT_ENABLE 21-02-09 07:38:18 WARNING (MainThread) [supervisor.addons.options] Unknown options MQTT_HOST 21-02-09 07:38:18 WARNING (MainThread) [supervisor.addons.options] Unknown options MQTT_PORT 21-02-09 07:38:18 WARNING (MainThread) [supervisor.addons.options] Unknown options MQTT_USERNAME 21-02-09 07:38:18 WARNING (MainThread) [supervisor.addons.options] Unknown options MQTT_PASSWORD 21-02-09 07:38:18 WARNING (MainThread) [supervisor.addons.options] Unknown options MQTT_RETAIN 21-02-09 07:38:18 WARNING (MainThread) [supervisor.addons.options] Unknown options MQTT_BIND_ADDRESS 21-02-09 07:38:18 WARNING (MainThread) [supervisor.addons.options] Unknown options MQTT_BIND_PORT 21-02-09 07:38:18 WARNING (MainThread) [supervisor.addons.options] Unknown options MQTT_HOMEASSISTANT_AUTODISCOVERY_ENABLE

@ukrolelo
Copy link

ukrolelo commented Feb 9, 2021

Why it does even need /dev/ttyS1 if its over LAN ?!

@yozik04
Copy link
Collaborator

yozik04 commented Feb 9, 2021

Because Supervisor maintainers love to break things.

@marius-venter
Copy link

Why it does even need /dev/ttyS1 if its over LAN ?!

I'm guessing it is falling back to defaults if it can't read the configuration

@ukrolelo
Copy link

ukrolelo commented Feb 9, 2021

Why it does even need /dev/ttyS1 if its over LAN ?!

I'm guessing it is falling back to defaults if it can't read the configuration

Yeah sound logic

@ukrolelo
Copy link

ukrolelo commented Feb 9, 2021

Because Supervisor maintainers love to break things.

xD

@ukrolelo
Copy link

ukrolelo commented Feb 9, 2021

Why it does even need /dev/ttyS1 if its over LAN ?!

I'm guessing it is falling back to defaults if it can't read the configuration

2021-02-09 09:44:40,956 - INFO - PAI - Starting Paradox Alarm Interface 2.2.5
2021-02-09 09:44:40,956 - INFO - PAI - Config loaded from /data/options.json
2021-02-09 09:44:40,957 - INFO - PAI - Console Log level set to 20
2021-02-09 09:44:40,959 - INFO - PAI - Starting...
2021-02-09 09:44:40,959 - INFO - PAI.paradox.paradox - Connecting to interface
2021-02-09 09:44:40,960 - INFO - PAI.paradox.paradox - Using Serial Connection
2021-02-09 09:44:41,000 - INFO - PAI.paradox.connections.serial_connection - Connecting to serial port /dev/ttyS1
2021-02-09 09:44:41,000 - INFO - PAI.paradox.connections.serial_connection - /dev/ttyS1 is not readable/writable. Trying to fix...
2021-02-09 09:44:41,001 - ERROR - PAI.paradox.connections.serial_connection - Failed to update file /dev/ttyS1 permissions
2021-02-09 09:44:41,003 - ERROR - PAI.paradox.paradox - Failed to connect to interface
2021-02-09 09:44:41,004 - ERROR - PAI - Unable to connect to alarm

Its loaded correctly so saying

@ukrolelo
Copy link

ukrolelo commented Feb 9, 2021

I wanted to delete
SERIAL_PORT: /dev/ttyUSB0
SERIAL_BAUD: 9600
But it come back :-O

@yozik04
Copy link
Collaborator

yozik04 commented Feb 9, 2021

No. I am 90% that all addons that did not specified configuration schema are now out of luck.
Their documentation tells that addons may not specify schema.
image
From: https://developers.home-assistant.io/docs/add-ons/configuration/

I think this change in supervisor broke it:
https://github.com/home-assistant/supervisor/pull/2510/files

@ukrolelo
Copy link

ukrolelo commented Feb 9, 2021

So what can we do? :-D my knowledge is limited to banana,potato,python :-D

@yozik04
Copy link
Collaborator

yozik04 commented Feb 9, 2021

Can please someone give me output of ha info. I am filing a bug in supervisor repo.

@ukrolelo
Copy link

ukrolelo commented Feb 9, 2021

Can please someone give me output of ha info. I am filing a bug in supervisor repo.

Can you tell me where? like server logs? or PAI logs?

@yozik04
Copy link
Collaborator

yozik04 commented Feb 9, 2021

in ssh plugin.

@Gunth
Copy link

Gunth commented Feb 9, 2021

arch: aarch64
channel: stable
docker: 19.03.13
features:
- reboot
- shutdown
- services
- network
- hostname
- hassos
hassos: "5.11"
homeassistant: 2021.2.2
hostname: homeassistant
logging: info
machine: raspberrypi4-64
operating_system: Home Assistant OS 5.11
state: running
supervisor: 2021.02.6
supported: true
supported_arch:
- aarch64
- armv7
- armhf
timezone: Europe/Brussels

@ukrolelo
Copy link

ukrolelo commented Feb 9, 2021

Interesting i have same but supervisor: 2021.02.5 not supervisor: 2021.02.6
wtf :O
And in dashboard no option to update

@Gunth
Copy link

Gunth commented Feb 9, 2021

I update it this morning, maybe it will come later for you.
But i have the same issue with the supervisor 2021.02.5 and 2021.02.6

@yozik04
Copy link
Collaborator

yozik04 commented Feb 9, 2021

I have filed a bug report. Let's wait for a response.

@wondernomore
Copy link

@ukrolelo

In PAI add-on, click Configuration.
In the configuration, look for the line 'partition: auto' under the 'LIMITS:' heading.
Replace:
partition: auto
with
partition: '1'

@marius-venter
Copy link

Try to specify:
partition: '1'
Worked for me

Greetings, Where it should be specified?

For me it was in the addon configuration page

@ukrolelo
Copy link

Try to specify:
partition: '1'
Worked for me

Greetings, Where it should be specified?

For me it was in the addon configuration page

Thx <3

@ukrolelo
Copy link

@ukrolelo

In PAI add-on, click Configuration.
In the configuration, look for the line 'partition: auto' under the 'LIMITS:' heading.
Replace:
partition: auto
with
partition: '1'

Thx <3

@proasnet
Copy link

proasnet commented Feb 11, 2021

Hi, I am probably banana. I have an updated PAI to last release, 2.3.0 with new config scheme. I have a connector as ESP32 via telnet. I have PAI configured as follow:

LOGGING_LEVEL_CONSOLE: 20
LOGGING_LEVEL_FILE: 40
CONNECTION_TYPE: IP
SERIAL_PORT: /dev/ttyUSB0
SERIAL_BAUD: 57600
IP_CONNECTION_HOST: 192.168.0.180
IP_CONNECTION_PORT: 23
IP_CONNECTION_PASSWORD: paradox
KEEP_ALIVE_INTERVAL: 10
LIMITS:
zone: auto
user: 1-10
door: ''
pgm: 1-5
partition: auto
module: ''
repeater: ''
keypad: ''
key-switch: ''
SYNC_TIME: true
SYNC_TIME_MIN_DRIFT: 60
PASSWORD: '****'
MQTT_ENABLE: true
MQTT_HOST: core-mosquitto
MQTT_PORT: 1883
MQTT_KEEPALIVE: 60
MQTT_USERNAME: pai
MQTT_PASSWORD: ***************
MQTT_HOMEASSISTANT_AUTODISCOVERY_ENABLE: true
COMMAND_ALIAS:
arm: partition all arm
disarm: partition all disarm
MQTT_COMMAND_ALIAS:
armed_home: arm_stay
armed_night: arm_sleep
armed_away: arm
disarmed: disarm
HOMEASSISTANT_NOTIFICATIONS_EVENT_FILTERS:

  • 'live,alarm,-restore'
  • 'live,trouble,-clock'
  • 'live,tamper'
    PUSHBULLET_CONTACTS: []
    PUSHBULLET_EVENT_FILTERS:
  • 'live,alarm,-restore'
  • 'live,trouble,-clock'
  • 'live,tamper'
    PUSHOVER_EVENT_FILTERS:
  • 'live,alarm,-restore'
  • 'live,trouble,-clock'
  • 'live,tamper'
    SIGNAL_CONTACTS: []
    SIGNAL_EVENT_FILTERS:
  • 'live,alarm,-restore'
  • 'live,trouble,-clock'
  • 'live,tamper'
    GSM_CONTACTS: []
    GSM_EVENT_FILTERS:
  • 'live,alarm,-restore'
  • 'live,trouble,-clock'
  • 'live,tamper'
    IP_INTERFACE_ENABLE: true
    IP_INTERFACE_PASSWORD: paradox
    DUMMY_EVENT_FILTERS: []

but PAI is still not connected as next log:

2021-02-11 08:39:28,340 - INFO - PAI - Starting...
2021-02-11 08:39:28,341 - INFO - PAI.paradox.paradox - Disconnecting from the Alarm Panel
2021-02-11 08:39:28,343 - INFO - PAI.paradox.paradox - Clean Session
2021-02-11 08:39:28,344 - INFO - PAI.paradox.paradox - Connecting to interface
2021-02-11 08:39:28,345 - INFO - PAI.paradox.connections.ip.connection - Connecting. Try 1/3
2021-02-11 08:39:28,447 - INFO - PAI.paradox.connections.connection - Connection established
2021-02-11 08:39:28,449 - INFO - PAI.paradox.connections.ip.commands - Authenticating with IP Module
2021-02-11 08:39:28,456 - ERROR - PAI.paradox.connections.protocols - Connection was closed: None
2021-02-11 08:39:28,457 - ERROR - PAI.paradox.connections.connection - Connection was lost
2021-02-11 08:39:30,458 - ERROR - PAI.paradox.connections.ip.connection - Timeout while establishing connection (try 1/3):
2021-02-11 08:39:30,459 - INFO - PAI.paradox.connections.ip.connection - Connecting. Try 2/3
2021-02-11 08:39:30,496 - INFO - PAI.paradox.connections.connection - Connection established
2021-02-11 08:39:30,498 - INFO - PAI.paradox.connections.ip.commands - Authenticating with IP Module
2021-02-11 08:39:30,505 - ERROR - PAI.paradox.connections.protocols - Connection was closed: None
2021-02-11 08:39:30,507 - ERROR - PAI.paradox.connections.connection - Connection was lost
2021-02-11 08:39:32,508 - ERROR - PAI.paradox.connections.ip.connection - Timeout while establishing connection (try 2/3):
2021-02-11 08:39:32,509 - INFO - PAI.paradox.connections.ip.connection - Connecting. Try 3/3
2021-02-11 08:39:32,543 - INFO - PAI.paradox.connections.connection - Connection established
2021-02-11 08:39:32,546 - INFO - PAI.paradox.connections.ip.commands - Authenticating with IP Module
2021-02-11 08:39:32,554 - ERROR - PAI.paradox.connections.protocols - Connection was closed: None
2021-02-11 08:39:32,555 - ERROR - PAI.paradox.connections.connection - Connection was lost
2021-02-11 08:39:34,557 - ERROR - PAI.paradox.connections.ip.connection - Timeout while establishing connection (try 3/3):
2021-02-11 08:39:34,559 - ERROR - PAI.paradox.paradox - Failed to connect to interface
2021-02-11 08:39:34,560 - ERROR - PAI - Unable to connect to alarm

Can me somebody help please?

@gjanarthan
Copy link

Change the IP_CONNECTION_PORT: 23 to IP_CONNECTION_PORT: 100000

@clau-bucur
Copy link
Contributor

clau-bucur commented Feb 11, 2021

Hi, I am probably banana. I have an updated PAI to last release, 2.3.0 with new config scheme. I have a connector as ESP32 via telnet. I have PAI configured as follow:

Can me somebody help please?

Share your old configuration that worked, if you still have it.
But please use the "Insert code" feature to properly format the configuration text.

Change the IP_CONNECTION_PORT: 23 to IP_CONNECTION_PORT: 100000

Maybe his ESP32 runs on the standard telnet port, in which case 23 would be correct.
Anyways, it should be port 10000, one 0 less 😀

@gjanarthan
Copy link

👍

@yozik04
Copy link
Collaborator

yozik04 commented Feb 11, 2021

Time drifted more than allowed: 62.655363 seconds

Fixed in default settings.

Set SYNC_TIME_MIN_DRIFT to 120. SP/MG can not sync to a second precision.

@woody4165
Copy link

Thanks for the really fast fixing!

With this new version, when I arm the alarm, I get only the arming message, but I don't get the armed one and in the alarm panel I get a continuous blinking Watiting icon.

Schermata 2021-02-11 alle 10 59 26

What can I check?

Thanks

@marius-venter
Copy link

Thanks for the really fast fixing!

With this new version, when I arm the alarm, I get only the arming message, but I don't get the armed one and in the alarm panel I get a continuous blinking Watiting icon.

Schermata 2021-02-11 alle 10 59 26

What can I check?

Thanks

Replace:
partition: auto
with
partition: '1'

@clau-bucur
Copy link
Contributor

partition: auto should work usually, in which case PAI will load all active partitions from your panel.
If it's not working, until it's gonna be fixed, it should be replaced with partition: 1-n where n is the number of parititions you currently have.
If you have more than one partition, as I do (3), by saying 'partition: 1 you'll instruct PAI to only load the first partition from your panel.

@woody4165
Copy link

@clau-bucur my configuration was
partition: 1-2
and it was not working fine.
Now with
partition: '1'
It's working fine

@clau-bucur
Copy link
Contributor

I see, then to me it looks like another bug in the limits parsing.
What do you think @yozik04 ?

@proasnet
Copy link

proasnet commented Feb 11, 2021

Hi, I am probably banana. I have an updated PAI to last release, 2.3.0 with new config scheme. I have a connector as ESP32 via telnet. I have PAI configured as follow:
Can me somebody help please?

Share your old configuration that worked, if you still have it.
But please use the "Insert code" feature to properly format the configuration text.

Change the IP_CONNECTION_PORT: 23 to IP_CONNECTION_PORT: 100000

Maybe his ESP32 runs on the standard telnet port, in which case 23 would be correct.
Anyways, it should be port 10000, one 0 less 😀
Paradox EVOHD 7.51
This is my old config:
LOGGING_FILE: /config/paradox.log LOGGING_LEVEL_CONSOLE: 20 LOGGING_LEVEL_FILE: 40 LOGGING_DUMP_PACKETS: true LOGGING_DUMP_MESSAGES: true LOGGING_DUMP_STATUS: false LOGGING_DUMP_EVENTS: false CONNECTION_TYPE: IP SERIAL_PORT: /dev/ttyUSB0 SERIAL_BAUD: 57600 IP_CONNECTION_HOST: 192.168.0.180 IP_CONNECTION_PORT: 23 IP_CONNECTION_PASSWORD: paradox IP_CONNECTION_SITEID: null IP_CONNECTION_EMAIL: null IP_CONNECTION_PANEL_SERIAL: null IP_CONNECTION_BARE: true LIMITS: {} SYNC_TIME: true PASSWORD: **** MQTT_ENABLE: true MQTT_HOST: core-mosquitto MQTT_PORT: 1883 MQTT_USERNAME: pai MQTT_PASSWORD: ****************** MQTT_RETAIN: true MQTT_BIND_ADDRESS: 127.0.0.1 MQTT_BIND_PORT: 0 MQTT_HOMEASSISTANT_AUTODISCOVERY_ENABLE: true

@yozik04
Copy link
Collaborator

yozik04 commented Feb 11, 2021

@clau-bucur my configuration was
partition: 1-2
and it was not working fine.
Now with
partition: '1'
It's working fine

what if you enter '1-2' with quotes?

@yozik04
Copy link
Collaborator

yozik04 commented Feb 11, 2021

I see, then to me it looks like another bug in the limits parsing.
What do you think @yozik04 ?

LIMITS parsing it is 100% covered with tests. Can't be. No idea yet.

@kellerza
Copy link

kellerza commented Feb 11, 2021

what if you enter '1-2' with quotes?

No difference. only partition: 1 works 100% for me

The user interface immediately validates '1-2' as a string and removes the quotes (it's still a valid yaml string as 1-2)

@nardusleroux
Copy link

I have 2 partitions on panel and have tried partition: 1-2 , partition: 1,2 and partition: auto and at least both partitions labels are loaded from panel. Seeing same thing, if I sleep_arm partition 2, I never get armed icon, just keep on flashing arming, but can disarm. There after I cannot sleep_arm again, since still just flashing arming. The partition gets sleep_armed and disarmed succesfully on panel. Here is logs during sleep_arm and disarm. Seems the "Missing Property" is problematic? Partition 2 label is Perimeter.

2021-02-11 20:29:07,569 - INFO - PAI.paradox.interfaces.mqtt.basic - message topic=paradox/control/partitions/Perimeter, payload=arm_sleep
2021-02-11 20:29:07,572 - INFO - PAI.paradox.interfaces.mqtt.basic - Partition command: Perimeter=arm_sleep user: None
2021-02-11 20:29:07,840 - WARNING - PAI.paradox.paradox - Missing property exit_delay in partition/Perimeter
2021-02-11 20:29:08,134 - WARNING - PAI.paradox.paradox - Missing property squawk in partition/House
2021-02-11 20:29:37,598 - WARNING - PAI.paradox.paradox - Missing property arm in partition/Perimeter
2021-02-11 20:29:37,715 - WARNING - PAI.paradox.paradox - Missing property arm_sleep in partition/Perimeter
2021-02-11 20:30:30,505 - INFO - PAI.paradox.interfaces.mqtt.basic - message topic=paradox/control/partitions/Perimeter, payload=disarm
2021-02-11 20:30:30,506 - INFO - PAI.paradox.interfaces.mqtt.basic - Partition command: Perimeter=disarm user: None
2021-02-11 20:30:30,788 - WARNING - PAI.paradox.paradox - Missing property arm_stay in partition/Perimeter
2021-02-11 20:30:30,789 - WARNING - PAI.paradox.paradox - Missing property alarm in partition/Perimeter

@JeanDiv14
Copy link

+1 for the issue. Had been working brilliantly for months. Annoying loop now is that Paradox wont start because it wont take a blank PASSWORD (this was the only way it was working before), and every time I try to change anything in the config file I get this same error...

Failed to save addon configuration, not a valid value for dictionary value @ data['options']. Got {'LOGGING_LEVEL_CONSOLE': 20, 'LOGGING_LEVEL_FILE': 40, 'CONNECTION_TYPE': 'IP', 'SERIAL_PORT': '/dev/ttyUSB0', 'SERIAL_BAUD': 9600, 'IP_CONNECTION_HOST': '192.xx.xx.xx', 'IP_CONNECTION_PORT': 10000, 'IP_CONNECTION_PASSWORD': 'xxxx', 'KEEP_ALIVE_INTERVAL': 10, 'LIMITS': {}, 'SYNC_TIME': True, 'SYNC_TIME_MIN_DRIFT': 60, 'PASSWORD': None, 'MQTT_ENABLE': True, 'MQTT_HOST': 'core-mosquitto', 'MQTT_PORT': 1883, 'MQTT_KEEPALIVE': 60, 'MQTT_USERNAME': 'xxxx', 'MQTT_PASSWORD': 'xxxx', 'MQTT_...

So not able to boot :-(

Any advice, pls?

Tx,
Jean

@brendanpward
Copy link

As someone said before, in the configuration page, copy your old configuration to a text file on your computer. Then press the three dots above your configuration and 'Reset to defaults'. Defaults should work. Then go line by line adding your own settings, saving each time. The limits settings were usually what threw an error in my config.

@clau-bucur
Copy link
Contributor

I could say that these issues appear because the addon configuration is not correctly being translated to PAI configuration json.
@yozik04 correct if I'm wrong. But nothing else changed, just the way the config data gets to PAI.
So, I think the following information would be helpful (I did this too during schema creation process):

  1. what panel are you using (EVO/SP/whatever) and the firmware;
  2. the addon configuration as you have it under PAI addon Configuration tab;
  3. the generated options.json file that the addon creates based on 2.. This is the actual configuration file that PAI is using. This might not be properly generated!

Of course, remove any sensitive data from the attached data, and include it using the "include code" feature.
Now, the hardest part is getting the options.json file. Here's how I did it, using Portainer addon:

  • by default Hassio addons are hidden in Portainer, so you have to unhide them
  • open Portainer and go to Settings and under the Hidden containers section, remove the row with value addon
    image
  • go to Containers, find your PAI addon, and under the Quick actions section click on Exec console
    image
  • under Command select /bin/sh then click Connect
  • after connection type in: more /data/options.json
  • it will show most of the file. Press R to show the rest of the file
  • select the text from the console and paste it here

Here's my example:
Panel: EVO192

Addon config:

LOGGING_LEVEL_CONSOLE: 20
LOGGING_LEVEL_FILE: 40
CONNECTION_TYPE: IP
SERIAL_PORT: /dev/ttyUSB0
SERIAL_BAUD: 9600
IP_CONNECTION_HOST: xxx
IP_CONNECTION_PORT: xxx
IP_CONNECTION_PASSWORD: xxx
KEEP_ALIVE_INTERVAL: 10
LIMITS:
  zone: auto
  user: 1-2
  door: ''
  pgm: 1-5
  partition: auto
  module: 1-2
  repeater: ''
  keypad: 1-2
  key-switch: 1-3
SYNC_TIME: true
SYNC_TIME_MIN_DRIFT: 60
PASSWORD: '0000'
MQTT_ENABLE: true
MQTT_HOST: core-mosquitto
MQTT_PORT: 1883
MQTT_KEEPALIVE: 60
MQTT_USERNAME: xxx
MQTT_PASSWORD: xxx
MQTT_HOMEASSISTANT_AUTODISCOVERY_ENABLE: true
COMMAND_ALIAS:
  arm: partition all arm
  disarm: partition all disarm
MQTT_COMMAND_ALIAS:
  armed_home: arm_stay
  armed_night: arm_sleep
  armed_away: arm
  disarmed: disarm
HOMEASSISTANT_NOTIFICATIONS_EVENT_FILTERS:
  - 'live,alarm,-restore'
  - 'live,trouble,-clock'
  - 'live,tamper'
PUSHBULLET_CONTACTS: []
PUSHBULLET_EVENT_FILTERS:
  - 'live,alarm,-restore'
  - 'live,trouble,-clock'
  - 'live,tamper'
PUSHOVER_EVENT_FILTERS:
  - 'live,alarm,-restore'
  - 'live,trouble,-clock'
  - 'live,tamper'
SIGNAL_CONTACTS: []
SIGNAL_EVENT_FILTERS:
  - 'live,alarm,-restore'
  - 'live,trouble,-clock'
  - 'live,tamper'
GSM_CONTACTS: []
GSM_EVENT_FILTERS:
  - 'live,alarm,-restore'
  - 'live,trouble,-clock'
  - 'live,tamper'
IP_INTERFACE_ENABLE: false
IP_INTERFACE_PASSWORD: paradox
DUMMY_EVENT_FILTERS: []
MQTT_PUBLISH_COMMAND_STATUS: true
MQTT_PUBLISH_RAW_EVENTS: false

options.json:

{
  "LOGGING_LEVEL_CONSOLE": 20,
  "LOGGING_LEVEL_FILE": 40,
  "CONNECTION_TYPE": "IP",
  "SERIAL_PORT": "/dev/ttyUSB0",
  "SERIAL_BAUD": 9600,
  "IP_CONNECTION_HOST": "xxx",
  "IP_CONNECTION_PORT": xxx,
  "IP_CONNECTION_PASSWORD": "xxx",
  "KEEP_ALIVE_INTERVAL": 10,
  "LIMITS": {
    "zone": "auto",
    "user": "1-2",
    "door": "",
    "pgm": "1-5",
    "partition": "auto",
    "module": "1-2",
    "repeater": "",
    "keypad": "1-2",
    "key-switch": "1-3"
  },
  "SYNC_TIME": true,
  "SYNC_TIME_MIN_DRIFT": 60,
  "PASSWORD": "0000",
  "MQTT_ENABLE": true,
  "MQTT_HOST": "core-mosquitto",
  "MQTT_PORT": 1883,
  "MQTT_KEEPALIVE": 60,
  "MQTT_USERNAME": "xxx",
  "MQTT_PASSWORD": "xxx",
  "MQTT_HOMEASSISTANT_AUTODISCOVERY_ENABLE": true,
  "COMMAND_ALIAS": {
    "arm": "partition all arm",
    "disarm": "partition all disarm"
  },
  "MQTT_COMMAND_ALIAS": {
    "armed_home": "arm_stay",
    "armed_night": "arm_sleep",
    "armed_away": "arm",
    "disarmed": "disarm"
  },
  "HOMEASSISTANT_NOTIFICATIONS_EVENT_FILTERS": [
    "live,alarm,-restore",
    "live,trouble,-clock",
    "live,tamper"
  ],
  "PUSHBULLET_CONTACTS": [],
  "PUSHBULLET_EVENT_FILTERS": [
    "live,alarm,-restore",
    "live,trouble,-clock",
    "live,tamper"
  ],
  "PUSHOVER_EVENT_FILTERS": [
    "live,alarm,-restore",
    "live,trouble,-clock",
    "live,tamper"
  ],
  "SIGNAL_CONTACTS": [],
  "SIGNAL_EVENT_FILTERS": [
    "live,alarm,-restore",
    "live,trouble,-clock",
    "live,tamper"
  ],
  "GSM_CONTACTS": [],
  "GSM_EVENT_FILTERS": [
    "live,alarm,-restore",
    "live,trouble,-clock",
    "live,tamper"
  ],
  "IP_INTERFACE_ENABLE": false,
  "IP_INTERFACE_PASSWORD": "paradox",
  "DUMMY_EVENT_FILTERS": [],
  "MQTT_PUBLISH_COMMAND_STATUS": true,
  "MQTT_PUBLISH_RAW_EVENTS": false
}

@yozik04
Copy link
Collaborator

yozik04 commented Feb 11, 2021

@JeanDiv14 0000 equals ``

@yozik04
Copy link
Collaborator

yozik04 commented Feb 11, 2021

2.3.1 released. Hurry to be first and get it nice and shiny with latest bug fixes.

Closing this issue as this is now fixed. Create new issues if you have problems.

@yozik04 yozik04 closed this as completed Feb 11, 2021
@yozik04
Copy link
Collaborator

yozik04 commented Feb 11, 2021

@clau-bucur Thanks for taking care while I was away.

@JeanDiv14
Copy link

As someone said before, in the configuration page, copy your old configuration to a text file on your computer. Then press the three dots above your configuration and 'Reset to defaults'. Defaults should work. Then go line by line adding your own settings, saving each time. The limits settings were usually what threw an error in my config.

I missed it above, but it worked for me!

I went line-by-line, and weirdly it looks like the 1 that was causing the pain was the MQTT Username & Password.. If I pasted the value from notepad, it failed with the dictionary error. When I re-typed it.. it worked. I'm using a MacBook, if that means anything.

Thanks to all for the advice, and for fixing this :-)

@gmow1
Copy link

gmow1 commented Feb 17, 2021

I'm getting the following error, I do not have the Installer code as my installer disappeared...any suggestions?

2021-02-17 08:44:48,804 - INFO - PAI.paradox.connections.ip.commands - Session successfully established with IP Module
2021-02-17 08:44:48,804 - INFO - PAI.paradox.paradox - Connecting to Panel
2021-02-17 08:44:48,907 - INFO - PAI.paradox.paradox - Panel Identified SP6000 version 4.54 build -1
2021-02-17 08:44:48,908 - INFO - PAI.paradox.paradox - Initiating panel connection
2021-02-17 08:44:49,038 - INFO - PAI.paradox.hardware.spectra_magellan.panel - Installer login
2021-02-17 08:44:49,138 - ERROR - PAI.paradox.paradox - Got ERROR Message: Invalid PC Password
2021-02-17 08:44:49,140 - ERROR - PAI.paradox.lib.handlers - Exception caught during message handling
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/paradox/lib/handlers.py", line 112, in handle
await handler(data)
File "/usr/local/lib/python3.7/site-packages/paradox/lib/handlers.py", line 61, in call
result = self._handle(data)
File "/usr/local/lib/python3.7/site-packages/paradox/paradox.py", line 638, in handle_error_message
raise AuthenticationFailed()

@yozik04
Copy link
Collaborator

yozik04 commented Feb 18, 2021

@gmow1 =) Just 0000-9999 to try. Every 5 wrong it locks for I think 15 minutes. I let you do the math.

@gmow1
Copy link

gmow1 commented Feb 18, 2021

Got it figured out, so far so good. Key issues with my setup was PC Password and no 0(zero's) in the PC Password. FYI My setup is MG6000, IP150+ with latest firmware

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working home-assistant Home Assistant
Projects
None yet
Development

No branches or pull requests