Compare commits
No commits in common. "feature/codex-night-refactor" and "main" have entirely different histories.
feature/co
...
main
36
AGENTS.md
36
AGENTS.md
|
|
@ -1,36 +0,0 @@
|
|||
# Repository Guidelines
|
||||
|
||||
## Project Structure & Module Organization
|
||||
- Root-level YAML files define the Home Assistant configuration.
|
||||
- Core configuration: `configuration.yaml`.
|
||||
- Automations: `automations.yaml`.
|
||||
- Scripts: `scripts.yaml`.
|
||||
- Scenes: `scenes.yaml`.
|
||||
- Groups: `groups.yaml`.
|
||||
- Devices: `known_devices.yaml`.
|
||||
- Secrets: `secrets.yaml` (do not commit real secrets; use placeholders).
|
||||
|
||||
## Build, Test, and Development Commands
|
||||
- No build step is defined in this repository.
|
||||
- Use Home Assistant’s built-in config validation before deployment (UI: Settings → System → Check configuration).
|
||||
- If you use the HA CLI, run `ha core check` to validate configs.
|
||||
|
||||
## Coding Style & Naming Conventions
|
||||
- YAML: 2-space indentation, no tabs.
|
||||
- Keep keys ordered logically by feature area within each file.
|
||||
- Use clear, descriptive IDs and aliases for automations/scripts (e.g., `alias: "Lights - Evening On"`).
|
||||
- Prefer lowercase with underscores for IDs and file references.
|
||||
|
||||
## Testing Guidelines
|
||||
- No automated test suite is present.
|
||||
- Validate changes with Home Assistant configuration check before applying.
|
||||
- Spot-check automations and scripts after reload.
|
||||
|
||||
## Commit & Pull Request Guidelines
|
||||
- Commit messages in history are short and imperative (e.g., `update automations`).
|
||||
- Keep commits focused to a single area (automations, scripts, scenes, etc.).
|
||||
- For PRs, include a concise summary and mention any UI-level checks you performed.
|
||||
|
||||
## Security & Configuration Tips
|
||||
- Store credentials in `secrets.yaml`; reference them with `!secret`.
|
||||
- Avoid committing device-specific tokens or external service keys.
|
||||
|
|
@ -333,10 +333,9 @@
|
|||
minutes: 10
|
||||
seconds: 0
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.night_mode
|
||||
state:
|
||||
- 'on'
|
||||
- condition: time
|
||||
after: 06:35:00
|
||||
before: '23:25:00'
|
||||
actions:
|
||||
- data:
|
||||
topic: dom/pimirror
|
||||
|
|
@ -353,10 +352,9 @@
|
|||
domain: binary_sensor
|
||||
trigger: device
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.night_mode
|
||||
state:
|
||||
- 'on'
|
||||
- condition: time
|
||||
after: 06:30:00
|
||||
before: '23:30:00'
|
||||
actions:
|
||||
- data:
|
||||
topic: dom/pimirror
|
||||
|
|
@ -809,10 +807,9 @@
|
|||
type: is_playing
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.night_mode
|
||||
state:
|
||||
- 'on'
|
||||
- condition: time
|
||||
after: '23:30:00'
|
||||
before: 06:30:00
|
||||
- condition: state
|
||||
entity_id: input_boolean.sleep_mode
|
||||
state:
|
||||
|
|
@ -1304,10 +1301,9 @@
|
|||
device_id: 5243fe178006af9adee15bacfc9bcadc
|
||||
entity_id: de7a9e40d544ab51409925618ef14deb
|
||||
domain: binary_sensor
|
||||
- condition: state
|
||||
entity_id: input_boolean.night_mode
|
||||
state:
|
||||
- 'on'
|
||||
- condition: time
|
||||
after: 06:30:00
|
||||
before: '23:30:00'
|
||||
actions:
|
||||
- type: turn_on
|
||||
device_id: f5ccc59a8b469ac7dbdf23f714d93c05
|
||||
|
|
@ -2010,10 +2006,9 @@
|
|||
hours: 0
|
||||
minutes: 0
|
||||
seconds: 1
|
||||
- condition: state
|
||||
entity_id: input_boolean.night_mode
|
||||
state:
|
||||
- 'on'
|
||||
- condition: time
|
||||
after: 06:30:00
|
||||
before: '23:30:00'
|
||||
actions:
|
||||
- target:
|
||||
entity_id: light.led3xdrv_led_pwm_2
|
||||
|
|
@ -2052,10 +2047,9 @@
|
|||
entity_id: input_boolean.sleep_mode
|
||||
state:
|
||||
- 'off'
|
||||
- condition: state
|
||||
entity_id: input_boolean.night_mode
|
||||
state:
|
||||
- 'on'
|
||||
- condition: time
|
||||
after: 06:30:00
|
||||
before: '23:30:00'
|
||||
- type: is_occupied
|
||||
condition: device
|
||||
device_id: 5243fe178006af9adee15bacfc9bcadc
|
||||
|
|
@ -2364,10 +2358,9 @@
|
|||
- minutes: / 3
|
||||
trigger: time_pattern
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.night_mode
|
||||
state:
|
||||
- 'on'
|
||||
- condition: time
|
||||
after: '23:30:00'
|
||||
before: 06:30:00
|
||||
- condition: state
|
||||
entity_id: input_boolean.on_leave
|
||||
state: 'off'
|
||||
|
|
@ -3366,10 +3359,9 @@
|
|||
hours: 0
|
||||
minutes: 10
|
||||
seconds: 0
|
||||
- condition: state
|
||||
entity_id: input_boolean.night_mode
|
||||
state:
|
||||
- 'on'
|
||||
- condition: time
|
||||
after: 08:00:00
|
||||
before: '13:00:00'
|
||||
- condition: device
|
||||
device_id: 2e779a3bc4caf93c7ef04bebf820db5e
|
||||
domain: media_player
|
||||
|
|
|
|||
Loading…
Reference in a new issue