Created
June 20, 2023 18:59
-
-
Save randybb/416b865ec65bcaa18a549e05d48d877a to your computer and use it in GitHub Desktop.
esphome compile/update
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export ESPHOME_IS_HA_ADDON=true | |
while IFS=, read -r device | |
do | |
esphome compile ${device}.yaml | |
done < devices_prod.csv |
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mcu-basement | |
mcu-basement-2 | |
mcu-clock-1 | |
mcu-desk-lamp | |
mcu-dimmer | |
mcu-fireplace | |
mcu-echo | |
mcu-gate | |
mcu-heating | |
mcu-irrigation-1 | |
mcu-office-r | |
mcu-mains-power | |
mcu-nspanel-bedroom | |
mcu-nspanel-office-j | |
mcu-nspanel-office-r | |
mcu-nspanel-patio | |
mcu-nspanel-fireplace | |
mcu-rf433 | |
mcu-socket-01 | |
mcu-socket-02 | |
mcu-socket-03 | |
mcu-patio | |
mcu-staircase-light | |
mcu-tv-light | |
mcu-waterproof-socket |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export ESPHOME_IS_HA_ADDON=true | |
while IFS=, read -r device | |
do | |
esphome upload ${device}.yaml --device ${device}.local | |
done < devices_prod.csv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment