add device_description

This commit is contained in:
Aiden
2025-08-19 17:07:02 +08:00
parent 7d3e4ff788
commit c2a38c6492
7 changed files with 89 additions and 13 deletions
+2 -1
View File
@@ -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: "3.0.0"
project_version: "3.0.1"
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"
@@ -40,6 +40,7 @@ substitutions:
esphome:
name: "${name}"
friendly_name: "${friendly_name}"
comment: "${device_description}"
area: "${room}"
name_add_mac_suffix: true
min_version: 2025.7.0
+2 -1
View File
@@ -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: "3.0.0"
project_version: "3.0.1"
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"
@@ -52,6 +52,7 @@ substitutions:
esphome:
name: "${name}"
friendly_name: "${friendly_name}"
comment: "${device_description}"
area: "${room}"
name_add_mac_suffix: true
min_version: 2025.7.0
+2 -1
View File
@@ -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: "v3.0.0"
project_version: "v3.0.1"
# 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")
@@ -32,6 +32,7 @@ substitutions:
esphome:
name: "${name}"
friendly_name: "${friendly_name}"
comment: "${device_description}"
area: "${room}"
name_add_mac_suffix: true
min_version: 2025.7.0
+2 -1
View File
@@ -4,7 +4,7 @@ substitutions:
room: ""
device_description: "athom esp32c3 ld2450 motion target tracking sensor"
project_name: "Athom Technology.PS02C3MZ LD2450"
project_version: "v2.0.0"
project_version: "v2.0.1"
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: ""
@@ -26,6 +26,7 @@ substitutions:
esphome:
name: "${name}"
friendly_name: "${friendly_name}"
comment: "${device_description}"
area: "${room}"
name_add_mac_suffix: true
min_version: 2025.7.0
+73 -3
View File
@@ -5,7 +5,7 @@ substitutions:
room: ""
device_description: "athom scd40 CO₂ sensor"
project_name: "China Athom Technology.CO₂ Sensor"
project_version: "1.0.5"
project_version: "1.0.6"
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"
@@ -34,6 +34,7 @@ substitutions:
esphome:
name: "${name}"
friendly_name: "${friendly_name}"
comment: "${device_description}"
area: "${room}"
name_add_mac_suffix: true
min_version: 2025.7.0
@@ -42,6 +43,16 @@ esphome:
version: "${project_version}"
platformio_options:
board_build.flash_mode: dio
on_boot:
priority: 800
then:
- if:
condition:
wifi.connected:
then:
- light.turn_off: led
else:
- script.execute: wifi_rgb_loop
esp32:
board: esp32-c3-devkitm-1
@@ -83,8 +94,8 @@ esp32_improv:
esp32_ble_tracker:
scan_parameters:
interval: 1100ms
window: 1100ms
interval: 320ms
window: 320ms
active: true
bluetooth_proxy:
@@ -107,8 +118,19 @@ sensor:
name: "CO2"
id: "co2"
on_value:
if:
condition:
switch.is_on: status_light
then:
- script.execute: update_aqi
temperature:
name: "Temperature"
id: "temperature"
disabled_by_default: true
humidity:
name: "Humidity"
id: "humidity"
disabled_by_default: true
- platform: uptime
name: "Uptime Sensor"
@@ -174,6 +196,18 @@ light:
name: "Light"
id: "led"
switch:
- platform: template
name: "Status Light"
id: status_light
entity_category: config
optimistic: true
restore_mode: RESTORE_DEFAULT_OFF
on_turn_on:
- light.turn_on: led
on_turn_off:
- light.turn_off: led
text_sensor:
- platform: wifi_info
ip_address:
@@ -226,6 +260,42 @@ time:
state: !lambda 'return id(sntp_time).now().strftime("%a %d %b %Y - %I:%M:%S %p");'
script:
- id: wifi_rgb_loop
mode: restart
then:
- logger.log: "Wi-Fi disconnected. RGB loop started"
- while:
condition:
not:
wifi.connected:
then:
- light.turn_on:
id: led
red: 100%
green: 0%
blue: 0%
brightness: 100%
- delay: 1s
- light.turn_on:
id: led
red: 0%
green: 100%
blue: 0%
brightness: 100%
- delay: 1s
- light.turn_on:
id: led
red: 0%
green: 0%
blue: 100%
brightness: 100%
- delay: 1s
- light.turn_off: led
- delay: 100ms
- id: update_aqi
mode: restart
then:
+4 -3
View File
@@ -5,7 +5,7 @@ substitutions:
room: ""
device_description: "athom sht40 temperature and humidity sensor"
project_name: "China Athom Technology.Temperature Humidity Sensor"
project_version: "1.0.5"
project_version: "1.0.6"
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"
@@ -36,6 +36,7 @@ substitutions:
esphome:
name: "${name}"
friendly_name: "${friendly_name}"
comment: "${device_description}"
area: "${room}"
name_add_mac_suffix: true
min_version: 2025.7.0
@@ -105,8 +106,8 @@ esp32_improv:
esp32_ble_tracker:
scan_parameters:
interval: 1100ms
window: 1100ms
interval: 320ms
window: 320ms
active: true
bluetooth_proxy:
+2 -1
View File
@@ -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.3"
project_version: "v2.0.4"
# 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")
@@ -22,6 +22,7 @@ substitutions:
esphome:
name: "${name}"
friendly_name: "${friendly_name}"
comment: "${device_description}"
area: "${room}"
name_add_mac_suffix: true
project: