mirror of
https://github.com/randybb/esphome-configs.git
synced 2026-07-02 09:16:04 +02:00
Compare commits
9 Commits
ca6f175a58
...
e4c8c72c20
| Author | SHA1 | Date | |
|---|---|---|---|
| e4c8c72c20 | |||
| bd087dc511 | |||
| 184a40ddf7 | |||
| 0f68e1379f | |||
| a76df9405b | |||
| 51f7537244 | |||
| bab7ffafe6 | |||
| e00040e7ee | |||
| 39929e46a7 |
@@ -1,7 +1,9 @@
|
|||||||
# Gitignore settings for ESPHome
|
# Gitignore settings for ESPHome
|
||||||
# This is an example and may include too much for your use-case.
|
# This is an example and may include too much for your use-case.
|
||||||
# You can modify this file to suit your needs.
|
# You can modify this file to suit your needs.
|
||||||
|
/.claude/
|
||||||
/.esphome/
|
/.esphome/
|
||||||
/secrets.yaml
|
/secrets.yaml
|
||||||
/archive/
|
/archive/
|
||||||
/trash/
|
/trash/
|
||||||
|
.device-builder.yaml
|
||||||
Binary file not shown.
Binary file not shown.
@@ -1,3 +1,4 @@
|
|||||||
---
|
---
|
||||||
platform: status
|
platform: status
|
||||||
name: Status
|
name: Status
|
||||||
|
id: status_sensor
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
---
|
---
|
||||||
platform: factory_reset
|
platform: factory_reset
|
||||||
name: Factory Defaults
|
name: Factory Defaults
|
||||||
|
id: factory_reset_button
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
---
|
---
|
||||||
platform: restart
|
platform: restart
|
||||||
name: Restart
|
name: Restart
|
||||||
|
id: restart_button
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
---
|
---
|
||||||
platform: safe_mode
|
platform: safe_mode
|
||||||
name: Restart (Safe Mode)
|
name: Restart (Safe Mode)
|
||||||
|
id: restart_safe_mode_button
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
---
|
---
|
||||||
platform: shutdown
|
platform: shutdown
|
||||||
name: Shutdown
|
name: Shutdown
|
||||||
|
id: shutdown_button
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
<<: !include wifi.yaml
|
<<: !include wifi.yaml
|
||||||
<<: !include api.yaml
|
<<: !include api.yaml
|
||||||
<<: !include ota.yaml
|
<<: !include ota_esp32.yaml
|
||||||
# <<: !include logger.yaml
|
# <<: !include logger.yaml
|
||||||
<<: !include logger_debug.yaml
|
<<: !include logger_debug.yaml
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
<<: !include api.yaml
|
<<: !include api.yaml
|
||||||
<<: !include ota.yaml
|
<<: !include ota_esp32.yaml
|
||||||
<<: !include logger_debug.yaml
|
<<: !include logger_debug.yaml
|
||||||
<<: !include ethernet.yaml
|
<<: !include ethernet.yaml
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
ota:
|
||||||
|
- platform: esphome
|
||||||
|
password: !secret ota_password
|
||||||
|
# allow_partition_access: true
|
||||||
@@ -2,9 +2,13 @@
|
|||||||
platform: debug
|
platform: debug
|
||||||
free:
|
free:
|
||||||
name: Heap Free
|
name: Heap Free
|
||||||
|
id: heap_free_sensor
|
||||||
fragmentation:
|
fragmentation:
|
||||||
name: Heap Fragmentation
|
name: Heap Fragmentation
|
||||||
|
id: heap_fragmentation_sensor
|
||||||
block:
|
block:
|
||||||
name: Heap Max Block
|
name: Heap Max Block
|
||||||
|
id: heap_max_block_sensor
|
||||||
loop_time:
|
loop_time:
|
||||||
name: Loop Time
|
name: Loop Time
|
||||||
|
id: loop_time_sensor
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
platform: uptime
|
platform: uptime
|
||||||
name: Uptime
|
name: Uptime
|
||||||
|
id: uptime_sensor
|
||||||
unit_of_measurement: "days"
|
unit_of_measurement: "days"
|
||||||
accuracy_decimals: 2
|
accuracy_decimals: 2
|
||||||
update_interval: 60s
|
update_interval: 60s
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
---
|
---
|
||||||
platform: wifi_signal
|
platform: wifi_signal
|
||||||
name: WiFi Signal
|
name: WiFi Signal
|
||||||
|
id: wifi_signal_sensor
|
||||||
update_interval: 60s
|
update_interval: 60s
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
---
|
---
|
||||||
platform: restart
|
platform: restart
|
||||||
name: Restart
|
name: Restart
|
||||||
|
id: restart_switch
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
---
|
---
|
||||||
platform: safe_mode
|
platform: safe_mode
|
||||||
name: Restart (Safe Mode)
|
name: Restart (Safe Mode)
|
||||||
|
id: restart_safe_mode_switch
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
---
|
---
|
||||||
platform: shutdown
|
platform: shutdown
|
||||||
name: Shutdown
|
name: Shutdown
|
||||||
|
id: shutdown_switch
|
||||||
|
|||||||
@@ -2,5 +2,7 @@
|
|||||||
platform: debug
|
platform: debug
|
||||||
device:
|
device:
|
||||||
name: Device Info
|
name: Device Info
|
||||||
|
id: device_info_sensor
|
||||||
reset_reason:
|
reset_reason:
|
||||||
name: Reset Reason
|
name: Reset Reason
|
||||||
|
id: reset_reason_sensor
|
||||||
|
|||||||
@@ -2,7 +2,10 @@
|
|||||||
platform: ethernet_info
|
platform: ethernet_info
|
||||||
ip_address:
|
ip_address:
|
||||||
name: IP Address
|
name: IP Address
|
||||||
|
id: ip_address_sensor
|
||||||
address_1:
|
address_1:
|
||||||
name: IP Address 1
|
name: IP Address 1
|
||||||
|
id: ip_address_1_sensor
|
||||||
address_2:
|
address_2:
|
||||||
name: IP Address 2
|
name: IP Address 2
|
||||||
|
id: ip_address_2_sensor
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
platform: git_ref
|
platform: git_ref
|
||||||
name: Git Ref
|
name: Git Ref
|
||||||
|
id: git_ref_sensor
|
||||||
long: true
|
long: true
|
||||||
all: true
|
all: true
|
||||||
abbrev: 16
|
abbrev: 16
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
---
|
---
|
||||||
platform: uptime
|
platform: uptime
|
||||||
name: Uptime
|
name: Uptime
|
||||||
|
id: uptime_sensor
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
---
|
---
|
||||||
platform: version
|
platform: version
|
||||||
name: Version
|
name: Version
|
||||||
|
id: version_sensor
|
||||||
|
|||||||
@@ -2,29 +2,39 @@
|
|||||||
platform: wifi_info
|
platform: wifi_info
|
||||||
ip_address:
|
ip_address:
|
||||||
name: IP Address
|
name: IP Address
|
||||||
|
id: ip_address_sensor
|
||||||
icon: mdi:ip-network
|
icon: mdi:ip-network
|
||||||
# address_0:
|
# address_0:
|
||||||
# name: IP Address 0
|
# name: IP Address 0
|
||||||
# icon: mdi:ip-network
|
# icon: mdi:ip-network
|
||||||
address_1:
|
address_1:
|
||||||
name: IP Address 1
|
name: IP Address 1
|
||||||
|
id: ip_address_1_sensor
|
||||||
icon: mdi:ip-network
|
icon: mdi:ip-network
|
||||||
address_2:
|
address_2:
|
||||||
name: IP Address 2
|
name: IP Address 2
|
||||||
|
id: ip_address_2_sensor
|
||||||
icon: mdi:ip-network
|
icon: mdi:ip-network
|
||||||
# address_3:
|
# address_3:
|
||||||
# name: IP Address 3
|
# name: IP Address 3
|
||||||
|
# id: ip_address_3_sensor
|
||||||
# icon: mdi:ip-network
|
# icon: mdi:ip-network
|
||||||
# address_4:
|
# address_4:
|
||||||
# name: IP Address 4
|
# name: IP Address 4
|
||||||
|
# id: ip_address_4_sensor
|
||||||
# icon: mdi:ip-network
|
# icon: mdi:ip-network
|
||||||
#ssid:
|
#ssid:
|
||||||
# name: SSID
|
# name: SSID
|
||||||
|
# id: ssid_sensor
|
||||||
#bssid:
|
#bssid:
|
||||||
# name: BSSID
|
# name: BSSID
|
||||||
|
# id: bssid_sensor
|
||||||
mac_address:
|
mac_address:
|
||||||
name: MAC
|
name: MAC
|
||||||
|
id: mac_address_sensor
|
||||||
#scan_results:
|
#scan_results:
|
||||||
# name: Latest Scan Results
|
# name: Latest Scan Results
|
||||||
|
# id: scan_results_sensor
|
||||||
power_save_mode:
|
power_save_mode:
|
||||||
name: WiFi Power Save Mode
|
name: WiFi Power Save Mode
|
||||||
|
id: wifi_power_save_mode_sensor
|
||||||
|
|||||||
@@ -6,3 +6,4 @@ wifi:
|
|||||||
password: !secret wifi_password
|
password: !secret wifi_password
|
||||||
# enable_btm: true
|
# enable_btm: true
|
||||||
# enable_rrm: true
|
# enable_rrm: true
|
||||||
|
min_auth_mode: WPA2
|
||||||
|
|||||||
@@ -1,12 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
export ESPHOME_IS_HA_ADDON=true
|
|
||||||
|
|
||||||
while IFS=, read -r device
|
|
||||||
do
|
|
||||||
esphome compile ${device}.yaml
|
|
||||||
# esphome upload ${device}.yaml --device ${device}.local
|
|
||||||
# esphome run ${device}.yaml
|
|
||||||
done < devices_dev.csv
|
|
||||||
# done < devices_prod.csv
|
|
||||||
#done < devices_nspanel.csv
|
|
||||||
-28
@@ -1,28 +0,0 @@
|
|||||||
m5stickc
|
|
||||||
mcu-basement
|
|
||||||
mcu-cam-1
|
|
||||||
mcu-clock-1
|
|
||||||
mcu-desk-lamp
|
|
||||||
mcu-dev-1
|
|
||||||
mcu-dev-2
|
|
||||||
mcu-dev-heating
|
|
||||||
mcu-dev-lora
|
|
||||||
mcu-dev-neo
|
|
||||||
mcu-dimmer
|
|
||||||
mcu-fireplace
|
|
||||||
mcu-gate
|
|
||||||
mcu-heating
|
|
||||||
mcu-irrigation-1
|
|
||||||
mcu-mini-01
|
|
||||||
mcu-mini-02
|
|
||||||
mcu-mini-03
|
|
||||||
mcu-mini-04
|
|
||||||
mcu-patio
|
|
||||||
mcu-rf433
|
|
||||||
mcu-socket-01
|
|
||||||
mcu-socket-02
|
|
||||||
mcu-socket-03
|
|
||||||
mcu-sw-office-r
|
|
||||||
mcu-tv-light
|
|
||||||
mcu-waterproof-socket
|
|
||||||
secrets
|
|
||||||
|
@@ -1,3 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
ls -1 *.yaml | sed "s/.yaml//g" > devices.csv
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
mcu-clock-1
|
|
||||||
mcu-nspanel-dev
|
|
||||||
mcu-gateway
|
|
||||||
mcu-atoms3
|
|
||||||
|
@@ -1,4 +0,0 @@
|
|||||||
nodemcu_cam_1
|
|
||||||
nodemcu_heating_dev
|
|
||||||
nodemcu_heating_dev_2
|
|
||||||
nodemcu_neo_0
|
|
||||||
|
@@ -1,7 +0,0 @@
|
|||||||
mcu-nspanel-bedroom
|
|
||||||
mcu-nspanel-dev
|
|
||||||
mcu-nspanel-ex
|
|
||||||
mcu-nspanel-office-j
|
|
||||||
mcu-nspanel-office-r
|
|
||||||
mcu-nspanel-patio
|
|
||||||
mcu-nspanel-fireplace
|
|
||||||
|
@@ -1,27 +0,0 @@
|
|||||||
mcu-basement
|
|
||||||
mcu-basement-2
|
|
||||||
mcu-clock-1
|
|
||||||
mcu-desk-lamp
|
|
||||||
mcu-dimmer
|
|
||||||
mcu-fireplace
|
|
||||||
mcu-echo
|
|
||||||
mcu-gate
|
|
||||||
mcu-heating
|
|
||||||
mcu-kitchen
|
|
||||||
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-shed
|
|
||||||
mcu-staircase-light
|
|
||||||
mcu-tv-light
|
|
||||||
mcu-waterproof-socket
|
|
||||||
mcu-well
|
|
||||||
|
+2
-1
@@ -28,7 +28,6 @@ esphome:
|
|||||||
- light.turn_off: light_3
|
- light.turn_off: light_3
|
||||||
# - light.turn_off: light_4
|
# - light.turn_off: light_4
|
||||||
|
|
||||||
|
|
||||||
esp32:
|
esp32:
|
||||||
variant: esp32
|
variant: esp32
|
||||||
framework:
|
framework:
|
||||||
@@ -37,6 +36,8 @@ esp32:
|
|||||||
packages:
|
packages:
|
||||||
common: !include common/common.yaml
|
common: !include common/common.yaml
|
||||||
|
|
||||||
|
api:
|
||||||
|
reboot_timeout: 300s
|
||||||
|
|
||||||
# PINOUTS: M5ATOM+Atom Hub Switch
|
# PINOUTS: M5ATOM+Atom Hub Switch
|
||||||
# IR G12
|
# IR G12
|
||||||
|
|||||||
@@ -51,6 +51,10 @@ api:
|
|||||||
- switch.turn_on: irrigation_relay_2
|
- switch.turn_on: irrigation_relay_2
|
||||||
- delay: 4minutes
|
- delay: 4minutes
|
||||||
- switch.turn_off: irrigation_relay_2
|
- switch.turn_off: irrigation_relay_2
|
||||||
|
- delay: 2minutes
|
||||||
|
- switch.turn_on: irrigation_relay_3
|
||||||
|
- delay: 4minutes
|
||||||
|
- switch.turn_off: irrigation_relay_3
|
||||||
# - switch.turn_on: irrigation_relay_4
|
# - switch.turn_on: irrigation_relay_4
|
||||||
# - delay: 40minutes
|
# - delay: 40minutes
|
||||||
# - switch.turn_off: irrigation_relay_4
|
# - switch.turn_off: irrigation_relay_4
|
||||||
|
|||||||
@@ -1,9 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
export ESPHOME_IS_HA_ADDON=true
|
|
||||||
|
|
||||||
while IFS=, read -r device
|
|
||||||
do
|
|
||||||
esphome upload ${device}.yaml --device ${device}.local
|
|
||||||
#done < devices_nspanel.csv
|
|
||||||
done < devices_prod.csv
|
|
||||||
Reference in New Issue
Block a user