Code Monkey home page Code Monkey logo

bosch-alarm-mode2's People

Contributors

mag1024 avatar ocitrev avatar sanjay900 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

bosch-alarm-mode2's Issues

AMAX and polling vs subscription

I learned the other day that while AMAX panels don't support Mode 2 subscriptions, they do support another protocol where they push updates, DC-09.

Do we think it would be worth implementing DC-09 support, or should we just leave AMAX with only polling?
I just don't know if its worth the development time or not, though there are existing DC-09 implementations out there iirc.

Solution 3000 Programming

Hi There,

Trying to give this a crack - can't seem to connect to the unit.

You mention

To enable the "Mode 2" API in the panel, in the set the "Automation / Remote App" section of the panel settings, set the "Automation Device" to "Mode 2", and use the "Automation Passcode".

However this option doesn't seem to exist in the A-Link software. Any ideas on how to activate using A-Link?
Thanks!

Consider dropping support for text history

It seems to be slower (i.e. fewer events returned by response), and harder to understand (more terse, using abbreviations).
Example:

text:

[5005] 2023-06-16 20:48:00 | Network Cable Open On-board Ethernet
[5006] 2023-06-16 20:48:00 | Network Cable Good On-board Ethernet
[5007] 2023-06-17 20:25:00 | User Code Tamper Ar-1 P240,�Us-5002
[5008] 2023-06-18 02:02:00 | Sked Report Exec Sk-3
[5009] 2023-06-18 02:02:00 | Test Report

raw:

[5005] 2023-06-16 20:48:00 | Network Cable Disconnected, SDI 2 Device: 399
[5006] 2023-06-16 20:48:00 | Network Cable Connected, SDI 2 Device: 399
[5007] 2023-06-17 20:25:00 | User passcode tamper - too many attempts, Area: 0, User ID: 5002
[5008] 2023-06-18 02:02:00 | Test Report Sked has executed., Sked: 2
[5009] 2023-06-18 02:02:00 | Test Report - System off-normal, non-expanded status

Seems like it might be a negative value add.

Connection monitor exception: Error in panel.py

Hi @mag1024,
I recently updated the bosch-alarm-homeassistant integration on my RPi 4 HA instance. Now I'm getting cyclic connection drops with my Solution 3000 panel. This is what's coming up in the debugging log:
`Logger: root
Source: /usr/local/lib/python3.11/site-packages/bosch_alarm_mode2/panel.py:255
First occurred: 4:35:41 AM (109 occurrences)
Last logged: 11:05:55 AM

Connection monitor exception
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/bosch_alarm_mode2/panel.py", line 251, in _monitor_connection
await self._monitor_connection_once()
File "/usr/local/lib/python3.11/site-packages/bosch_alarm_mode2/panel.py", line 281, in _monitor_connection_once
await self._connect(load_selector)
File "/usr/local/lib/python3.11/site-packages/bosch_alarm_mode2/panel.py", line 214, in _connect
await self.load(load_selector)
File "/usr/local/lib/python3.11/site-packages/bosch_alarm_mode2/panel.py", line 151, in load
await self._load_history()
File "/usr/local/lib/python3.11/site-packages/bosch_alarm_mode2/panel.py", line 231, in _load_history
if any(area.is_armed() for area in self.areas):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/bosch_alarm_mode2/panel.py", line 231, in
if any(area.is_armed() for area in self.areas):
^^^^^^^^^^^^^
AttributeError: 'int' object has no attribute 'is_armed'
`

Overhaul error codes

Maybe instead of throwing generic exceptions when things fail, we construct some actual error codes when we throw exceptions? That way, home assistant can just make use of those directly instead of needing to construct its own, and we can even do more specific exceptions like potentially seperate exceptions for automation code failures vs user code vs installer code failures?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.