Read-only import of the pre-migration homeassistant5 container (piha), per DESIGN.md phase-0 scope: 60 automations (split one-file-per-id), 5 scenes, 1 script, plus curated .storage/* export (area/entity registries, input_boolean/input_text, lovelace dashboards). No token at ~/.config/ha-deploy/ken-legacy.token — fixtures step fail-softed as designed, no repo import.sh changes needed. Verified: gitignore-excluded paths (secrets.yaml, *.db*, logs, .storage/auth*, core.restore_state, tts/, deps/, backups/, .cloud/) correctly stripped from the pull; three consecutive import.sh runs produced byte-identical output under config/ken-legacy/ and storage-export/ken-legacy/ (idempotent); automation count matches the 2026-07-22 recon estimate (~60) exactly. README.md only touched to note the import date. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
50 lines
1.2 KiB
YAML
50 lines
1.2 KiB
YAML
action:
|
|
- if:
|
|
- condition: or
|
|
conditions:
|
|
- condition: device
|
|
device_id: 2d9d457b850615c3c6cd77608bb21877
|
|
domain: media_player
|
|
entity_id: e447ed599522faf3a2c43bd9e7b4a969
|
|
type: is_off
|
|
- condition: device
|
|
device_id: 2d9d457b850615c3c6cd77608bb21877
|
|
domain: media_player
|
|
entity_id: e447ed599522faf3a2c43bd9e7b4a969
|
|
type: is_paused
|
|
- condition: device
|
|
device_id: 2d9d457b850615c3c6cd77608bb21877
|
|
domain: media_player
|
|
entity_id: e447ed599522faf3a2c43bd9e7b4a969
|
|
type: is_idle
|
|
then:
|
|
- data:
|
|
entity_id: media_player.salon_2
|
|
language: en
|
|
message: streaming voice now
|
|
service: tts.google_translate_say
|
|
- delay:
|
|
hours: 0
|
|
milliseconds: 0
|
|
minutes: 0
|
|
seconds: 3
|
|
- data: {}
|
|
service: tts.clear_cache
|
|
- data:
|
|
entity_id: media_player.salon_2
|
|
language: pl
|
|
message: '{{ states(''input_text.powiedz'') }}'
|
|
service: tts.google_translate_say
|
|
alias: Speak
|
|
condition: []
|
|
description: ''
|
|
id: '1700837302203'
|
|
mode: single
|
|
trigger:
|
|
- device_id: 17470b93f6b98452e39db3eb283bffbc
|
|
discovery_id: 0x60a423fffef6f701 action_1_double
|
|
domain: mqtt
|
|
platform: device
|
|
subtype: 1_double
|
|
type: action
|