Hi guys, new to this integration. I tried to get this set up last night, and ran into some problems. I wanted to see if anyone here has encountered something like this.
My AppDaemon apps.yaml:
qolsys_panel:
module: qolsys_client
class: QolsysClient
mqtt_namespace: mqtt
qolsys_host: REDACTED
qolsys_token: REDACTED
request_topic: qolsys/requests # Optional
qolsys_info_topic: qolsys/panel/info # Optional
qolsys_zone_update_topic: qolsys/panel/zone_update # Optional
qolsys_zone_event_topic: qolsys/panel/zone_event # Optional
qolsys_alarming_event_topic: qolsys/panel/alarming # Optional
qolsys_disarming_event_topic: qolsys/panel/disarm # Optional
qolsys_confirm_arm_code: False # Optional
qolsys_confirm_disarm_code: False # Optional
qolsys_arm_away_always_instant: False # Optional
homeassistant_mqtt_discovery_topic: homeassistant/
And my appdaemon.yaml:
secrets: /config/secrets.yaml
appdaemon:
latitude: REDACTED
longitude: REDACTED
elevation: REDACTED
time_zone: REDACTED
plugins:
HASS:
type: hass
MQTT:
type: mqtt
namespace: mqtt #you will need this namespace name in your apps.yaml
# The IP Address or hostname of your MQTT broker.
client_host: REDACTED
client_port: 1883
client_user: homeassistant
client_password: REDACTED
http:
url: http://127.0.0.1:5050
admin:
api:
hadashboard:
When I start AppDaemon, I see the following in the log:
-----------------------------------------------------------
Add-on: AppDaemon 4
Python Apps and Dashboard using AppDaemon 4.x for Home Assistant
-----------------------------------------------------------
Add-on version: 0.7.0
You are running the latest version of this add-on.
System: Debian GNU/Linux 11 (bullseye) (amd64 / qemux86-64)
Home Assistant Core: 2021.8.7
Home Assistant Supervisor: 2021.09.6
-----------------------------------------------------------
Please, share the above information when looking for help
or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing...
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] appdaemon.sh: executing...
[cont-init.d] appdaemon.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[22:29:08] INFO: Starting AppDaemon...
2021-09-29 22:29:09.149087 INFO AppDaemon: AppDaemon Version 4.1.0 starting
2021-09-29 22:29:09.149235 INFO AppDaemon: Python version is 3.9.5
2021-09-29 22:29:09.149332 INFO AppDaemon: Configuration read from: /config/appdaemon/appdaemon.yaml
2021-09-29 22:29:09.149441 INFO AppDaemon: Added log: AppDaemon
2021-09-29 22:29:09.149575 INFO AppDaemon: Added log: Error
2021-09-29 22:29:09.149667 INFO AppDaemon: Added log: Access
2021-09-29 22:29:09.149759 INFO AppDaemon: Added log: Diag
2021-09-29 22:29:09.161093 INFO AppDaemon: Loading Plugin HASS using class HassPlugin from module hassplugin
2021-09-29 22:29:09.180719 INFO HASS: HASS Plugin Initializing
2021-09-29 22:29:09.180871 INFO HASS: HASS Plugin initialization complete
2021-09-29 22:29:09.181078 INFO AppDaemon: Loading Plugin MQTT using class MqttPlugin from module mqttplugin
2021-09-29 22:29:09.185219 INFO MQTT: MQTT Plugin Initializing
2021-09-29 22:29:09.185345 INFO MQTT: Using 'mqtt-client/status' as Will Topic
2021-09-29 22:29:09.185462 INFO MQTT: Using 'mqtt-client/status' as Birth Topic
2021-09-29 22:29:09.185588 INFO MQTT: Using appdaemon_mqtt_client as Client ID
2021-09-29 22:29:09.186034 INFO AppDaemon: Initializing HTTP
2021-09-29 22:29:09.186246 INFO AppDaemon: Using 'ws' for event stream
2021-09-29 22:29:09.188255 INFO AppDaemon: Starting API
2021-09-29 22:29:09.190447 INFO AppDaemon: Starting Old Admin Interface
2021-09-29 22:29:09.190703 INFO AppDaemon: Starting Dashboards
2021-09-29 22:29:09.202985 INFO HASS: Connected to Home Assistant 2021.8.7
2021-09-29 22:29:09.206767 INFO MQTT: Connected to Broker at URL REDACTED:1883
2021-09-29 22:29:09.213701 INFO AppDaemon: Got initial state from namespace mqtt
2021-09-29 22:29:09.213899 INFO MQTT: MQTT Plugin initialization complete
2021-09-29 22:29:09.215313 INFO AppDaemon: App 'qolsys_panel' added
2021-09-29 22:29:09.215777 INFO AppDaemon: Found 1 total apps
2021-09-29 22:29:09.216016 INFO AppDaemon: Starting Apps with 1 workers and 1 pins
2021-09-29 22:29:09.216519 INFO AppDaemon: Running on port 5050
2021-09-29 22:29:09.246896 INFO HASS: Evaluating startup conditions
2021-09-29 22:29:09.254619 INFO HASS: Startup condition met: hass state=RUNNING
2021-09-29 22:29:09.254826 INFO HASS: All startup conditions met
2021-09-29 22:29:09.266776 INFO AppDaemon: Got initial state from namespace default
2021-09-29 22:29:11.221233 INFO AppDaemon: Scheduler running in realtime
2021-09-29 22:29:11.224727 INFO AppDaemon: Adding /config/appdaemon/apps to module import path
2021-09-29 22:29:11.225184 INFO AppDaemon: Adding /config/appdaemon/apps/ad-qolsys to module import path
2021-09-29 22:29:11.232683 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/hello.py - ignoring
2021-09-29 22:29:11.233824 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/ad-qolsys/door_window.py - ignoring
2021-09-29 22:29:11.234942 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/ad-qolsys/qolsys_socket.py - ignoring
2021-09-29 22:29:11.235989 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/ad-qolsys/qolsys_requests.py - ignoring
2021-09-29 22:29:11.237054 INFO AppDaemon: Loading App Module: /config/appdaemon/apps/ad-qolsys/qolsys_client.py
2021-09-29 22:29:11.247390 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/ad-qolsys/partition.py - ignoring
2021-09-29 22:29:11.248318 INFO AppDaemon: Initializing app qolsys_panel using class QolsysClient from module qolsys_client
2021-09-29 22:29:11.338711 INFO qolsys_panel: Creating qolsys_socket
2021-09-29 22:29:11.339595 INFO qolsys_panel: wrapping socket
2021-09-29 22:29:11.341740 INFO qolsys_panel: connecting to socket
2021-09-30 08:30:47.256521 INFO AppDaemon: New client Admin Client connected
When I look in my MQTT broker (I’m using Mosquitto broker), I see the following:
1632957197: Saving in-memory database to /data/mosquitto.db.
1632957335: Socket error on client 68mLtv5ZuFjrKToJgf6gTt, disconnecting.
1632957342: New connection from REDACTED on port 1883.
1632957342: New client connected from REDACTED as 4XVnPnFoiqsD0nmzQGQLS7 (p2, c1, k60, u'homeassistant').
1632957528: Socket error on client 4XVnPnFoiqsD0nmzQGQLS7, disconnecting.
1632957535: New connection from REDACTED on port 1883.
1632957535: New client connected from REDACTED as 667wnOxBd8A8IgpQzbXvM0 (p2, c1, k60, u'homeassistant').
1632958221: Socket error on client 667wnOxBd8A8IgpQzbXvM0, disconnecting.
1632958228: New connection from REDACTED on port 1883.
1632958228: New client connected from REDACTED as 1OnlKZexFAfg3tZfOg1Mcu (p2, c1, k60, u'homeassistant').
1632958998: Saving in-memory database to /data/mosquitto.db.
1632960799: Saving in-memory database to /data/mosquitto.db.
1632962600: Saving in-memory database to /data/mosquitto.db.
1632964401: Saving in-memory database to /data/mosquitto.db.
1632965444: New connection from REDACTED on port 1883.
1632965444: New client connected from REDACTED as appdaemon_mqtt_client (p2, c1, k60).
1632965717: Client appdaemon_mqtt_client disconnected.
1632965730: New connection from REDACTED on port 1883.
1632965730: New client connected from REDACTED as appdaemon_mqtt_client (p2, c1, k60).
1632966202: Saving in-memory database to /data/mosquitto.db.
1632966554: New connection from REDACTED on port 1883.
1632966554: Client <unknown> disconnected due to protocol error.
1632966554: New connection from REDACTED on port 1883.
1632966554: Client <unknown> disconnected due to protocol error.
1632966554: New connection from REDACTED on port 1883.
1632966554: Client <unknown> disconnected due to protocol error.
1632966554: New connection from REDACTED on port 1883.
1632966554: Client <unknown> disconnected due to protocol error.
1632966554: New connection from REDACTED on port 1883.
1632966554: Client <unknown> disconnected due to protocol error.
1632966554: New connection from REDACTED on port 1883.
1632966554: Client <unknown> disconnected due to protocol error.
1632966554: New connection from REDACTED on port 1883.
1632966554: Client <unknown> disconnected due to protocol error.
1632966554: New connection from REDACTED on port 1883.
1632966554: Client <unknown> disconnected due to protocol error.
1632966554: New connection from REDACTED on port 1883.
1632966554: Client <unknown> disconnected due to protocol error.
1632966554: New connection from REDACTED on port 1883.
1632966554: Client <unknown> disconnected due to protocol error.
1632966961: Client appdaemon_mqtt_client disconnected.
1632966973: New connection from REDACTED on port 1883.
1632966973: New client connected from REDACTED as appdaemon_mqtt_client (p2, c1, k60).
1632968003: Saving in-memory database to /data/mosquitto.db.
1632968045: Client appdaemon_mqtt_client disconnected.
1632968211: New connection from REDACTED on port 1883.
1632968211: New client connected from REDACTED as appdaemon_mqtt_client (p2, c1, k60).
1632968936: Client appdaemon_mqtt_client disconnected.
1632968949: New connection from REDACTED on port 1883.
1632968949: New client connected from REDACTED as appdaemon_mqtt_client (p2, c1, k60, u'homeassistant').
1632969804: Saving in-memory database to /data/mosquitto.db.
I don’t see any of the devices connected to the panel in HA, nor do I see the panel in HA. I’m not sure what’s going wrong here, and any advice would be appreciated.