Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
e3131c2
mapped to hacs blueprint
eavanvalkenburg Sep 5, 2019
f16474a
added info
eavanvalkenburg Sep 5, 2019
1d5bd8c
added badge link
eavanvalkenburg Sep 5, 2019
dc1ae74
added hacs.json
eavanvalkenburg Sep 5, 2019
1eecddb
black and changed logging
eavanvalkenburg Sep 5, 2019
a38b711
v1 with control panel, so you can use the visuals
eavanvalkenburg Sep 5, 2019
c4d7ad2
v1 of alarm panel (view only)
eavanvalkenburg Sep 5, 2019
f374e6f
updated info
eavanvalkenburg Sep 5, 2019
0289409
major updates to the component, with breaking config changes
eavanvalkenburg Sep 9, 2019
60b98ed
added ping_interval and fixed #1
eavanvalkenburg Sep 15, 2019
85d405b
small readme fix
eavanvalkenburg Sep 15, 2019
a21274a
fix for #3
eavanvalkenburg Sep 23, 2019
f12f1cf
small fix
eavanvalkenburg Sep 23, 2019
595e7f7
fixes to list index out of range error (issue #3)
eavanvalkenburg Sep 24, 2019
4163d73
first beta of major rewrite
eavanvalkenburg Sep 26, 2019
1a5f277
update to beta version
eavanvalkenburg Sep 26, 2019
1ad5616
rewrite complete, restoreentity not fully working
eavanvalkenburg Oct 4, 2019
38d5106
Merge pull request #4 from eavanvalkenburg/beta
eavanvalkenburg Oct 4, 2019
df63440
fix for #5
eavanvalkenburg Oct 9, 2019
b464d01
Merge pull request #6 from eavanvalkenburg/beta
eavanvalkenburg Oct 9, 2019
823865d
fix for error about abstract classes and methods.
eavanvalkenburg Dec 15, 2019
b491889
Merge pull request #10 from eavanvalkenburg/beta
eavanvalkenburg Dec 18, 2019
73db176
wip on fixing entity id already exists
eavanvalkenburg Jan 7, 2020
413eb27
fixes for #8 and #9
eavanvalkenburg Jan 7, 2020
7828cb3
Merge pull request #11 from eavanvalkenburg/beta
eavanvalkenburg Jan 7, 2020
b3917c5
new version based on official component
eavanvalkenburg Jun 10, 2020
2c6eeb6
small fixes in line with official PR
eavanvalkenburg Jun 11, 2020
a1b450c
Merge pull request #16 from eavanvalkenburg/beta
eavanvalkenburg Jul 1, 2020
cec5d3e
Added additional codes for Ajax (based on SIA)
eavanvalkenburg Jul 13, 2020
5c41cc4
updated package version, added different approach to unhandled codes
eavanvalkenburg Jul 16, 2020
f8fecbd
Merge pull request #20 from eavanvalkenburg/beta
eavanvalkenburg Jul 16, 2020
b82a43d
latest package
eavanvalkenburg Jul 16, 2020
cc42e76
temp fix for hass is none issue
eavanvalkenburg Jul 17, 2020
f7c5293
bumped the package and small change in availability
eavanvalkenburg Aug 12, 2020
eddc097
added NP disarmed code
eavanvalkenburg Aug 17, 2020
117388f
updates based on official and updated package
eavanvalkenburg Sep 4, 2020
89a878e
fix for #23
eavanvalkenburg Sep 14, 2020
112c7aa
updated HACS info
eavanvalkenburg Sep 15, 2020
b822d43
Add keyswitch arm/disarm events to reactions array
RichieFrame Sep 29, 2020
9a90be1
Merge pull request #30 from RichieFrame/patch-1
eavanvalkenburg Sep 29, 2020
70d2a17
Added debug logging to readme
eavanvalkenburg Oct 30, 2020
820162f
new package
eavanvalkenburg Jan 4, 2021
edececa
Merge branch 'master' of https://github.com/eavanvalkenburg/sia-ha
eavanvalkenburg Jan 4, 2021
3e9b5e2
added codes
eavanvalkenburg Jan 4, 2021
8bb32f5
updated package beta
eavanvalkenburg Jan 7, 2021
1cfc1fc
Add power sensor
sakalauskas Jan 9, 2021
4383d1c
restructure power sensor
sakalauskas Jan 9, 2021
9dc2fb1
Merge pull request #41 from eavanvalkenburg/master
eavanvalkenburg Jan 11, 2021
c3b1bf1
Merge pull request #40 from sakalauskas/dev-powersensor
eavanvalkenburg Jan 11, 2021
f954d60
cleaned power sensor code and added message attribute (#37)
eavanvalkenburg Jan 11, 2021
b5d10a9
added devcontainer
eavanvalkenburg Jan 14, 2021
4b7269f
added add_attribute to alarm_control_panel
eavanvalkenburg Jan 21, 2021
1b4ae7d
added add_attribute to binary
eavanvalkenburg Jan 21, 2021
f3208ac
updated package
eavanvalkenburg Jan 21, 2021
e366f71
Rebuilt for Event based updating
eavanvalkenburg Jan 26, 2021
ef51148
Merge branch 'beta' of https://github.com/eavanvalkenburg/sia-ha into…
eavanvalkenburg Jan 26, 2021
1cc84a1
cleaned up code
eavanvalkenburg Feb 1, 2021
5ed2895
add version to manifest
eavanvalkenburg Mar 5, 2021
cf6bd79
added version to container
eavanvalkenburg Mar 5, 2021
804b210
Update README.md
Qxlkdr Mar 25, 2021
1babfa1
Merge pull request #43 from Qxlkdr/patch-1
eavanvalkenburg Mar 25, 2021
4bca204
update to latest version of package, improvements in code
eavanvalkenburg Apr 7, 2021
ead83a5
new package and in sync with PR
eavanvalkenburg Apr 12, 2021
34db4a9
fixed await assume_available
eavanvalkenburg Apr 13, 2021
8c50433
incremented version
eavanvalkenburg Apr 13, 2021
f2fe4d2
new package and integration version incremented
eavanvalkenburg Apr 13, 2021
bbe80ec
new package version
eavanvalkenburg Apr 15, 2021
5845a53
new version of config_entry with migration and fix for #45
eavanvalkenburg May 8, 2021
dc7f65e
complete implementation of timestamp and protocol
eavanvalkenburg May 10, 2021
5a8af95
auto assign issues setup
eavanvalkenburg May 10, 2021
0d68b63
updated version in manifest
eavanvalkenburg May 10, 2021
eb0fa8f
fixed keyerror for timestamps
eavanvalkenburg May 11, 2021
3b8f907
callout for official itnegration
eavanvalkenburg Aug 6, 2021
ab4af27
getting in sync with official
eavanvalkenburg Oct 20, 2021
ddc2166
Merge branch 'master' into beta
eavanvalkenburg Oct 20, 2021
9ec5e93
Merge pull request #52 from eavanvalkenburg/beta
eavanvalkenburg Oct 20, 2021
2c68efa
prep for archive
eavanvalkenburg Jul 7, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .devcontainer/configuration.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
default_config:
debugpy:

logger:
default: info
logs:
custom_components.sia: debug
37 changes: 37 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
// See https://aka.ms/vscode-remote/devcontainer.json for format details.
{
"image": "ghcr.io/ludeeus/devcontainer/integration:latest",
"context": "..",
"appPort": [
"9123:8123"
],
"postCreateCommand": "container install",
"runArgs": [
"-v",
"${env:HOME}${env:USERPROFILE}/.ssh:/tmp/.ssh",
// "--network=host",
"--add-host=host.docker.internal:host-gateway"
],
"extensions": [
"ms-python.vscode-pylance",
"visualstudioexptteam.vscodeintellicode",
"github.vscode-pull-request-github",
"redhat.vscode-yaml",
"esbenp.prettier-vscode"
],
"settings": {
"files.eol": "\n",
"editor.tabSize": 4,
"terminal.integrated.shell.linux": "/bin/bash",
"python.pythonPath": "/usr/bin/python3",
"python.linting.pylintEnabled": true,
"python.linting.enabled": true,
"python.formatting.provider": "black",
"editor.formatOnPaste": false,
"editor.formatOnSave": true,
"editor.formatOnType": true,
"files.trimTrailingWhitespace": true,
"remote.autoForwardPorts": false
},
"forwardPorts": [5678, 8126]
}
43 changes: 43 additions & 0 deletions .devcontainer/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
## Developing with Visual Studio Code + devcontainer

The easiest way to get started with custom integration development is to use Visual Studio Code with devcontainers. This approach will create a preconfigured development environment with all the tools you need.

In the container you will have a dedicated Home Assistant core instance running with your custom component code. You can configure this instance by updating the `./devcontainer/configuration.yaml` file.

**Prerequisites**

- [git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)
- Docker
- For Linux, macOS, or Windows 10 Pro/Enterprise/Education use the [current release version of Docker](https://docs.docker.com/install/)
- Windows 10 Home requires [WSL 2](https://docs.microsoft.com/windows/wsl/wsl2-install) and the current Edge version of Docker Desktop (see instructions [here](https://docs.docker.com/docker-for-windows/wsl-tech-preview/)). This can also be used for Windows Pro/Enterprise/Education.
- [Visual Studio code](https://code.visualstudio.com/)
- [Remote - Containers (VSC Extension)][extension-link]

[More info about requirements and devcontainer in general](https://code.visualstudio.com/docs/remote/containers#_getting-started)

[extension-link]: https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers

**Getting started:**

1. Fork the repository.
2. Clone the repository to your computer.
3. Open the repository using Visual Studio code.

When you open this repository with Visual Studio code you are asked to "Reopen in Container", this will start the build of the container.

_If you don't see this notification, open the command palette and select `Remote-Containers: Reopen Folder in Container`._

### Tasks

The devcontainer comes with some useful tasks to help you with development, you can start these tasks by opening the command palette and select `Tasks: Run Task` then select the task you want to run.

When a task is currently running (like `Run Home Assistant on port 9123` for the docs), it can be restarted by opening the command palette and selecting `Tasks: Restart Running Task`, then select the task you want to restart.

The available tasks are:

Task | Description
-- | --
Run Home Assistant on port 9123 | Launch Home Assistant with your custom component code and the configuration defined in `.devcontainer/configuration.yaml`.
Run Home Assistant configuration against /config | Check the configuration.
Upgrade Home Assistant to latest dev | Upgrade the Home Assistant core version in the container to the latest version of the `dev` branch.
Install a specific version of Home Assistant | Install a specific version of Home Assistant core in the container.
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: Feature request
about: Suggest an idea for this project

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
42 changes: 42 additions & 0 deletions .github/ISSUE_TEMPLATE/issue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
name: Issue
about: Create a report to help us improve

---

<!-- Before you open a new issue, search through the existing issues to see if others have had the same problem.

Issues not containing the minimum requirements will be closed:

- Issues without a description (using the header is not good enough) will be closed.
- Issues without debug logging will be closed.
- Issues without configuration will be closed

-->

## Version of the custom_component and HA setup (version, OS, etc)
<!-- If you are not using the newest version, download and try that before opening an issue
If you are unsure about the version check the const.py file.
-->

## Configuration

```yaml

Add your configuration here.

```

## Describe the bug
A clear and concise description of what the bug is.


## Debug log

<!-- To enable debug logs check this https://www.home-assistant.io/components/logger/ -->

```text

Add your logs here.

```
44 changes: 44 additions & 0 deletions .github/ISSUE_TEMPLATE/unhandled_event_type.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
name: Unhandled event type
about: Create a report to help us support more event types

---

<!-- Before you open a new issue, search through the existing issues to see if others have had the same problem.

Issues not containing the minimum requirements will be closed:

- Issues without a description (using the header is not good enough) will be closed.
- Issues without debug logging will be closed.
- Issues without configuration will be closed

-->

## Version of the custom_component
<!-- If you are not using the newest version, download and try that before opening an issue
If you are unsure about the version check the const.py file.
-->

## Configuration

```yaml

Add your configuration here.

```

## Fill in the below info about the unhandled event
SIA codes from your logs or from [SIA](SIA_code.pdf) and [supported alarm states](https://developers.home-assistant.io/docs/en/entity_alarm_control_panel.html) or [supported states for binary_sensors](https://developers.home-assistant.io/docs/en/entity_binary_sensor.html)

SIA Code | sensor_type (alarm, smoke, moisture) | expected state
-- | -- | --

## Debug logs with the requested codes

<!-- To enable debug logs check this https://www.home-assistant.io/components/logger/ -->

```text

Add your logs here.

```
8 changes: 8 additions & 0 deletions .github/auto_assign-issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# If enabled, auto-assigns users when a new issue is created
# Defaults to true, allows you to install the app globally, and disable on a per-repo basis
addAssignees: true

# The list of users to assign to new issues.
# If empty or not provided, the repository owner is assigned
assignees:
- eavanvalkenburg
23 changes: 23 additions & 0 deletions .github/settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
repository:
private: false
has_issues: true
has_projects: false
has_wiki: false
has_downloads: false
default_branch: master
allow_squash_merge: true
allow_merge_commit: false
allow_rebase_merge: false
labels:
- name: "Feature Request"
color: "fbca04"
- name: "Bug"
color: "b60205"
- name: "Wont Fix"
color: "ffffff"
- name: "Enhancement"
color: a2eeef
- name: "Documentation"
color: "008672"
- name: "Stale"
color: "930191"
137 changes: 137 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# PyCharm stuff:
.idea/

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# HA Config directory for local testing
/Config/

**/.DS_Store
23 changes: 23 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
// Debug by attaching to local Home Asistant server using Remote Python Debugger.
// See https://www.home-assistant.io/integrations/debugpy/
"name": "Home Assistant: Attach Local",
"type": "python",
"request": "attach",
"port": 5678,
"host": "localhost",
"pathMappings": [
{
"localRoot": "${workspaceFolder}",
"remoteRoot": "."
}
],
}
]
}
Loading