Skip to content

Instantly share code, notes, and snippets.

@randybb
Created June 20, 2023 18:59
Show Gist options
  • Save randybb/416b865ec65bcaa18a549e05d48d877a to your computer and use it in GitHub Desktop.
Save randybb/416b865ec65bcaa18a549e05d48d877a to your computer and use it in GitHub Desktop.
esphome compile/update
#!/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.
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
#!/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