Skip to content

Instantly share code, notes, and snippets.

@wivaku
wivaku / getConcept2Firmwares.sh
Last active February 3, 2022 11:51
script to download the Concept2 firmware files similar to what Concept2 Utility does
#!/bin/bash
# UNOFFICIAL script to download the Concept2 firmwares for PM3/4/5 monitors for rower/skierg/bike
# similar to what the Concept2 Utility does: first retrieve list of available firmwares and then download them
# optional parameters
# -d <folder> e.g. /Volumes/MYCONCEPT2USB/Concept2/Firmware (default: $HOME/Downloads/Concept2/Firmware)
# -s [public | beta] (default: "public")
# --------------------------------------------------------------------------------------
# ESPHome smart doorbell Home Assistant integration
#
# https://gist.github.com/wivaku/1934d89d2efe71ab83b4acb40901f5b1
#
# derived from:
# https://github.com/zuidwijk/esphome-doorbell/blob/main/smartdoorbell.yaml
#
# changed:
# - use substitution variables to set name of device and expose version of script
# - fallback to regular chime if there is no HA connection