Qolsys IQ Panel 2 and 3rd party integration

No, I’m just using the FireHD 8 to display a lovelace dashboard like everyone else does. Through this plugin I have the Alarm card on this dashboard and I control the alarm system and view the contact sensors exclusively through HA.

I’ve moved the Qolsys panel down to my basement now where the siren can still be heard, but it’s otherwise never seen.

@crazeeeyez I looked quickly but it is unfortunately beyond my comprehension of how this all works. I’ll leave it up to the others in this thread who understand better than me.

I can’t find the Ad-qolsys in Hacs and I tried to add repo but I get an error repo to add I get an error about repo structure not compliant for 1.8.1.

Make sure you’re looking under Automation and choosing AppDaemon.

Thanks I’m new to appdaemon and didn’t know I had to turn a new section of HACS got it now thanks.

So I got everything install, got everything added to appdaemon and restarted. I can see alarm panel app in appdaemon what else do I need to do to get it to show up in Home assistant

@andrewblack Add an alarm card to a dashboard Alarm Panel Card - Home Assistant

I suggest checking that the binary sensors have been created and that you are getting INFO and DEBUG messages in the AppDaemon log about sensor state. For example:

2021-10-14 15:21:17.922793 INFO qolsys_panel: Publishing to: mqtt-states/binary_sensor/test/state, Payload: Open

I’m getting closer lol but still have something wrong. I"m taking notes and want to write up a some more detailed instructions for other people. Here is my error log

2021-10-15 05:26:07.080609 INFO AppDaemon: App initialization complete
2021-10-15 05:26:07.063778 INFO qolsys_panel: listner for triggered (ALARM) topic: qolsys/alarm/triggered
2021-10-15 05:26:07.044907 INFO qolsys_panel: listener for arming topic: qolsys/panel/alarming
2021-10-15 05:26:07.008974 INFO qolsys_panel: listener for zone update topic: qolsys/panel/zone_update
2021-10-15 05:26:07.000247 INFO qolsys_panel: listener for zone event topic: qolsys/panel/zone_event
2021-10-15 05:26:06.992027 INFO qolsys_panel: listener for info topic: qolsys/panel/info
2021-10-15 05:26:06.978636 WARNING AppDaemon: Unknown namespace (mqtt) in call_service from qolsys_panel
2021-10-15 05:26:06.975107 INFO qolsys_panel: listener for requests topic: qolsys/requests
2021-10-15 05:26:06.971863 INFO qolsys_panel: QolSys Socket Created
2021-10-15 05:26:06.968824 INFO qolsys_panel: started listener
2021-10-15 05:26:06.965551 INFO qolsys_panel: started listener thread
2021-10-15 05:26:06.963083 INFO qolsys_panel: starting listen
2021-10-15 05:26:06.962359 INFO qolsys_panel: Previous message repeated 1 times
2021-10-15 05:26:06.955628 INFO qolsys_panel: Starting listener thread
2021-10-15 05:26:06.952201 INFO qolsys_panel: Connected wrappedSocket: 
2021-10-15 05:26:01.593798 INFO qolsys_panel: connecting to socket
2021-10-15 05:26:01.586043 INFO qolsys_panel: wrapping socket
2021-10-15 05:26:01.582226 INFO qolsys_panel: Creating qolsys_socket
2021-10-15 05:26:01.568578 INFO hello_world: You are now ready to run Apps!
2021-10-15 05:26:01.565683 INFO hello_world: Hello from AppDaemon
2021-10-15 05:26:01.296943 INFO AppDaemon: Initializing app qolsys_panel using class QolsysClient from module qolsys_client
2021-10-15 05:26:01.275588 INFO AppDaemon: Initializing app hello_world using class HelloWorld from module hello
2021-10-15 05:26:01.245076 INFO AppDaemon: Loading App Module: /config/appdaemon/apps/ad-qolsys/qolsys_client.py
2021-10-15 05:26:01.236219 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/ad-qolsys/qolsys_requests.py - ignoring
2021-10-15 05:26:01.230553 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/ad-qolsys/door_window.py - ignoring
2021-10-15 05:26:01.225314 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/ad-qolsys/partition.py - ignoring
2021-10-15 05:26:01.213511 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/ad-qolsys/qolsys_socket.py - ignoring
2021-10-15 05:26:01.175321 INFO AppDaemon: Loading App Module: /config/appdaemon/apps/hello.py
2021-10-15 05:26:01.132515 INFO AppDaemon: Adding /config/appdaemon/apps/ad-qolsys to module import path
2021-10-15 05:26:01.131062 INFO AppDaemon: Adding /config/appdaemon/apps to module import path
2021-10-15 05:26:01.091439 INFO AppDaemon: Scheduler running in realtime

I had some suggestions in this post Qolsys IQ Panel 2 and 3rd party integration - #368 by big.server that helped me when I was troubleshooting:

  1. Make sure that you can connect to the panel and that it hasn’t locked you out. Sometimes you may have everything working correctly but because of too many connections or attempted connections etc the panel has locked you out

  2. Test MQTT independently so that you can rule that out as an issue. MQTT Explorer is great. It’s visual, very easy to use, and will give you near real-time insights

  3. Set the log level in the appdaemon apps.yaml file in the qolsys section log_level: DEBUG

OK I think AppDaemon is working and connecting now this is my appdaemon log. Looks like Unknown namespace (mqtt) means appdaemon isn’t talking to mqtt for some reason.

2021-10-15 18:21:06.717237 WARNING AppDaemon: Unknown namespace (mqtt) in call_service from qolsys_panel
2021-10-15 18:21:06.808025 DEBUG qolsys_panel: data received from qolsys panel: {"event":"ZONE_EVENT","zone_event_type":"ZONE_ACTIVE","version":1,"zone":{"status":"Closed","zone_id":15},"requestID":"de549294-d8cc-42a1-84f6-b11f7913aea1"}
 len(data): 158
2021-10-15 18:21:06.812479 INFO qolsys_panel: publishing ZONE_EVENT event to: qolsys/panel/zone_event
2021-10-15 18:21:06.815374 DEBUG qolsys_panel: data being published: {"event":"ZONE_EVENT","zone_event_type":"ZONE_ACTIVE","version":1,"zone":{"status":"Closed","zone_id":15},"requestID":"de549294-d8cc-42a1-84f6-b11f7913aea1"}
2021-10-15 18:21:06.817410 DEBUG qolsys_panel: call_service: mqtt/publish, {'namespace': 'mqtt', 'topic': 'qolsys/panel/zone_event', 'payload': '{"event":"ZONE_EVENT","zone_event_type":"ZONE_ACTIVE","version":1,"zone":{"status":"Closed","zone_id":15},"requestID":"de549294-d8cc-42a1-84f6-b11f7913aea1"}\n'}
2021-10-15 18:21:21.773326 DEBUG qolsys_panel: data received from qolsys panel: {"event":"ZONE_EVENT","zone_event_type":"ZONE_ACTIVE","version":1,"zone":{"status":"Closed","zone_id":12},"requestID":"988b944b-969b-4be5-a9e2-5f0951f7bd31"}
 len(data): 158
2021-10-15 18:21:21.779548 INFO qolsys_panel: publishing ZONE_EVENT event to: qolsys/panel/zone_event
2021-10-15 18:21:21.783141 DEBUG qolsys_panel: data being published: {"event":"ZONE_EVENT","zone_event_type":"ZONE_ACTIVE","version":1,"zone":{"status":"Closed","zone_id":12},"requestID":"988b944b-969b-4be5-a9e2-5f0951f7bd31"}
2021-10-15 18:21:21.785539 DEBUG qolsys_panel: call_service: mqtt/publish, {'namespace': 'mqtt', 'topic': 'qolsys/panel/zone_event', 'payload': '{"event":"ZONE_EVENT","zone_event_type":"ZONE_ACTIVE","version":1,"zone":{"status":"Closed","zone_id":12},"requestID":"988b944b-969b-4be5-a9e2-5f0951f7bd31"}\n'}
2021-10-15 18:21:21.786900 INFO AppDaemon: Previous message repeated 2 times
2021-10-15 18:21:21.787894 WARNING AppDaemon: Unknown namespace (mqtt) in call_service from qolsys_panel
2021-10-15 18:21:21.807261 DEBUG qolsys_panel: data received from qolsys panel: {"event":"ZONE_EVENT","zone_event_type":"ZONE_ACTIVE","version":1,"zone":{"status":"Closed","zone_id":12},"requestID":"580d8021-cb50-4dc4-a3d8-1b6504830cb6"}
 len(data): 158

I’m close to giving up and going back to alarm.com integration but I really want this to work.

What does this error mean?

2021-10-15 21:57:38.767632 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/ad-qolsys/partition.py - ignoring

I think I’ve seen some of those warnings in the logs. I don’t think you need to worry about that right now. Have you been able to confirm that MQTT works as expected? You can use the MQTT Broker Integration in the Configuration section (click configure) to see if you can publish a packet a packet (enter anything you want in those fields) and just use # as the topic to listen to.

Also make sure that the Mosquito Broker configuration options are correct. Here’s an example that works for me:

logins:
  - username: xxxxx
    password: xxxxx
customize:
  active: false
  folder: mosquitto
certfile: fullchain.pem
keyfile: privkey.pem
require_certificate: false

Also make sure that /config/configuration.yaml has the correct settings in the mqtt section:

mqtt:
  broker: <broker ip address>       
  port: "1883" #This is the port it automatically works on
  username: xxxxx
  password: xxxxx

Don’t give up too quickly if something isn’t working because the panel may have locked you out so eliminate that as the issue by quickly testing from a terminal:

openssl s_client -host <qolsys ip address.> -port 12345

I think I have appdaemon connected to panel because its trying to publish events but I am getting an unknown namespace error now.

2021-10-15 22:58:50.555478 WARNING AppDaemon: Unknown namespace (mqtt) in call_service from qolsys_panel
2021-10-15 22:58:50.546956 INFO qolsys_panel: publishing ZONE_EVENT event to: qolsys/panel/zone_event

Also if i publish a packet in MQTT while listening to # I see the message about message received so I think MQTT is working

OK I fixed the namespace issue that was a typo of mine. I can now see in AppDaemon logs when I arm and disarm alarm. Also if I connect to MQTT with MQTT Explorer I see the messages. I still don’t have a control panel or any sensors in Home Assistant.

You should set loglevel to debug and restart AppDaemon. Or send an info request

{"event":"INFO", "token":"blah"}

and see what happens in the logs

Two thoughts:

  1. How many sensors do you have ? Are you getting large debug messages in the app daemon logs that show all of the sensors and their state ? Do those messages seem complete or are they truncated ?

  2. Is MQTT discovery on ? It’s on by default but make sure you don’t have a discovery entry in configuration yaml that sets it to False

So I’m going to try again to figure this out. Just restarted MQTT and I can see AppDaemon connect to it.

1634586345: New connection from 172.30.32.1 on port 1883.
1634586345: New client connected from 172.30.32.1 as appdaemon_mqtt_client (p2, c1, k60).

Here is part of my AppDaemon Log. Anything that looks helpful? Should i just delete all my AppDaemon stuff and start over?

2021-10-18 21:55:02.522191 DEBUG AppDaemon: New state: {'entity_id': 'sensor.callbacks_average_executed', 'state': 0.0, 'last_changed': '2021-10-18T21:55:02+02:00', 'attributes': {}}
2021-10-18 21:55:02.522950 DEBUG AppDaemon: sending event locally
2021-10-18 21:55:02.523786 DEBUG AppDaemon: set_state(): thread.thread-0, {'q': 0}
2021-10-18 21:55:02.524414 DEBUG AppDaemon: parse_state: thread.thread-0, {'q': 0}
2021-10-18 21:55:02.525031 DEBUG AppDaemon: Old state: {'entity_id': 'thread.thread-0', 'state': 'idle', 'last_changed': '2021-10-18T21:55:01+02:00', 'attributes': {'q': 0, 'is_alive': True, 'time_called': 'never', 'pinned_apps': ['hello_world']}}
2021-10-18 21:55:02.525485 DEBUG AppDaemon: New state: {'entity_id': 'thread.thread-0', 'state': 'idle', 'last_changed': '2021-10-18T21:55:02+02:00', 'attributes': {'q': 0, 'is_alive': True, 'time_called': 'never', 'pinned_apps': ['hello_world']}}
2021-10-18 21:55:02.526071 DEBUG AppDaemon: sending event locally
2021-10-18 21:55:02.526617 DEBUG AppDaemon: set_state(): thread.thread-1, {'q': 0}
2021-10-18 21:55:02.527235 DEBUG AppDaemon: parse_state: thread.thread-1, {'q': 0}
2021-10-18 21:55:02.527873 DEBUG AppDaemon: Old state: {'entity_id': 'thread.thread-1', 'state': 'idle', 'last_changed': '2021-10-18T21:55:01+02:00', 'attributes': {'q': 0, 'is_alive': True, 'time_called': 'never', 'pinned_apps': ['qolsys_panel']}}
2021-10-18 21:55:02.528312 DEBUG AppDaemon: New state: {'entity_id': 'thread.thread-1', 'state': 'idle', 'last_changed': '2021-10-18T21:55:02+02:00', 'attributes': {'q': 0, 'is_alive': True, 'time_called': 'never', 'pinned_apps': ['qolsys_panel']}}
2021-10-18 21:55:02.528740 DEBUG AppDaemon: sending event locally
2021-10-18 21:55:02.529529 DEBUG AppDaemon: Event type:state_changed:
2021-10-18 21:55:02.530011 DEBUG AppDaemon: {'entity_id': 'sensor.callbacks_average_fired', 'new_state': {'entity_id': 'sensor.callbacks_average_fired', 'state': 0.0, 'last_changed': '2021-10-18T21:55:02+02:00', 'attributes': {}}, 'old_state': {'entity_id': 'sensor.callbacks_average_fired', 'state': 0.0, 'last_changed': '2021-10-18T21:55:01+02:00', 'attributes': {}}}
2021-10-18 21:55:02.530579 DEBUG AppDaemon: process_event_callbacks() admin {'event_type': 'state_changed', 'data': {'entity_id': 'sensor.callbacks_average_fired', 'new_state': {'entity_id': 'sensor.callbacks_average_fired', 'state': 0.0, 'last_changed': '2021-10-18T21:55:02+02:00', 'attributes': {}}, 'old_state': {'entity_id': 'sensor.callbacks_average_fired', 'state': 0.0, 'last_changed': '2021-10-18T21:55:01+02:00', 'attributes': {}}}}
2021-10-18 21:55:02.531655 DEBUG AppDaemon: Event type:state_changed:
2021-10-18 21:55:02.532215 DEBUG AppDaemon: {'entity_id': 'sensor.callbacks_average_executed', 'new_state': {'entity_id': 'sensor.callbacks_average_executed', 'state': 0.0, 'last_changed': '2021-10-18T21:55:02+02:00', 'attributes': {}}, 'old_state': {'entity_id': 'sensor.callbacks_average_executed', 'state': 0.0, 'last_changed': '2021-10-18T21:55:01+02:00', 'attributes': {}}}
2021-10-18 21:55:02.532593 DEBUG AppDaemon: process_event_callbacks() admin {'event_type': 'state_changed', 'data': {'entity_id': 'sensor.callbacks_average_executed', 'new_state': {'entity_id': 'sensor.callbacks_average_executed', 'state': 0.0, 'last_changed': '2021-10-18T21:55:02+02:00', 'attributes': {}}, 'old_state': {'entity_id': 'sensor.callbacks_average_executed', 'state': 0.0, 'last_changed': '2021-10-18T21:55:01+02:00', 'attributes': {}}}}
2021-10-18 21:55:02.533206 DEBUG AppDaemon: Event type:state_changed:
2021-10-18 21:55:02.533551 DEBUG AppDaemon: {'entity_id': 'thread.thread-0', 'new_state': {'entity_id': 'thread.thread-0', 'state': 'idle', 'last_changed': '2021-10-18T21:55:02+02:00', 'attributes': {'q': 0, 'is_alive': True, 'time_called': 'never', 'pinned_apps': ['hello_world']}}, 'old_state': {'entity_id': 'thread.thread-0', 'state': 'idle', 'last_changed': '2021-10-18T21:55:01+02:00', 'attributes': {'q': 0, 'is_alive': True, 'time_called': 'never', 'pinned_apps': ['hello_world']}}}
2021-10-18 21:55:02.533907 DEBUG AppDaemon: process_event_callbacks() admin {'event_type': 'state_changed', 'data': {'entity_id': 'thread.thread-0', 'new_state': {'entity_id': 'thread.thread-0', 'state': 'idle', 'last_changed': '2021-10-18T21:55:02+02:00', 'attributes': {'q': 0, 'is_alive': True, 'time_called': 'never', 'pinned_apps': ['hello_world']}}, 'old_state': {'entity_id': 'thread.thread-0', 'state': 'idle', 'last_changed': '2021-10-18T21:55:01+02:00', 'attributes': {'q': 0, 'is_alive': True, 'time_called': 'never', 'pinned_apps': ['hello_world']}}}}
2021-10-18 21:55:02.534562 DEBUG AppDaemon: Event type:state_changed:
2021-10-18 21:55:02.534961 DEBUG AppDaemon: {'entity_id': 'thread.thread-1', 'new_state': {'entity_id': 'thread.thread-1', 'state': 'idle', 'last_changed': '2021-10-18T21:55:02+02:00', 'attributes': {'q': 0, 'is_alive': True, 'time_called': 'never', 'pinned_apps': ['qolsys_panel']}}, 'old_state': {'entity_id': 'thread.thread-1', 'state': 'idle', 'last_changed': '2021-10-18T21:55:01+02:00', 'attributes': {'q': 0, 'is_alive': True, 'time_called': 'never', 'pinned_apps': ['qolsys_panel']}}}
2021-10-18 21:55:02.535332 DEBUG AppDaemon: process_event_callbacks() admin {'event_type': 'state_changed', 'data': {'entity_id': 'thread.thread-1', 'new_state': {'entity_id': 'thread.thread-1', 'state': 'idle', 'last_changed': '2021-10-18T21:55:02+02:00', 'attributes': {'q': 0, 'is_alive': True, 'time_called': 'never', 'pinned_apps': ['qolsys_panel']}}, 'old_state': {'entity_id': 'thread.thread-1', 'state': 'idle', 'last_changed': '2021-10-18T21:55:01+02:00', 'attributes': {'q': 0, 'is_alive': True, 'time_called': 'never', 'pinned_apps': ['qolsys_panel']}}}}
2021-10-18 21:55:02.536299 DEBUG AppDaemon: thread_async loop, args={'function': <bound method ADStream.process_event of <appdaemon.stream.adstream.ADStream object at 0x7f92146c70>>, 'args': ({'event_type': 'state_changed', 'data': {'entity_id': 'sensor.callbacks_average_fired', 'new_state': {'entity_id': 'sensor.callbacks_average_fired', 'state': 0.0, 'last_changed': '2021-10-18T21:55:02+02:00', 'attributes': {}}, 'old_state': {'entity_id': 'sensor.callbacks_average_fired', 'state': 0.0, 'last_changed': '2021-10-18T21:55:01+02:00', 'attributes': {}}}, 'namespace': 'admin'},), 'kwargs': {}}
2021-10-18 21:55:02.536799 DEBUG AppDaemon: thread_async loop, args={'function': <bound method ADStream.process_event of <appdaemon.stream.adstream.ADStream object at 0x7f92146c70>>, 'args': ({'event_type': 'state_changed', 'data': {'entity_id': 'sensor.callbacks_average_executed', 'new_state': {'entity_id': 'sensor.callbacks_average_executed', 'state': 0.0, 'last_changed': '2021-10-18T21:55:02+02:00', 'attributes': {}}, 'old_state': {'entity_id': 'sensor.callbacks_average_executed', 'state': 0.0, 'last_changed': '2021-10-18T21:55:01+02:00', 'attributes': {}}}, 'namespace': 'admin'},), 'kwargs': {}}
2021-10-18 21:55:02.537276 DEBUG AppDaemon: thread_async loop, args={'function': <bound method ADStream.process_event of <appdaemon.stream.adstream.ADStream object at 0x7f92146c70>>, 'args': ({'event_type': 'state_changed', 'data': {'entity_id': 'thread.thread-0', 'new_state': {'entity_id': 'thread.thread-0', 'state': 'idle', 'last_changed': '2021-10-18T21:55:02+02:00', 'attributes': {'q': 0, 'is_alive': True, 'time_called': 'never', 'pinned_apps': ['hello_world']}}, 'old_state': {'entity_id': 'thread.thread-0', 'state': 'idle', 'last_changed': '2021-10-18T21:55:01+02:00', 'attributes': {'q': 0, 'is_alive': True, 'time_called': 'never', 'pinned_apps': ['hello_world']}}}, 'namespace': 'admin'},), 'kwargs': {}}
2021-10-18 21:55:02.537772 DEBUG AppDaemon: thread_async loop, args={'function': <bound method ADStream.process_event of <appdaemon.stream.adstream.ADStream object at 0x7f92146c70>>, 'args': ({'event_type': 'state_changed', 'data': {'entity_id': 'thread.thread-1', 'new_state': {'entity_id': 'thread.thread-1', 'state': 'idle', 'last_changed': '2021-10-18T21:55:02+02:00', 'attributes': {'q': 0, 'is_alive': True, 'time_called': 'never', 'pinned_apps': ['qolsys_panel']}}, 'old_state': {'entity_id': 'thread.thread-1', 'state': 'idle', 'last_changed': '2021-10-18T21:55:01+02:00', 'attributes': {'q': 0, 'is_alive': True, 'time_called': 'never', 'pinned_apps': ['qolsys_panel']}}}, 'namespace': 'admin'},), 'kwargs': {}}
2021-10-18 21:55:02.538608 DEBUG AppDaemon: --> {'data': {'event_type': 'state_changed', 'data': {'entity_id': 'sensor.callbacks_average_fired', 'new_state': {'entity_id': 'sensor.callbacks_average_fired', 'state': 0.0, 'last_changed': '2021-10-18T21:55:02+02:00', 'attributes': {}}, 'old_state': {'entity_id': 'sensor.callbacks_average_fired', 'state': 0.0, 'last_changed': '2021-10-18T21:55:01+02:00', 'attributes': {}}}, 'namespace': 'admin'}, 'response_id': '4eecf80c-3e66-42f9-8959-4ae289767212', 'response_type': 'state_changed'}
2021-10-18 21:55:02.539650 DEBUG AppDaemon: --> {'data': {'event_type': 'state_changed', 'data': {'entity_id': 'sensor.callbacks_average_executed', 'new_state': {'entity_id': 'sensor.callbacks_average_executed', 'state': 0.0, 'last_changed': '2021-10-18T21:55:02+02:00', 'attributes': {}}, 'old_state': {'entity_id': 'sensor.callbacks_average_executed', 'state': 0.0, 'last_changed': '2021-10-18T21:55:01+02:00', 'attributes': {}}}, 'namespace': 'admin'}, 'response_id': '4eecf80c-3e66-42f9-8959-4ae289767212', 'response_type': 'state_changed'}
2021-10-18 21:55:02.540811 DEBUG AppDaemon: --> {'data': {'event_type': 'state_changed', 'data': {'entity_id': 'thread.thread-0', 'new_state': {'entity_id': 'thread.thread-0', 'state': 'idle', 'last_changed': '2021-10-18T21:55:02+02:00', 'attributes': {'q': 0, 'is_alive': True, 'time_called': 'never', 'pinned_apps': ['hello_world']}}, 'old_state': {'entity_id': 'thread.thread-0', 'state': 'idle', 'last_changed': '2021-10-18T21:55:01+02:00', 'attributes': {'q': 0, 'is_alive': True, 'time_called': 'never', 'pinned_apps': ['hello_world']}}}, 'namespace': 'admin'}, 'response_id': '4eecf80c-3e66-42f9-8959-4ae289767212', 'response_type': 'state_changed'}
2021-10-18 21:55:02.541828 DEBUG AppDaemon: --> {'data': {'event_type': 'state_changed', 'data': {'entity_id': 'thread.thread-1', 'new_state': {'entity_id': 'thread.thread-1', 'state': 'idle', 'last_changed': '2021-10-18T21:55:02+02:00', 'attributes': {'q': 0, 'is_alive': True, 'time_called': 'never', 'pinned_apps': ['qolsys_panel']}}, 'old_state': {'entity_id': 'thread.thread-1', 'state': 'idle', 'last_changed': '2021-10-18T21:55:01+02:00', 'attributes': {'q': 0, 'is_alive': True, 'time_called': 'never', 'pinned_apps': ['qolsys_panel']}}}, 'namespace': 'admin'}, 'response_id': '4eecf80c-3e66-42f9-8959-4ae289767212', 'response_type': 'state_changed'}
2021-10-18 21:55:02.672331 DEBUG AppDaemon: get_state: thread.thread-0.None None True
2021-10-18 21:55:02.673229 DEBUG AppDaemon: get_state: thread.thread-1.None None True
2021-10-18 21:55:02.673809 DEBUG HASS: Utility
2021-10-18 21:55:02.674392 DEBUG AppDaemon: set_state(): sensor.appdaemon_uptime, {'state': '0:06:12'}
2021-10-18 21:55:02.674999 DEBUG AppDaemon: parse_state: sensor.appdaemon_uptime, {'state': '0:06:12'}
2021-10-18 21:55:02.675633 DEBUG AppDaemon: Old state: {'entity_id': 'sensor.appdaemon_uptime', 'state': '0:06:11', 'last_changed': '2021-10-18T21:55:01+02:00', 'attributes': {}}
2021-10-18 21:55:02.676159 DEBUG AppDaemon: New state: {'entity_id': 'sensor.appdaemon_uptime', 'state': '0:06:12', 'last_changed': '2021-10-18T21:55:02+02:00', 'attributes': {}}
2021-10-18 21:55:02.676624 DEBUG AppDaemon: sending event locally
2021-10-18 21:55:02.677182 DEBUG AppDaemon: Util loop compute time: 33.0ms, check_config()=28.0ms, other=5.0ms
2021-10-18 21:55:02.678038 DEBUG AppDaemon: Event type:state_changed:
2021-10-18 21:55:02.678573 DEBUG AppDaemon: {'entity_id': 'sensor.appdaemon_uptime', 'new_state': {'entity_id': 'sensor.appdaemon_uptime', 'state': '0:06:12', 'last_changed': '2021-10-18T21:55:02+02:00', 'attributes': {}}, 'old_state': {'entity_id': 'sensor.appdaemon_uptime', 'state': '0:06:11', 'last_changed': '2021-10-18T21:55:01+02:00', 'attributes': {}}}
2021-10-18 21:55:02.679126 DEBUG AppDaemon: process_event_callbacks() admin {'event_type': 'state_changed', 'data': {'entity_id': 'sensor.appdaemon_uptime', 'new_state': {'entity_id': 'sensor.appdaemon_uptime', 'state': '0:06:12', 'last_changed': '2021-10-18T21:55:02+02:00', 'attributes': {}}, 'old_state': {'entity_id': 'sensor.appdaemon_uptime', 'state': '0:06:11', 'last_changed': '2021-10-18T21:55:01+02:00', 'attributes': {}}}}
2021-10-18 21:55:02.680114 DEBUG AppDaemon: thread_async loop, args={'function': <bound method ADStream.process_event of <appdaemon.stream.adstream.ADStream object at 0x7f92146c70>>, 'args': ({'event_type': 'state_changed', 'data': {'entity_id': 'sensor.appdaemon_uptime', 'new_state': {'entity_id': 'sensor.appdaemon_uptime', 'state': '0:06:12', 'last_changed': '2021-10-18T21:55:02+02:00', 'attributes': {}}, 'old_state': {'entity_id': 'sensor.appdaemon_uptime', 'state': '0:06:11', 'last_changed': '2021-10-18T21:55:01+02:00', 'attributes': {}}}, 'namespace': 'admin'},), 'kwargs': {}}
2021-10-18 21:55:02.681097 DEBUG AppDaemon: --> {'data': {'event_type': 'state_changed', 'data': {'entity_id': 'sensor.appdaemon_uptime', 'new_state': {'entity_id': 'sensor.appdaemon_uptime', 'state': '0:06:12', 'last_changed': '2021-10-18T21:55:02+02:00', 'attributes': {}}, 'old_state': {'entity_id': 'sensor.appdaemon_uptime', 'state': '0:06:11', 'last_changed': '2021-10-18T21:55:01+02:00', 'attributes': {}}}, 'namespace': 'admin'}, 'response_id': '4eecf80c-3e66-42f9-8959-4ae289767212', 'response_type': 'state_changed'}
2021-10-18 21:55:03.531580 DEBUG AppDaemon: set_state(): sensor.callbacks_average_fired, {'state': 0.0}
2021-10-18 21:55:03.532214 DEBUG AppDaemon: parse_state: sensor.callbacks_average_fired, {'state': 0.0}
2021-10-18 21:55:03.532741 DEBUG AppDaemon: Old state: {'entity_id': 'sensor.callbacks_average_fired', 'state': 0.0, 'last_changed': '2021-10-18T21:55:02+02:00', 'attributes': {}}
2021-10-18 21:55:03.533111 DEBUG AppDaemon: New state: {'entity_id': 'sensor.callbacks_average_fired', 'state': 0.0, 'last_changed': '2021-10-18T21:55:03+02:00', 'attributes': {}}
2021-10-18 21:55:03.533486 DEBUG AppDaemon: sending event locally
2021-10-18 21:55:03.534096 DEBUG AppDaemon: set_state(): sensor.callbacks_average_executed, {'state': 0.0}
2021-10-18 21:55:03.534539 DEBUG AppDaemon: parse_state: sensor.callbacks_average_executed, {'state': 0.0}
2021-10-18 21:55:03.535144 DEBUG AppDaemon: Old state: {'entity_id': 'sensor.callbacks_average_executed', 'state': 0.0, 'last_changed': '2021-10-18T21:55:02+02:00', 'attributes': {}}
2021-10-18 21:55:03.535498 DEBUG AppDaemon: New state: {'entity_id': 'sensor.callbacks_average_executed', 'state': 0.0, 'last_changed': '2021-10-18T21:55:03+02:00', 'attributes': {}}
2021-10-18 21:55:03.535820 DEBUG AppDaemon: sending event locally
2021-10-18 21:55:03.536311 DEBUG AppDaemon: set_state(): thread.thread-0, {'q': 0}
2021-10-18 21:55:03.536793 DEBUG AppDaemon: parse_state: thread.thread-0, {'q': 0}
2021-10-18 21:55:03.537316 DEBUG AppDaemon: Old state: {'entity_id': 'thread.thread-0', 'state': 'idle', 'last_changed': '2021-10-18T21:55:02+02:00', 'attributes': {'q': 0, 'is_alive': True, 'time_called': 'never', 'pinned_apps': ['hello_world']}}
2021-10-18 21:55:03.537739 DEBUG AppDaemon: New state: {'entity_id': 'thread.thread-0', 'state': 'idle', 'last_changed': '2021-10-18T21:55:03+02:00', 'attributes': {'q': 0, 'is_alive': True, 'time_called': 'never', 'pinned_apps': ['hello_world']}}
2021-10-18 21:55:03.538119 DEBUG AppDaemon: sending event locally
2021-10-18 21:55:03.539688 DEBUG AppDaemon: set_state(): thread.thread-1, {'q': 0}
2021-10-18 21:55:03.540422 DEBUG AppDaemon: parse_state: thread.thread-1, {'q': 0}
2021-10-18 21:55:03.541292 DEBUG AppDaemon: Old state: {'entity_id': 'thread.thread-1', 'state': 'idle', 'last_changed': '2021-10-18T21:55:02+02:00', 'attributes': {'q': 0, 'is_alive': True, 'time_called': 'never', 'pinned_apps': ['qolsys_panel']}}
2021-10-18 21:55:03.541765 DEBUG AppDaemon: New state: {'entity_id': 'thread.thread-1', 'state': 'idle', 'last_changed': '2021-10-18T21:55:03+02:00', 'attributes': {'q': 0, 'is_alive': True, 'time_called': 'never', 'pinned_apps': ['qolsys_panel']}}
2021-10-18 21:55:03.542458 DEBUG AppDaemon: sending event locally
2021-10-18 21:55:03.543306 DEBUG AppDaemon: Event type:state_changed:
2021-10-18 21:55:03.544239 DEBUG AppDaemon: {'entity_id': 'sensor.callbacks_average_fired', 'new_state': {'entity_id': 'sensor.callbacks_average_fired', 'state': 0.0, 'last_changed': '2021-10-18T21:55:03+02:00', 'attributes': {}}, 'old_state': {'entity_id': 'sensor.callbacks_average_fired', 'state': 0.0, 'last_changed': '2021-10-18T21:55:02+02:00', 'attributes': {}}}
2021-10-18 21:55:03.544833 DEBUG AppDaemon: process_event_callbacks() admin {'event_type': 'state_changed', 'data': {'entity_id': 'sensor.callbacks_average_fired', 'new_state': {'entity_id': 'sensor.callbacks_average_fired', 'state': 0.0, 'last_changed': '2021-10-18T21:55:03+02:00', 'attributes': {}}, 'old_state': {'entity_id': 'sensor.callbacks_average_fired', 'state': 0.0, 'last_changed': '2021-10-18T21:55:02+02:00', 'attributes': {}}}}
2021-10-18 21:55:03.545882 DEBUG AppDaemon: Event type:state_changed:
2021-10-18 21:55:03.546433 DEBUG AppDaemon: {'entity_id': 'sensor.callbacks_average_executed', 'new_state': {'entity_id': 'sensor.callbacks_average_executed', 'state': 0.0, 'last_changed': '2021-10-18T21:55:03+02:00', 'attributes': {}}, 'old_state': {'entity_id': 'sensor.callbacks_average_executed', 'state': 0.0, 'last_changed': '2021-10-18T21:55:02+02:00', 'attributes': {}}}
2021-10-18 21:55:03.547230 DEBUG AppDaemon: process_event_callbacks() admin {'event_type': 'state_changed', 'data': {'entity_id': 'sensor.callbacks_average_executed', 'new_state': {'entity_id': 'sensor.callbacks_average_executed', 'state': 0.0, 'last_changed': '2021-10-18T21:55:03+02:00', 'attributes': {}}, 'old_state': {'entity_id': 'sensor.callbacks_average_executed', 'state': 0.0, 'last_changed': '2021-10-18T21:55:02+02:00', 'attributes': {}}}}
2021-10-18 21:55:03.548101 DEBUG AppDaemon: Event type:state_changed:
2021-10-18 21:55:03.549020 DEBUG AppDaemon: {'entity_id': 'thread.thread-0', 'new_state': {'entity_id': 'thread.thread-0', 'state': 'idle', 'last_changed': '2021-10-18T21:55:03+02:00', 'attributes': {'q': 0, 'is_alive': True, 'time_called': 'never', 'pinned_apps': ['hello_world']}}, 'old_state': {'entity_id': 'thread.thread-0', 'state': 'idle', 'last_changed': '2021-10-18T21:55:02+02:00', 'attributes': {'q': 0, 'is_alive': True, 'time_called': 'never', 'pinned_apps': ['hello_world']}}}
2021-10-18 21:55:03.549646 DEBUG AppDaemon: process_event_callbacks() admin {'event_type': 'state_changed', 'data': {'entity_id': 'thread.thread-0', 'new_state': {'entity_id': 'thread.thread-0', 'state': 'idle', 'last_changed': '2021-10-18T21:55:03+02:00', 'attributes': {'q': 0, 'is_alive': True, 'time_called': 'never', 'pinned_apps': ['hello_world']}}, 'old_state': {'entity_id': 'thread.thread-0', 'state': 'idle', 'last_changed': '2021-10-18T21:55:02+02:00', 'attributes': {'q': 0, 'is_alive': True, 'time_called': 'never', 'pinned_apps': ['hello_world']}}}}
2021-10-18 21:55:03.550793 DEBUG AppDaemon: Event type:state_changed:
2021-10-18 21:55:03.551384 DEBUG AppDaemon: {'entity_id': 'thread.thread-1', 'new_state': {'entity_id': 'thread.thread-1', 'state': 'idle', 'last_changed': '2021-10-18T21:55:03+02:00', 'attributes': {'q': 0, 'is_alive': True, 'time_called': 'never', 'pinned_apps': ['qolsys_panel']}}, 'old_state': {'entity_id': 'thread.thread-1', 'state': 'idle', 'last_changed': '2021-10-18T21:55:02+02:00', 'attributes': {'q': 0, 'is_alive': True, 'time_called': 'never', 'pinned_apps': ['qolsys_panel']}}}
2021-10-18 21:55:03.552167 DEBUG AppDaemon: process_event_callbacks() admin {'event_type': 'state_changed', 'data': {'entity_id': 'thread.thread-1', 'new_state': {'entity_id': 'thread.thread-1', 'state': 'idle', 'last_changed': '2021-10-18T21:55:03+02:00', 'attributes': {'q': 0, 'is_alive': True, 'time_called': 'never', 'pinned_apps': ['qolsys_panel']}}, 'old_state': {'entity_id': 'thread.thread-1', 'state': 'idle', 'last_changed': '2021-10-18T21:55:02+02:00', 'attributes': {'q': 0, 'is_alive': True, 'time_called': 'never', 'pinned_apps': ['qolsys_panel']}}}}
2021-10-18 21:55:03.553412 DEBUG AppDaemon: thread_async loop, args={'function': <bound method ADStream.process_event of <appdaemon.stream.adstream.ADStream object at 0x7f92146c70>>, 'args': ({'event_type': 'state_changed', 'data': {'entity_id': 'sensor.callbacks_average_fired', 'new_state': {'entity_id': 'sensor.callbacks_average_fired', 'state': 0.0, 'last_changed': '2021-10-18T21:55:03+02:00', 'attributes': {}}, 'old_state': {'entity_id': 'sensor.callbacks_average_fired', 'state': 0.0, 'last_changed': '2021-10-18T21:55:02+02:00', 'attributes': {}}}, 'namespace': 'admin'},), 'kwargs': {}}
2021-10-18 21:55:03.554429 DEBUG AppDaemon: thread_async loop, args={'function': <bound method ADStream.process_event of <appdaemon.stream.adstream.ADStream object at 0x7f92146c70>>, 'args': ({'event_type': 'state_changed', 'data': {'entity_id': 'sensor.callbacks_average_executed', 'new_state': {'entity_id': 'sensor.callbacks_average_executed', 'state': 0.0, 'last_changed': '2021-10-18T21:55:03+02:00', 'attributes': {}}, 'old_state': {'entity_id': 'sensor.callbacks_average_executed', 'state': 0.0, 'last_changed': '2021-10-18T21:55:02+02:00', 'attributes': {}}}, 'namespace': 'admin'},), 'kwargs': {}}
2021-10-18 21:55:03.555249 DEBUG AppDaemon: thread_async loop, args={'function': <bound method ADStream.process_event of <appdaemon.stream.adstream.ADStream object at 0x7f92146c70>>, 'args': ({'event_type': 'state_changed', 'data': {'entity_id': 'thread.thread-0', 'new_state': {'entity_id': 'thread.thread-0', 'state': 'idle', 'last_changed': '2021-10-18T21:55:03+02:00', 'attributes': {'q': 0, 'is_alive': True, 'time_called': 'never', 'pinned_apps': ['hello_world']}}, 'old_state': {'entity_id': 'thread.thread-0', 'state': 'idle', 'last_changed': '2021-10-18T21:55:02+02:00', 'attributes': {'q': 0, 'is_alive': True, 'time_called': 'never', 'pinned_apps': ['hello_world']}}}, 'namespace': 'admin'},), 'kwargs': {}}
2021-10-18 21:55:03.556153 DEBUG AppDaemon: thread_async loop, args={'function': <bound method ADStream.process_event of <appdaemon.stream.adstream.ADStream object at 0x7f92146c70>>, 'args': ({'event_type': 'state_changed', 'data': {'entity_id': 'thread.thread-1', 'new_state': {'entity_id': 'thread.thread-1', 'state': 'idle', 'last_changed': '2021-10-18T21:55:03+02:00', 'attributes': {'q': 0, 'is_alive': True, 'time_called': 'never', 'pinned_apps': ['qolsys_panel']}}, 'old_state': {'entity_id': 'thread.thread-1', 'state': 'idle', 'last_changed': '2021-10-18T21:55:02+02:00', 'attributes': {'q': 0, 'is_alive': True, 'time_called': 'never', 'pinned_apps': ['qolsys_panel']}}}, 'namespace': 'admin'},), 'kwargs': {}}
2021-10-18 21:55:03.557361 DEBUG AppDaemon: --> {'data': {'event_type': 'state_changed', 'data': {'entity_id': 'sensor.callbacks_average_fired', 'new_state': {'entity_id': 'sensor.callbacks_average_fired', 'state': 0.0, 'last_changed': '2021-10-18T21:55:03+02:00', 'attributes': {}}, 'old_state': {'entity_id': 'sensor.callbacks_average_fired', 'state': 0.0, 'last_changed': '2021-10-18T21:55:02+02:00', 'attributes': {}}}, 'namespace': 'admin'}, 'response_id': '4eecf80c-3e66-42f9-8959-4ae289767212', 'response_type': 'state_changed'}
2021-10-18 21:55:03.559215 DEBUG AppDaemon: --> {'data': {'event_type': 'state_changed', 'data': {'entity_id': 'sensor.callbacks_average_executed', 'new_state': {'entity_id': 'sensor.callbacks_average_executed', 'state': 0.0, 'last_changed': '2021-10-18T21:55:03+02:00', 'attributes': {}}, 'old_state': {'entity_id': 'sensor.callbacks_average_executed', 'state': 0.0, 'last_changed': '2021-10-18T21:55:02+02:00', 'attributes': {}}}, 'namespace': 'admin'}, 'response_id': '4eecf80c-3e66-42f9-8959-4ae289767212', 'response_type': 'state_changed'}
2021-10-18 21:55:03.560698 DEBUG AppDaemon: --> {'data': {'event_type': 'state_changed', 'data': {'entity_id': 'thread.thread-0', 'new_state': {'entity_id': 'thread.thread-0', 'state': 'idle', 'last_changed': '2021-10-18T21:55:03+02:00', 'attributes': {'q': 0, 'is_alive': True, 'time_called': 'never', 'pinned_apps': ['hello_world']}}, 'old_state': {'entity_id': 'thread.thread-0', 'state': 'idle', 'last_changed': '2021-10-18T21:55:02+02:00', 'attributes': {'q': 0, 'is_alive': True, 'time_called': 'never', 'pinned_apps': ['hello_world']}}}, 'namespace': 'admin'}, 'response_id': '4eecf80c-3e66-42f9-8959-4ae289767212', 'response_type': 'state_changed'}
2021-10-18 21:55:03.562079 DEBUG AppDaemon: --> {'data': {'event_type': 'state_changed', 'data': {'entity_id': 'thread.thread-1', 'new_state': {'entity_id': 'thread.thread-1', 'state': 'idle', 'last_changed': '2021-10-18T21:55:03+02:00', 'attributes': {'q': 0, 'is_alive': True, 'time_called': 'never', 'pinned_apps': ['qolsys_panel']}}, 'old_state': {'entity_id': 'thread.thread-1', 'state': 'idle', 'last_changed': '2021-10-18T21:55:02+02:00', 'attributes': {'q': 0, 'is_alive': True, 'time_called': 'never', 'pinned_apps': ['qolsys_panel']}}}, 'namespace': 'admin'}, 'response_id': '4eecf80c-3e66-42f9-8959-4ae289767212', 'response_type': 'state_changed'}
2021-10-18 21:55:03.709359 DEBUG AppDaemon: get_state: thread.thread-0.None None True
2021-10-18 21:55:03.710533 DEBUG AppDaemon: get_state: thread.thread-1.None None True
2021-10-18 21:55:03.711581 DEBUG HASS: Utility
2021-10-18 21:55:03.712598 DEBUG AppDaemon: set_state(): sensor.appdaemon_uptime, {'state': '0:06:13'}
2021-10-18 21:55:03.713553 DEBUG AppDaemon: parse_state: sensor.appdaemon_uptime, {'state': '0:06:13'}
2021-10-18 21:55:03.714619 DEBUG AppDaemon: Old state: {'entity_id': 'sensor.appdaemon_uptime', 'state': '0:06:12', 'last_changed': '2021-10-18T21:55:02+02:00', 'attributes': {}}
2021-10-18 21:55:03.715696 DEBUG AppDaemon: New state: {'entity_id': 'sensor.appdaemon_uptime', 'state': '0:06:13', 'last_changed': '2021-10-18T21:55:03+02:00', 'attributes': {}}
2021-10-18 21:55:03.716556 DEBUG AppDaemon: sending event locally
2021-10-18 21:55:03.717532 DEBUG AppDaemon: Util loop compute time: 38.0ms, check_config()=29.0ms, other=9.0ms
2021-10-18 21:55:03.718607 DEBUG AppDaemon: Event type:state_changed:
2021-10-18 21:55:03.719519 DEBUG AppDaemon: {'entity_id': 'sensor.appdaemon_uptime', 'new_state': {'entity_id': 'sensor.appdaemon_uptime', 'state': '0:06:13', 'last_changed': '2021-10-18T21:55:03+02:00', 'attributes': {}}, 'old_state': {'entity_id': 'sensor.appdaemon_uptime', 'state': '0:06:12', 'last_changed': '2021-10-18T21:55:02+02:00', 'attributes': {}}}
2021-10-18 21:55:03.720632 DEBUG AppDaemon: process_event_callbacks() admin {'event_type': 'state_changed', 'data': {'entity_id': 'sensor.appdaemon_uptime', 'new_state': {'entity_id': 'sensor.appdaemon_uptime', 'state': '0:06:13', 'last_changed': '2021-10-18T21:55:03+02:00', 'attributes': {}}, 'old_state': {'entity_id': 'sensor.appdaemon_uptime', 'state': '0:06:12', 'last_changed': '2021-10-18T21:55:02+02:00', 'attributes': {}}}}
2021-10-18 21:55:03.721997 DEBUG AppDaemon: thread_async loop, args={'function': <bound method ADStream.process_event of <appdaemon.stream.adstream.ADStream object at 0x7f92146c70>>, 'args': ({'event_type': 'state_changed', 'data': {'entity_id': 'sensor.appdaemon_uptime', 'new_state': {'entity_id': 'sensor.appdaemon_uptime', 'state': '0:06:13', 'last_changed': '2021-10-18T21:55:03+02:00', 'attributes': {}}, 'old_state': {'entity_id': 'sensor.appdaemon_uptime', 'state': '0:06:12', 'last_changed': '2021-10-18T21:55:02+02:00', 'attributes': {}}}, 'namespace': 'admin'},), 'kwargs': {}}
2021-10-18 21:55:03.723692 DEBUG AppDaemon: --> {'data': {'event_type': 'state_changed', 'data': {'entity_id': 'sensor.appdaemon_uptime', 'new_state': {'entity_id': 'sensor.appdaemon_uptime', 'state': '0:06:13', 'last_changed': '2021-10-18T21:55:03+02:00', 'attributes': {}}, 'old_state': {'entity_id': 'sensor.appdaemon_uptime', 'state': '0:06:12', 'last_changed': '2021-10-18T21:55:02+02:00', 'attributes': {}}}, 'namespace': 'admin'}, 'response_id': '4eecf80c-3e66-42f9-8959-4ae289767212', 'response_type': 'state_changed'}

Also I have auto discovery on

So I have seen in this thread both setting up mqtt for anonymous and for password/username. Which why should I be setting it up