qolsys-controller 0.0.12__py3-none-any.whl → 0.0.13__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of qolsys-controller might be problematic. Click here for more details.

@@ -59,6 +59,7 @@ class QolsysTableSensor(QolsysTable):
59
59
  "averagedBm",
60
60
  "serial_number",
61
61
  "extras",
62
+ "allowspeaker",
62
63
  ]
63
64
 
64
65
  self._create_table()
@@ -70,9 +71,9 @@ class QolsysTableSensor(QolsysTable):
70
71
  zone_two_way_voice_enabled, zone_reporting_enabled, battery_status,created_date,created_by,
71
72
  updated_date,updated_by,frame_count,frame_type,current_capability,shortID,diag_24hr,
72
73
  allowdisarming,device_capability,sub_type, signal_source, powerg_manufacture_id,parent_node,
73
- latestdBm,averagedBm,serial_number,extras,ac_status)
74
+ latestdBm,averagedBm,serial_number,extras,ac_status,allowspeaker)
74
75
  VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,
75
- ?,?,?,?,?,?,?,?,?,?,?)""", (
76
+ ?,?,?,?,?,?,?,?,?,?,?,?)""", (
76
77
  data.get("_id"),
77
78
  data.get("version", ""),
78
79
  data.get("opr", ""),
@@ -116,6 +117,7 @@ class QolsysTableSensor(QolsysTable):
116
117
  data.get("averagedBm", ""),
117
118
  data.get("serial_number", ""),
118
119
  data.get("extras", ""),
119
- data.get("ac_status", "")))
120
+ data.get("ac_status", ""),
121
+ data.get("allowspeaker", "")))
120
122
 
121
123
  self._db.commit()
@@ -188,15 +188,15 @@ class QolsysPluginRemote(QolsysPlugin):
188
188
  await self.aiomqtt.subscribe("iq2meid")
189
189
 
190
190
  # Subscribte to MQTT commands response
191
- await self.aiomqtt.subscribe("response_" + self.settings.random_mac, qos=2)
191
+ await self.aiomqtt.subscribe("response_" + self.settings.random_mac, qos=0)
192
192
 
193
193
  # Only log mastermeid traffic for debug purposes
194
194
  if self.log_mqtt_mesages:
195
195
  # Subscribe to MQTT commands send to panel by other devices
196
- await self.aiomqtt.subscribe("mastermeid", qos=2)
196
+ await self.aiomqtt.subscribe("mastermeid", qos=0)
197
197
 
198
198
  # Subscribe to all topics
199
- await self.aiomqtt.subscribe("#", qos=2)
199
+ await self.aiomqtt.subscribe("#", qos=0)
200
200
 
201
201
  # Start mqtt_listent_task and mqtt_ping_task
202
202
  self._task_manager.cancel(self._mqtt_task_listen_label)
@@ -446,7 +446,7 @@ class QolsysPluginRemote(QolsysPlugin):
446
446
  LOGGER.error("MQTT Client not configured")
447
447
  raise QolsysMqttError
448
448
 
449
- await self.aiomqtt.publish(topic=topic, payload=json.dumps(json_payload), qos=2)
449
+ await self.aiomqtt.publish(topic=topic, payload=json.dumps(json_payload), qos=0)
450
450
  return await self._mqtt_command_queue.wait_for_response(request_id)
451
451
 
452
452
  async def command_connect(self) -> dict:
@@ -775,15 +775,13 @@ class QolsysPluginRemote(QolsysPlugin):
775
775
  LOGGER.debug("MQTT: Receiving ui_delay command")
776
776
 
777
777
  async def command_disarm(self, partition_id: str, user_code: str = "", exit_sounds: bool = True) -> bool:
778
- LOGGER.debug("MQTT: Sending disarm command - check_user_code:%s", self.check_user_code_on_disarm)
779
-
780
778
  partition = self.state.partition(partition_id)
781
779
  if not partition:
782
780
  LOGGER.debug("MQTT: disarm command error - Unknow Partition")
783
781
  return False
784
782
 
785
783
  # Do local user code verification
786
- user_id = 0
784
+ user_id = 1
787
785
  if self.check_user_code_on_disarm:
788
786
  user_id = self.panel.check_user(user_code)
789
787
  if user_id == -1:
@@ -802,9 +800,12 @@ class QolsysPluginRemote(QolsysPlugin):
802
800
  PartitionSystemStatus.ARM_NIGHT}:
803
801
  await self.command_ui_delay(partition_id)
804
802
  return "disarm_the_panel_from_entry_delay"
803
+
805
804
  return "disarm_from_openlearn_sensor"
806
805
 
807
806
  mqtt_disarm_command = await get_mqtt_disarm_command()
807
+ LOGGER.debug("MQTT: Sending disarm command - check_user_code:%s", self.check_user_code_on_disarm)
808
+
808
809
 
809
810
  disarm_command = {
810
811
  "operation_name": mqtt_disarm_command,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: qolsys-controller
3
- Version: 0.0.12
3
+ Version: 0.0.13
4
4
  Summary: A Python module that emulates a virtual IQ Remote device, enabling full local control of a Qolsys IQ Panel
5
5
  Project-URL: Homepage, https://github.com/EHylands/QolsysController
6
6
  Project-URL: Issues, https://github.com/EHylands/QolsysController/issues
@@ -10,7 +10,7 @@ qolsys_controller/partition.py,sha256=-Fos327y3MlSWwJCbDeQM51-K8uMHANxIJ8kN9-S5C
10
10
  qolsys_controller/pki.py,sha256=_e0tiNF8Hypb37cHr7x8yqUZDaqbzRzP45AitTtmzk4,8663
11
11
  qolsys_controller/plugin.py,sha256=Qh0irFbuw9R2QF3jOFTJw70ceVxK1ld5_sW7VnpOrA8,819
12
12
  qolsys_controller/plugin_c4.py,sha256=71o5Y7Y13GO0vWCPIsCtpqXxrplryyqt8ua5L8F4StQ,382
13
- qolsys_controller/plugin_remote.py,sha256=WwL_GJfKHIicgggbb7NsRjyObp-mkBbfE5Di-JBU2Z8,37889
13
+ qolsys_controller/plugin_remote.py,sha256=gpcx5nSZBeZj69L8sn4mnhxTI2IZgyAwuapN9AbHmms,37890
14
14
  qolsys_controller/settings.py,sha256=2c8QLaEylpH2Wuol8EypYBIJhfniZXewb_54w8na2ts,5314
15
15
  qolsys_controller/state.py,sha256=eWn4KiWN75K83CVW224zekDUeIpgjh9tDfnpaOJWV3I,14360
16
16
  qolsys_controller/task_manager.py,sha256=IBFi1l9aId950wvRpvP6d4PHZhr3v1hnnt8NVulM3BI,1139
@@ -45,7 +45,7 @@ qolsys_controller/database/table_pgm_outputs.py,sha256=R-bvCLj5Kcl88ySFyDE4vfzI9
45
45
  qolsys_controller/database/table_powerg_device.py,sha256=WEuFuak-OKnT7IbjvaZTP3fMZ67uD_W10tyo9nA7oGA,749
46
46
  qolsys_controller/database/table_qolsyssettings.py,sha256=GqMOmhZP5JBOQhzKWJnlQK2f2zMsganIG119D6DpCao,1054
47
47
  qolsys_controller/database/table_scene.py,sha256=zfiNXDJAxOwGAOmU6w5OvyflnP9bZhMc0eWVo2dZLJ4,1668
48
- qolsys_controller/database/table_sensor.py,sha256=EEhDe6YJB2PrGXfG-DzHrEIq54GBDuNZaVGyAf9g1Rg,4552
48
+ qolsys_controller/database/table_sensor.py,sha256=KKsNu1zFVNvyLF-2Y-2Dkwks-8EVbnYmtwFi2Xx1_rs,4637
49
49
  qolsys_controller/database/table_shades.py,sha256=p7wH5p6hYlDWag0hQwM7VcwbcoaB1x9KjEWBrhkboqc,723
50
50
  qolsys_controller/database/table_smartsocket.py,sha256=J1jrAEHboasuedyJB8te9TO1zggNAZsq0VgnnyEdU8I,744
51
51
  qolsys_controller/database/table_state.py,sha256=AIV5JiOp5pqc55WnaWdLrsmRtTSppMSSnc5v4W2nA3k,1141
@@ -60,7 +60,7 @@ qolsys_controller/database/table_zwave_association_group.py,sha256=S_tWpfzzD44rJ
60
60
  qolsys_controller/database/table_zwave_history.py,sha256=4RiCzA_XFdXXVA9X48Z4eoxA_4DFKwdjkP2N6IHHOqQ,1897
61
61
  qolsys_controller/database/table_zwave_node.py,sha256=csESJCkcg8qAPn3KSL4jO9b1oymZ5wrQiXcmWR9vSc0,7302
62
62
  qolsys_controller/database/table_zwave_other.py,sha256=HJzLd4MUfNynE9jHiCzN7j1PFDncwQHeDkP5_8_s0YE,747
63
- qolsys_controller-0.0.12.dist-info/METADATA,sha256=jh2Jwg9N3eZ1FbxN_PIHUQb_dtGF2fzY2EcHBm9A_w8,4175
64
- qolsys_controller-0.0.12.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
65
- qolsys_controller-0.0.12.dist-info/licenses/LICENSE,sha256=GBHv9eggdA5ablDMW1xiLzGDZ2gCIhcKGW__c2aVIOc,1069
66
- qolsys_controller-0.0.12.dist-info/RECORD,,
63
+ qolsys_controller-0.0.13.dist-info/METADATA,sha256=zAAREL1cMt_vXe0XCE-9Jtl12N4mGboIoCWXNfH_UZ0,4175
64
+ qolsys_controller-0.0.13.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
65
+ qolsys_controller-0.0.13.dist-info/licenses/LICENSE,sha256=GBHv9eggdA5ablDMW1xiLzGDZ2gCIhcKGW__c2aVIOc,1069
66
+ qolsys_controller-0.0.13.dist-info/RECORD,,