Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite #52

Merged
merged 19 commits into from
Jan 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
70 changes: 47 additions & 23 deletions .devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,48 +1,72 @@
{
"name": "ludeeus/integration_blueprint",
"image": "mcr.microsoft.com/vscode/devcontainers/python:0-3.11",
"image": "mcr.microsoft.com/vscode/devcontainers/python:3.11",
"postCreateCommand": "scripts/setup",
"forwardPorts": [
8123,
5353,
1900
8123
],
"portsAttributes": {
"8123": {
"label": "Home Assistant",
"onAutoForward": "notify"
}
},
"runArgs": [
"--network=host"
],
"customizations": {
"vscode": {
"extensions": [
"ms-python.python",
"github.vscode-pull-request-github",
"ryanluker.vscode-coverage-gutters",
"ms-python.vscode-pylance"
//"ms-python.python",
//"github.vscode-pull-request-github",
//"ryanluker.vscode-coverage-gutters",
//"ms-python.vscode-pylance",
"charliermarsh.ruff",
"ms-python.pylint",
"ms-python.vscode-pylance",
"visualstudioexptteam.vscodeintellicode",
"redhat.vscode-yaml",
"esbenp.prettier-vscode",
"GitHub.vscode-pull-request-github"
],
"settings": {
"files.eol": "\n",
"editor.tabSize": 4,
"python.pythonPath": "/usr/bin/python3",
"python.analysis.autoSearchPaths": false,
"python.linting.pylintEnabled": true,
"python.linting.enabled": true,
"python.formatting.provider": "black",
"python.formatting.blackPath": "/usr/local/py-utils/bin/black",
//"files.eol": "\n",
//"editor.tabSize": 4,
//"python.pythonPath": "/usr/bin/python3",
//"python.analysis.autoSearchPaths": false,
//"pylint.enabled": true,
//"python.linting.enabled": true,
//"python.formatting.provider": "black",
//"python.formatting.blackPath": "/usr/local/py-utils/bin/black",
//"editor.formatOnPaste": false,
//"editor.formatOnSave": true,
//"editor.formatOnType": true,
//"files.trimTrailingWhitespace": true
"python.pythonPath": "/usr/local/bin/python",
"python.testing.pytestArgs": ["--no-cov"],
"editor.formatOnPaste": false,
"editor.formatOnSave": true,
"editor.formatOnType": true,
"files.trimTrailingWhitespace": true
"files.trimTrailingWhitespace": true,
"terminal.integrated.profiles.linux": {
"zsh": {
"path": "/usr/bin/zsh"
}
},
"terminal.integrated.defaultProfile.linux": "zsh",
"yaml.customTags": [
"!input scalar",
"!secret scalar",
"!include_dir_named scalar",
"!include_dir_list scalar",
"!include_dir_merge_list scalar",
"!include_dir_merge_named scalar"
],
"[python]": {
"editor.defaultFormatter": "charliermarsh.ruff"
}
}
}
},
"runArgs": ["--network=host"],
},
"remoteUser": "vscode",
"features": {
"ghcr.io/devcontainers/features/rust:1": {}
}
}
}
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
Home Assistant custom integration to control a Philips Somneo device. This integration let's you control:
- The light and nightlight of the Somneo
- All the 16 available alarms (toggle, time, days, powerwake)
- Sunset features (toggle, duration, lightcurve, sound)
- Media player of the Somneo (FM radio or aux. input)
- Snooze or ignore alarm (buttons)

Furthermore, it provides the following sensors:
- Ambient sensors (temperature, humidity, luminance and noise)
- Alarm status (on, off, snooze, wake-up)
- Alarm status (on, off, snooze, wake-up, sunset)
- Next alarm

# Installation
Expand Down
Loading
Loading