automations: rework stereo auto-on for hifi-esp32 #2

Merged
jmaroeder merged 4 commits from jmaroeder/stereo-auto-on-hifi-esp32 into main 2026-05-26 13:10:15 +00:00
Owner

Summary

  • Renamed all 25 button.unnamed_device_* entities in the HA entity registry to button.str_dh190_* (e.g. button.str_dh190_power, button.str_dh190_input_1) and updated YAML references in all three stereo automations.
  • Rewrote hifi_esp32_playing_power_on_stereo to handle both cases: if the stereo is off, pause playback → power on → press Input 1 at 1s → press Input 1 again at 5s → press Pure Direct → resume; if the stereo is already on, just switch to Input 1.

Test plan

  • Trigger with stereo off: confirm stereo powers on, switches to Input 1 with Pure Direct, and playback resumes
  • Trigger with stereo already on: confirm only Input 1 is pressed
  • Confirm stereo_discrete_power_on and stereo_discrete_power_off still work via their manual triggers

🤖 Generated with Claude Code

## Summary - Renamed all 25 `button.unnamed_device_*` entities in the HA entity registry to `button.str_dh190_*` (e.g. `button.str_dh190_power`, `button.str_dh190_input_1`) and updated YAML references in all three stereo automations. - Rewrote `hifi_esp32_playing_power_on_stereo` to handle both cases: if the stereo is off, pause playback → power on → press Input 1 at 1s → press Input 1 again at 5s → press Pure Direct → resume; if the stereo is already on, just switch to Input 1. ## Test plan - [ ] Trigger with stereo off: confirm stereo powers on, switches to Input 1 with Pure Direct, and playback resumes - [ ] Trigger with stereo already on: confirm only Input 1 is pressed - [ ] Confirm `stereo_discrete_power_on` and `stereo_discrete_power_off` still work via their manual triggers 🤖 Generated with [Claude Code](https://claude.com/claude-code)
If stereo is off: pause player → power on → wait 5s → input 1 → resume.
If stereo is already on: switch to input 1 directly.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Renamed all button.unnamed_device_* entities to button.str_dh190_* via
the entity registry, then updated YAML references accordingly.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Press input_1 after 1s, then again after 4s, to improve reliability
of input switching while the receiver is still initializing.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
jmaroeder deleted branch jmaroeder/stereo-auto-on-hifi-esp32 2026-05-26 13:10:15 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
jmaroeder/ha-config!2
No description provided.