mirror of
https://github.com/athom-tech/esp32-configs.git
synced 2026-07-27 19:56:13 +00:00
Changed to ESP-IDF framework
This commit is contained in:
@@ -4,7 +4,7 @@ substitutions:
|
||||
room: ""
|
||||
device_description: "athom esp32 2ch relay board"
|
||||
project_name: "Athom Technology.ESP32 2CH Relay Board"
|
||||
project_version: "v2.0.4"
|
||||
project_version: "v2.0.5"
|
||||
update_interval: 60s
|
||||
# Define a domain for this device to use. i.e. iot.home.lan (so device will appear as athom-smart-plug-v2.iot.home.lan in DNS/DHCP logs)
|
||||
dns_domain: ".local"
|
||||
@@ -31,7 +31,7 @@ esphome:
|
||||
comment: "${device_description}"
|
||||
area: "${room}"
|
||||
name_add_mac_suffix: true
|
||||
min_version: 2024.6.0
|
||||
min_version: 2025.7.0
|
||||
project:
|
||||
name: "${project_name}"
|
||||
version: "${project_version}"
|
||||
@@ -98,6 +98,7 @@ dashboard_import:
|
||||
remote_receiver:
|
||||
pin: GPIO17
|
||||
dump: rc_switch
|
||||
id: "rc_switch_receiver"
|
||||
|
||||
binary_sensor:
|
||||
- platform: status
|
||||
|
||||
@@ -4,7 +4,7 @@ substitutions:
|
||||
room: ""
|
||||
device_description: "athom esp32 4ch relay board"
|
||||
project_name: "Athom Technology.ESP32 4CH Relay Board"
|
||||
project_version: "v2.0.4"
|
||||
project_version: "v2.0.5"
|
||||
update_interval: 60s
|
||||
# Define a domain for this device to use. i.e. iot.home.lan (so device will appear as athom-smart-plug-v2.iot.home.lan in DNS/DHCP logs)
|
||||
dns_domain: ".local"
|
||||
@@ -33,7 +33,7 @@ esphome:
|
||||
comment: "${device_description}"
|
||||
area: "${room}"
|
||||
name_add_mac_suffix: true
|
||||
min_version: 2024.6.0
|
||||
min_version: 2025.7.0
|
||||
project:
|
||||
name: "${project_name}"
|
||||
version: "${project_version}"
|
||||
@@ -100,6 +100,7 @@ dashboard_import:
|
||||
remote_receiver:
|
||||
pin: GPIO17
|
||||
dump: rc_switch
|
||||
id: "rc_switch_receiver"
|
||||
|
||||
binary_sensor:
|
||||
- platform: status
|
||||
|
||||
@@ -4,7 +4,7 @@ substitutions:
|
||||
room: ""
|
||||
device_description: "athom esp32 8ch relay board"
|
||||
project_name: "Athom Technology.ESP32 8CH Relay Board"
|
||||
project_version: "v2.0.4"
|
||||
project_version: "v2.0.5"
|
||||
update_interval: 60s
|
||||
# Define a domain for this device to use. i.e. iot.home.lan (so device will appear as athom-smart-plug-v2.iot.home.lan in DNS/DHCP logs)
|
||||
dns_domain: ".local"
|
||||
@@ -37,7 +37,7 @@ esphome:
|
||||
comment: "${device_description}"
|
||||
area: "${room}"
|
||||
name_add_mac_suffix: true
|
||||
min_version: 2024.6.0
|
||||
min_version: 2025.7.0
|
||||
project:
|
||||
name: "${project_name}"
|
||||
version: "${project_version}"
|
||||
@@ -104,6 +104,7 @@ dashboard_import:
|
||||
remote_receiver:
|
||||
pin: GPIO17
|
||||
dump: rc_switch
|
||||
id: "rc_switch_receiver"
|
||||
|
||||
binary_sensor:
|
||||
- platform: status
|
||||
|
||||
@@ -5,7 +5,7 @@ substitutions:
|
||||
room: ""
|
||||
device_description: "athom bl0906 energy meter (2 channels)"
|
||||
project_name: "Athom Technology.Athom Energy Meter(2 Channels)"
|
||||
project_version: "2.0.5"
|
||||
project_version: "3.0.0"
|
||||
update_interval: 5s
|
||||
# Define a domain for this device to use. i.e. iot.home.lan (so device will appear as athom-smart-plug-v2.iot.home.lan in DNS/DHCP logs)
|
||||
dns_domain: ".local"
|
||||
@@ -42,7 +42,7 @@ esphome:
|
||||
friendly_name: "${friendly_name}"
|
||||
area: "${room}"
|
||||
name_add_mac_suffix: true
|
||||
min_version: 2024.9.2
|
||||
min_version: 2025.7.0
|
||||
project:
|
||||
name: "${project_name}"
|
||||
version: "${project_version}"
|
||||
@@ -52,7 +52,7 @@ esp32:
|
||||
flash_size: 4MB
|
||||
variant: ESP32C3
|
||||
framework:
|
||||
type: arduino
|
||||
type: esp-idf
|
||||
version: recommended
|
||||
|
||||
preferences:
|
||||
@@ -156,8 +156,9 @@ sensor:
|
||||
- platform: uptime
|
||||
name: "Uptime Sensor"
|
||||
id: uptime_sensor
|
||||
entity_category: diagnostic
|
||||
internal: true
|
||||
type:
|
||||
timestamp
|
||||
entity_category: "diagnostic"
|
||||
|
||||
- platform: wifi_signal
|
||||
name: "WiFi Signal dB"
|
||||
@@ -338,31 +339,6 @@ text_sensor:
|
||||
entity_category: diagnostic
|
||||
device_class: timestamp
|
||||
|
||||
- platform: template
|
||||
name: "Uptime"
|
||||
id: uptimes
|
||||
icon: mdi:clock-start
|
||||
entity_category: diagnostic
|
||||
lambda: |-
|
||||
int seconds = (id(uptime_sensor).state);
|
||||
int days = seconds / (24 * 3600);
|
||||
seconds = seconds % (24 * 3600);
|
||||
int hours = seconds / 3600;
|
||||
seconds = seconds % 3600;
|
||||
int minutes = seconds / 60;
|
||||
seconds = seconds % 60;
|
||||
if ( days > 3650 ) {
|
||||
return { "Starting up" };
|
||||
} else if ( days ) {
|
||||
return { (String(days) +"d " + String(hours) +"h " + String(minutes) +"m "+ String(seconds) +"s").c_str() };
|
||||
} else if ( hours ) {
|
||||
return { (String(hours) +"h " + String(minutes) +"m "+ String(seconds) +"s").c_str() };
|
||||
} else if ( minutes ) {
|
||||
return { (String(minutes) +"m "+ String(seconds) +"s").c_str() };
|
||||
} else {
|
||||
return { (String(seconds) +"s").c_str() };
|
||||
}
|
||||
|
||||
time:
|
||||
- platform: sntp
|
||||
id: sntp_time
|
||||
|
||||
@@ -5,7 +5,7 @@ substitutions:
|
||||
room: ""
|
||||
device_description: "athom bl0906 energy meter (6 channels)"
|
||||
project_name: "Athom Technology.Athom Energy Meter(6 Channels)"
|
||||
project_version: "2.0.5"
|
||||
project_version: "3.0.0"
|
||||
update_interval: 5s
|
||||
# Define a domain for this device to use. i.e. iot.home.lan (so device will appear as athom-smart-plug-v2.iot.home.lan in DNS/DHCP logs)
|
||||
dns_domain: ".local"
|
||||
@@ -54,7 +54,7 @@ esphome:
|
||||
friendly_name: "${friendly_name}"
|
||||
area: "${room}"
|
||||
name_add_mac_suffix: true
|
||||
min_version: 2024.9.2
|
||||
min_version: 2025.7.0
|
||||
project:
|
||||
name: "${project_name}"
|
||||
version: "${project_version}"
|
||||
@@ -64,7 +64,7 @@ esp32:
|
||||
flash_size: 4MB
|
||||
variant: ESP32C3
|
||||
framework:
|
||||
type: arduino
|
||||
type: esp-idf
|
||||
version: recommended
|
||||
|
||||
# esp32:
|
||||
@@ -212,8 +212,9 @@ sensor:
|
||||
- platform: uptime
|
||||
name: "Uptime Sensor"
|
||||
id: uptime_sensor
|
||||
entity_category: diagnostic
|
||||
internal: true
|
||||
type:
|
||||
timestamp
|
||||
entity_category: "diagnostic"
|
||||
|
||||
- platform: wifi_signal
|
||||
name: "WiFi Signal dB"
|
||||
@@ -542,31 +543,6 @@ text_sensor:
|
||||
entity_category: diagnostic
|
||||
device_class: timestamp
|
||||
|
||||
- platform: template
|
||||
name: "Uptime"
|
||||
id: uptimes
|
||||
icon: mdi:clock-start
|
||||
entity_category: diagnostic
|
||||
lambda: |-
|
||||
int seconds = (id(uptime_sensor).state);
|
||||
int days = seconds / (24 * 3600);
|
||||
seconds = seconds % (24 * 3600);
|
||||
int hours = seconds / 3600;
|
||||
seconds = seconds % 3600;
|
||||
int minutes = seconds / 60;
|
||||
seconds = seconds % 60;
|
||||
if ( days > 3650 ) {
|
||||
return { "Starting up" };
|
||||
} else if ( days ) {
|
||||
return { (String(days) +"d " + String(hours) +"h " + String(minutes) +"m "+ String(seconds) +"s").c_str() };
|
||||
} else if ( hours ) {
|
||||
return { (String(hours) +"h " + String(minutes) +"m "+ String(seconds) +"s").c_str() };
|
||||
} else if ( minutes ) {
|
||||
return { (String(minutes) +"m "+ String(seconds) +"s").c_str() };
|
||||
} else {
|
||||
return { (String(seconds) +"s").c_str() };
|
||||
}
|
||||
|
||||
time:
|
||||
- platform: sntp
|
||||
id: sntp_time
|
||||
|
||||
+6
-29
@@ -10,7 +10,7 @@ substitutions:
|
||||
# Project Name
|
||||
project_name: "Athom Technology.Garage Door Opener"
|
||||
# Project version denotes the release version of the yaml file, allowing checking of deployed vs latest version
|
||||
project_version: "v2.0.4"
|
||||
project_version: "v3.0.0"
|
||||
# Define a domain for this device to use. i.e. iot.home.lan (so device will appear as athom-smart-plug-v2.iot.home.lan in DNS/DHCP logs)
|
||||
dns_domain: ".local"
|
||||
# Set timezone of the smart plug. Useful if the plug is in a location different to the HA server. Can be entered in unix Country/Area format (i.e. "Australia/Sydney")
|
||||
@@ -34,7 +34,7 @@ esphome:
|
||||
friendly_name: "${friendly_name}"
|
||||
area: "${room}"
|
||||
name_add_mac_suffix: true
|
||||
min_version: 2024.6.0
|
||||
min_version: 2025.7.0
|
||||
project:
|
||||
name: "${project_name}"
|
||||
version: "${project_version}"
|
||||
@@ -48,7 +48,7 @@ esp32:
|
||||
flash_size: 4MB
|
||||
variant: ESP32C3
|
||||
framework:
|
||||
type: arduino
|
||||
type: esp-idf
|
||||
version: recommended
|
||||
|
||||
api:
|
||||
@@ -89,8 +89,9 @@ sensor:
|
||||
- platform: uptime
|
||||
name: "Uptime Sensor"
|
||||
id: uptime_sensor
|
||||
entity_category: diagnostic
|
||||
internal: true
|
||||
type:
|
||||
timestamp
|
||||
entity_category: "diagnostic"
|
||||
|
||||
- platform: wifi_signal
|
||||
name: "WiFi Signal dB"
|
||||
@@ -215,30 +216,6 @@ text_sensor:
|
||||
entity_category: diagnostic
|
||||
device_class: timestamp
|
||||
|
||||
- platform: template
|
||||
name: "Uptime"
|
||||
entity_category: diagnostic
|
||||
lambda: |-
|
||||
int seconds = (id(uptime_sensor).state);
|
||||
int days = seconds / (24 * 3600);
|
||||
seconds = seconds % (24 * 3600);
|
||||
int hours = seconds / 3600;
|
||||
seconds = seconds % 3600;
|
||||
int minutes = seconds / 60;
|
||||
seconds = seconds % 60;
|
||||
if ( days > 3650 ) {
|
||||
return { "Starting up" };
|
||||
} else if ( days ) {
|
||||
return { (String(days) +"d " + String(hours) +"h " + String(minutes) +"m "+ String(seconds) +"s").c_str() };
|
||||
} else if ( hours ) {
|
||||
return { (String(hours) +"h " + String(minutes) +"m "+ String(seconds) +"s").c_str() };
|
||||
} else if ( minutes ) {
|
||||
return { (String(minutes) +"m "+ String(seconds) +"s").c_str() };
|
||||
} else {
|
||||
return { (String(seconds) +"s").c_str() };
|
||||
}
|
||||
icon: mdi:clock-start
|
||||
|
||||
time:
|
||||
- platform: sntp
|
||||
id: sntp_time
|
||||
|
||||
@@ -10,7 +10,7 @@ substitutions:
|
||||
# Project Name
|
||||
project_name: "Athom Technology.Mini Relay V2"
|
||||
# Projection version denotes the release version of the yaml file, allowing checking of deployed vs latest version
|
||||
project_version: "v2.0.4"
|
||||
project_version: "v3.0.0"
|
||||
# Restore the relay (GPO switch) upon reboot to state:
|
||||
light_restore_mode: RESTORE_DEFAULT_OFF
|
||||
# Set the update interval for sensors
|
||||
@@ -42,7 +42,7 @@ esphome:
|
||||
comment: "${device_description}"
|
||||
area: "${room}"
|
||||
name_add_mac_suffix: true
|
||||
min_version: 2024.5.0
|
||||
min_version: 2025.7.0
|
||||
project:
|
||||
name: "${project_name}"
|
||||
version: "${project_version}"
|
||||
@@ -56,7 +56,7 @@ esp32:
|
||||
flash_size: 4MB
|
||||
variant: ESP32C3
|
||||
framework:
|
||||
type: arduino
|
||||
type: esp-idf
|
||||
version: recommended
|
||||
|
||||
preferences:
|
||||
@@ -158,8 +158,9 @@ sensor:
|
||||
- platform: uptime
|
||||
name: "Uptime Sensor"
|
||||
id: uptime_sensor
|
||||
entity_category: diagnostic
|
||||
internal: true
|
||||
type:
|
||||
timestamp
|
||||
entity_category: "diagnostic"
|
||||
|
||||
- platform: wifi_signal
|
||||
name: "WiFi Signal dB"
|
||||
@@ -310,31 +311,6 @@ text_sensor:
|
||||
entity_category: diagnostic
|
||||
# device_class: timestamp
|
||||
|
||||
# Creates a sensor of the uptime of the device, in formatted days, hours, minutes and seconds
|
||||
- platform: template
|
||||
name: "Uptime"
|
||||
entity_category: diagnostic
|
||||
lambda: |-
|
||||
int seconds = (id(uptime_sensor).state);
|
||||
int days = seconds / (24 * 3600);
|
||||
seconds = seconds % (24 * 3600);
|
||||
int hours = seconds / 3600;
|
||||
seconds = seconds % 3600;
|
||||
int minutes = seconds / 60;
|
||||
seconds = seconds % 60;
|
||||
if ( days > 3650 ) {
|
||||
return { "Starting up" };
|
||||
} else if ( days ) {
|
||||
return { (String(days) +"d " + String(hours) +"h " + String(minutes) +"m "+ String(seconds) +"s").c_str() };
|
||||
} else if ( hours ) {
|
||||
return { (String(hours) +"h " + String(minutes) +"m "+ String(seconds) +"s").c_str() };
|
||||
} else if ( minutes ) {
|
||||
return { (String(minutes) +"m "+ String(seconds) +"s").c_str() };
|
||||
} else {
|
||||
return { (String(seconds) +"s").c_str() };
|
||||
}
|
||||
icon: mdi:clock-start
|
||||
|
||||
time:
|
||||
- platform: sntp
|
||||
id: sntp_time
|
||||
|
||||
@@ -10,7 +10,7 @@ substitutions:
|
||||
# Project Name
|
||||
project_name: "Athom Technology.Athom PS01C3 Presence Sensor"
|
||||
# Projection version denotes the release version of the yaml file, allowing checking of deployed vs latest version
|
||||
project_version: "v3.0.3"
|
||||
project_version: "v4.0.0"
|
||||
# Define a domain for this device to use. i.e. iot.home.lan (so device will appear as athom-smart-plug-v2.iot.home.lan in DNS/DHCP logs)
|
||||
dns_domain: ".local"
|
||||
# Set timezone of the smart plug. Useful if the plug is in a location different to the HA server. Can be entered in unix Country/Area format (i.e. "Australia/Sydney")
|
||||
@@ -34,7 +34,7 @@ esphome:
|
||||
comment: "${device_description}"
|
||||
area: "${room}"
|
||||
name_add_mac_suffix: true
|
||||
min_version: 2024.6.0
|
||||
min_version: 2025.7.0
|
||||
project:
|
||||
name: "${project_name}"
|
||||
version: "${project_version}"
|
||||
@@ -46,7 +46,7 @@ esp32:
|
||||
flash_size: 4MB
|
||||
variant: ESP32C3
|
||||
framework:
|
||||
type: arduino
|
||||
type: esp-idf
|
||||
version: recommended
|
||||
|
||||
preferences:
|
||||
@@ -213,6 +213,7 @@ sensor:
|
||||
|
||||
- platform: bh1750
|
||||
name: "Light Sensor"
|
||||
id: "light_sensor"
|
||||
address: 0x23
|
||||
update_interval: 5s
|
||||
|
||||
|
||||
+6
-12
@@ -10,7 +10,7 @@ substitutions:
|
||||
# Project Name
|
||||
project_name: "Athom Technology.Smart Plug V3"
|
||||
# Projection version denotes the release version of the yaml file, allowing checking of deployed vs latest version
|
||||
project_version: "v1.0.7"
|
||||
project_version: "v2.0.0"
|
||||
# Restore the relay (GPO switch) upon reboot to state:
|
||||
relay_restore_mode: RESTORE_DEFAULT_ON
|
||||
# Set the update interval for sensors
|
||||
@@ -46,7 +46,7 @@ esphome:
|
||||
comment: "${device_description}"
|
||||
area: "${room}"
|
||||
name_add_mac_suffix: true
|
||||
min_version: 2024.6.0
|
||||
min_version: 2025.7.0
|
||||
project:
|
||||
name: "${project_name}"
|
||||
version: "${project_version}"
|
||||
@@ -84,6 +84,7 @@ esp32:
|
||||
variant: ESP32C3
|
||||
framework:
|
||||
type: esp-idf
|
||||
version: recommended
|
||||
|
||||
preferences:
|
||||
flash_write_interval: 5min
|
||||
@@ -185,8 +186,9 @@ sensor:
|
||||
- platform: uptime
|
||||
name: "Uptime Sensor"
|
||||
id: uptime_sensor
|
||||
entity_category: diagnostic
|
||||
internal: true
|
||||
type:
|
||||
timestamp
|
||||
entity_category: "diagnostic"
|
||||
|
||||
- platform: wifi_signal
|
||||
name: "WiFi Signal dB"
|
||||
@@ -344,14 +346,6 @@ text_sensor:
|
||||
entity_category: diagnostic
|
||||
# device_class: timestamp
|
||||
|
||||
# Creates a sensor of the uptime of the device, in formatted days, hours, minutes and seconds
|
||||
- platform: uptime
|
||||
name: "Uptime"
|
||||
entity_category: diagnostic
|
||||
format:
|
||||
separator: " "
|
||||
icon: mdi:clock-start
|
||||
|
||||
time:
|
||||
- platform: sntp
|
||||
id: sntp_time
|
||||
|
||||
@@ -10,7 +10,7 @@ substitutions:
|
||||
# Project Name
|
||||
project_name: "Athom Technology.Athom Zigbee Gateway"
|
||||
# Projection version denotes the release version of the yaml file, allowing checking of deployed vs latest version
|
||||
project_version: "v2.0.2"
|
||||
project_version: "v2.0.3"
|
||||
# Define a domain for this device to use. i.e. iot.home.lan (so device will appear as athom-smart-plug-v2.iot.home.lan in DNS/DHCP logs)
|
||||
dns_domain: ".local"
|
||||
# Set timezone of the smart plug. Useful if the plug is in a location different to the HA server. Can be entered in unix Country/Area format (i.e. "Australia/Sydney")
|
||||
@@ -36,6 +36,7 @@ esp32:
|
||||
board: esp32dev
|
||||
framework:
|
||||
type: esp-idf
|
||||
version: recommended
|
||||
|
||||
external_components:
|
||||
- source: github://oxan/esphome-stream-server
|
||||
|
||||
Reference in New Issue
Block a user