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

Beta firmware code #176

Closed
wants to merge 1 commit into from
Closed
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
41 changes: 41 additions & 0 deletions home-assistant-voice.factory.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,44 @@ esp32_improv:
on_stop:
- lambda: id(improv_ble_in_progress) = false;
- script.execute: control_leds

# BETA firmware additions

binary_sensor:
- id: !extend center_button
on_multi_click:
- timing:
# B -...
- ON for 0.2s to 2s
- OFF for 0s to 2s
- ON for at most 0.2s
- OFF for 0s to 2s
- ON for at most 0.2s
- OFF for 0s to 2s
- ON for at most 0.2s
- OFF for 0.5s to 2s
# E .
- ON for at most 0.2s
- OFF for 0.5s to 2s
# T -
- ON for 0.2s to 2s
- OFF for 0.5s to 2s
# A .-
- ON for at most 0.2s
- OFF for 0s to 2s
- ON for 0.2s to 2s
- OFF for at least 0.5s
then:
- switch.turn_on: beta_firmware

switch:
- platform: template
id: beta_firmware
optimistic: true
restore_mode: RESTORE_DEFAULT_OFF
on_turn_on:
- logger.log: "OTA updates set to use Beta firmware"
- lambda: id(update_http_request).set_source_url("https://firmware.esphome.io/home-assistant-voice-pe/home-assistant-voice/manifest-beta.json");
on_turn_off:
- logger.log: "OTA updates set to use Production firmware"
- lambda: id(update_http_request).set_source_url("https://firmware.esphome.io/home-assistant-voice-pe/home-assistant-voice/manifest.json");