Compare commits

...
28 Commits
Author SHA1 Message Date
semantic-release 900c40c8a1 chore(release): v1.0.5
/ Update Version (push) Successful in 5s
2026-07-09 16:43:26 +00:00
sirmrak 860584ca79 Добавить .gitea/workflows/update_version.yml
/ Update Version (push) Successful in 7s
2026-07-09 19:43:19 +03:00
sirmrak d230ec6590 Удалить .gitea/workflows/release.yml 2026-07-09 19:40:38 +03:00
sirmrak e0868fae9b fix: Test
HA Integration Release / Validate HA Integration (push) Successful in 2s
HA Integration Release / Semantic Release (push) Failing after 41s
2026-07-09 14:09:49 +03:00
sirmrak 59d3f9accd fix: Release 2026-07-09 14:06:50 +03:00
semantic-release ee6dde688c chore(release): v1.0.7
HA Integration Release / Validate HA Integration (push) Successful in 2s
HA Integration Release / Semantic Release (push) Successful in 41s
2026-07-09 11:01:55 +00:00
sirmrak e10e3e7c19 fix: Run Semantic Release
HA Integration Release / Validate HA Integration (push) Successful in 2s
HA Integration Release / Semantic Release (push) Failing after 43s
2026-07-09 14:01:05 +03:00
semantic-release 33756f1659 chore(release): v1.0.6
HA Integration Release / Validate HA Integration (push) Successful in 3s
HA Integration Release / Semantic Release (push) Successful in 41s
2026-07-09 10:58:00 +00:00
sirmrak bd34c9fd81 fix: release.yaml
HA Integration Release / Validate HA Integration (push) Successful in 3s
HA Integration Release / Semantic Release (push) Failing after 43s
2026-07-09 13:57:12 +03:00
semantic-release 590e110efa chore(release): v1.0.5
HA Integration Release / Validate HA Integration (push) Successful in 2s
HA Integration Release / Semantic Release (push) Successful in 5s
2026-07-09 10:50:44 +00:00
sirmrak 92b9392149 fix: test commit for release
HA Integration Release / Validate HA Integration (push) Successful in 3s
HA Integration Release / Semantic Release (push) Failing after 6s
2026-07-09 13:50:30 +03:00
semantic-release fced8328d7 chore(release): v1.0.6
HA Integration Release / Validate HA Integration (push) Successful in 2s
HA Integration Release / Semantic Release (push) Successful in 5s
2026-07-09 10:43:47 +00:00
sirmrak ae301f25db fix: disable SSL verification for semantic-release
HA Integration Release / Validate HA Integration (push) Successful in 2s
HA Integration Release / Semantic Release (push) Failing after 6s
2026-07-09 13:43:33 +03:00
semantic-release fcc4de59c1 chore(release): v1.0.5
HA Integration Release / Validate HA Integration (push) Successful in 2s
HA Integration Release / Semantic Release (push) Successful in 5s
2026-07-09 10:40:40 +00:00
sirmrak 4587148d70 fix: configure semantic-release for Gitea with SSL
HA Integration Release / Validate HA Integration (push) Successful in 2s
HA Integration Release / Semantic Release (push) Failing after 5s
2026-07-09 13:40:26 +03:00
semantic-release 6c73814724 1.0.0
HA Integration Release / Validate HA Integration (push) Successful in 2s
HA Integration Release / Semantic Release (push) Successful in 6s
Automatically generated by python-semantic-release
2026-07-09 10:32:03 +00:00
sirmrak 8c4009dc82 Обновить .gitea/workflows/release.yml
HA Integration Release / Validate HA Integration (push) Successful in 3s
HA Integration Release / Semantic Release (push) Failing after 15s
2026-07-09 13:31:39 +03:00
sirmrak 37de17749e Обновить .gitea/workflows/release.yml
HA Integration Release / Validate HA Integration (push) Failing after 3s
HA Integration Release / Semantic Release (push) Has been skipped
2026-07-09 13:28:52 +03:00
sirmrak d4c2548498 fix: Изменил размер картинки
Test Runner / Test Job (push) Successful in 4s
HA Integration Release / Validate HA Integration (push) Failing after 4s
HA Integration Release / Semantic Release (push) Has been skipped
2026-07-09 13:17:44 +03:00
sirmrak f889f18cd9 Добавить .gitea/workflows/release.yml
HA Integration Release / Validate HA Integration (push) Failing after 16s
HA Integration Release / Semantic Release (push) Has been skipped
Test Runner / Test Job (push) Successful in 7s
2026-07-09 13:16:33 +03:00
sirmrak 9abb91c3f9 Добавить pyproject.toml
Test Runner / Test Job (push) Successful in 4s
2026-07-09 13:15:26 +03:00
sirmrak 76388df08c GIT_SSL_NO_VERIFY: true
Test Runner / Test Job (push) Successful in 18s
2026-07-09 13:07:24 +03:00
sirmrak 9626fafd2f Добавить .gitea/workflows/test.yml
Test Runner / Test Job (push) Failing after 55s
2026-07-09 12:52:39 +03:00
sirmrak 71eb3a7c86 Обновить custom_components/motion_light/manifest.json 2026-07-09 09:56:10 +03:00
sirmrak b9dd8bcad7 Обновить custom_components/motion_light/translations/en.json 2026-07-09 09:48:46 +03:00
sirmrak b1a5eca9a5 Обновить custom_components/motion_light/translations/ru.json 2026-07-09 09:47:31 +03:00
sirmrak 182a46cf92 Обновить custom_components/motion_light/manifest.json 2026-07-09 09:22:02 +03:00
sirmrak e5c10104b8 Обновить custom_components/motion_light/coordinator.py 2026-07-09 09:19:53 +03:00
9 changed files with 202 additions and 4 deletions
+33
View File
@@ -0,0 +1,33 @@
name: Test Runner
on:
push:
branches:
- main
- master
env:
GIT_SSL_NO_VERIFY: true
jobs:
test:
name: Test Job
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Echo message
run: |
echo "Hello from Gitea Actions!"
echo "Runner is working correctly!"
date
pwd
ls -la
- name: Test Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Check Python version
run: python --version
+57
View File
@@ -0,0 +1,57 @@
Update Versionname: Update Version
on:
push:
branches:
- main
- master
env:
GIT_SSL_NO_VERIFY: true
jobs:
update-version:
name: Update Version
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.PAT_TOKEN }}
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: pip install python-semantic-release
- name: Configure Git
run: |
git config --local user.email "actions@gitea.local"
git config --local user.name "Gitea Actions Bot"
- name: Disable SSL verification
run: |
SITE_PACKAGES=$(python3 -c "import site; print(site.getsitepackages()[0])")
cat > "$SITE_PACKAGES/sitecustomize.py" << 'PYEOF'
import ssl
ssl._create_default_https_context = ssl._create_unverified_context
PYEOF
- name: Run Semantic Release (no publish)
env:
GITEA_TOKEN: ${{ secrets.PAT_TOKEN }}
run: |
# Запускаем semantic-release, но не публикуем релиз
# Он только обновит manifest.json и создаст тег
semantic-release version --no-vcs-release
# Пушим изменения обратно в Gitea
git push origin main
git push origin --tags
+34
View File
@@ -0,0 +1,34 @@
# CHANGELOG
<!-- version list -->
## v1.0.7 (2026-07-09)
### Bug Fixes
- Run Semantic Release
([`e10e3e7`](https://192.168.200.208:3000/sirmrak/motion_light/commit/e10e3e7c19c2da63289cd499cca5a5eacee22157))
## v1.0.6 (2026-07-09)
### Bug Fixes
- Disable SSL verification for semantic-release
([`ae301f2`](https://192.168.200.208:3000/sirmrak/motion_light/commit/ae301f25db468e56f9378582215b4dac6979722e))
## v1.0.5 (2026-07-09)
### Bug Fixes
- Configure semantic-release for Gitea with SSL
([`4587148`](https://192.168.200.208:3000/sirmrak/motion_light/commit/4587148d70e362fdd2a47523df0da959499fba2f))
- Изменил размер картинки
([`d4c2548`](https://192.168.200.208:3000/sirmrak/motion_light/commit/d4c25484981a33ab4455027ffb4ef693256aa414))
## v1.0.0 (2026-07-09)
- Initial Release
+1 -1
View File
@@ -1,5 +1,5 @@
[English](README.md) | Русский [English](README.md) | Русский
# <img src="custom_components/motion_light/brand/icon.png" width="64"> </img> Motion Light # <img src="custom_components/motion_light/brand/icon.png" width="32"> </img> Motion Light
Умная интеграция для Home Assistant на основе конечного автомата (FSM) для управления освещением по датчикам движения, освещенности и ручным переключениям. Умная интеграция для Home Assistant на основе конечного автомата (FSM) для управления освещением по датчикам движения, освещенности и ручным переключениям.
+13 -1
View File
@@ -604,13 +604,21 @@ class MotionLightCoordinator(DataUpdateCoordinator):
self._check_lux_periodically, self._check_lux_periodically,
) )
self.async_set_updated_data({
"state": self._state,
"attributes": self.attributes,
})
def _stop_lux_check_timer(self): def _stop_lux_check_timer(self):
"""Stop periodic lux check timer.""" """Stop periodic lux check timer."""
if self._lux_check_timer: if self._lux_check_timer:
self.logger.debug("Stopping lux check timer") self.logger.debug("Stopping lux check timer")
self._lux_check_timer() self._lux_check_timer()
self._lux_check_timer = None self._lux_check_timer = None
self.async_set_updated_data({
"state": self._state,
"attributes": self.attributes,
})
@callback @callback
def _check_lux_periodically(self, _=None): def _check_lux_periodically(self, _=None):
"""Check lux periodically.""" """Check lux periodically."""
@@ -795,6 +803,10 @@ class MotionLightCoordinator(DataUpdateCoordinator):
self._lux_cooldown_active = False self._lux_cooldown_active = False
self._lux_cooldown_timer = None self._lux_cooldown_timer = None
self.logger.info("Lux cooldown expired") self.logger.info("Lux cooldown expired")
self.async_set_updated_data({
"state": self._state,
"attributes": self.attributes,
})
def _cancel_all_timers(self): def _cancel_all_timers(self):
"""Cancel all timers.""" """Cancel all timers."""
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"domain": "motion_light", "domain": "motion_light",
"name": "Motion Light", "name": "Motion Light",
"version": "1.0.2", "version": "1.0.5",
"documentation": "https://github.com/sirmrak/motion_light", "documentation": "https://github.com/sirmrak/motion_light",
"issue_tracker": "https://github.com/sirmrak/motion_light/issues", "issue_tracker": "https://github.com/sirmrak/motion_light/issues",
"dependencies": [], "dependencies": [],
@@ -58,6 +58,22 @@
"force_stopped": "Force stopped", "force_stopped": "Force stopped",
"error": "Error", "error": "Error",
"disabled": "Disabled" "disabled": "Disabled"
},
"attributes": {
"switch_entities": "Controlled switches",
"main_sensors": "Main triggers",
"extend_sensors": "Extend sensors",
"lux_sensor": "Illuminance sensor",
"force_stop_sensor": "Force stop sensor",
"force_stop_state": "Force stop state",
"force_stop_active": "Force stop active",
"active_main_sensors": "Active main triggers",
"active_extend_sensors": "Active extend sensors",
"lux_value": "Current illuminance",
"lux_cooldown_active": "Lux cooldown active",
"lux_check_active": "Lux check active",
"triggered_by": "Triggered by",
"last_motion_time": "Last motion time"
} }
} }
}, },
@@ -58,6 +58,22 @@
"force_stopped": "Принудительная остановка", "force_stopped": "Принудительная остановка",
"error": "Ошибка", "error": "Ошибка",
"disabled": "Отключено" "disabled": "Отключено"
},
"attributes": {
"switch_entities": "Управляемые выключатели",
"main_sensors": "Главные триггеры",
"extend_sensors": "Датчики продления",
"lux_sensor": "Датчик освещённости",
"force_stop_sensor": "Датчик принудительной остановки",
"force_stop_state": "Состояние принудительной остановки",
"force_stop_active": "Принудительная остановка активна",
"active_main_sensors": "Активные главные триггеры",
"active_extend_sensors": "Активные датчики продления",
"lux_value": "Текущая освещённость",
"lux_cooldown_active": "Cooldown люкса активен",
"lux_check_active": "Проверка люкса активна",
"triggered_by": "Активировано",
"last_motion_time": "Последнее движение"
} }
} }
}, },
+30
View File
@@ -0,0 +1,30 @@
[tool.semantic_release]
# Формат тега С префиксом v (для совместимости с существующими тегами)
tag_format = "v{version}"
# Где обновлять версию при релизе
version_variables = [
"custom_components/motion_light/manifest.json:version",
]
# Сообщение коммита
commit_message = "chore(release): v{version}"
# Настройки для Gitea
[tool.semantic_release.remote]
type = "gitea"
# URL вашей Gitea (без trailing slash)
domain = "https://192.168.200.208:3000"
# Имя пользователя и репозитория
api_path = "/api/v1"
# Настройки веток
[tool.semantic_release.branches.main]
match = "(main|master)"
prerelease = false
# Настройки парсера коммитов
[tool.semantic_release.commit_parser_options]
allowed_tags = ["feat", "fix", "docs", "style", "refactor", "perf", "test", "chore", "revert"]
minor_tags = ["feat"]
patch_tags = ["fix", "perf"]