Skip to content

Commit a2f24f0

Browse files
authored
Merge branch 'main' into main
2 parents d78c281 + 3f7cbc8 commit a2f24f0

25 files changed

Lines changed: 898 additions & 410 deletions

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# Athom ESPHome configurations
1+
# Only applicable to ESP8285,[Please click for ESP32 devices](https://github.com/athom-tech/esp32-configs)
2+
3+
### Athom ESPHome configurations
24

35
This repository contains a bunch of ESPHome configurations for https://athom.tech devices.
46

@@ -8,18 +10,18 @@ If you are prompted that there is not enough space, you should upgrade `ESP8266_
810
- Connect to the hotspot and visit `http://192.168.4.1/update` in the browser
911
- Upload updated ESPHome firmware
1012

11-
# Migrating to Tasmota
13+
### Migrating to Tasmota
1214

1315
- Select firmware upgrade, upload `tasmota.bin.gz` and click Update, ***Please don't choose `tasmota.bin`***
1416
- Download Tasmota firmware here http://ota.tasmota.com/tasmota/release/tasmota.bin.gz
1517

16-
# Migrating from Tasmota
18+
### Migrating from Tasmota
1719

1820
- First execute `SetOption78 1` in the console of Tasmota
1921
- Select firmware upgrade, upload `tasmota-minimal.bin.gz` and click start upgrade
2022
- Select the firmware upgrade again, upload the firmware of ESPHome and click to start upgrade
2123

22-
# Device List
24+
### Device List
2325
device|picture|file name|notice
2426
:---:|:---:|:---:|:---:
2527
Athom_Plug_V2|<img src="/images/Athom_EU_Plug_V2.png" width="50%" height="20%"><img src="/images/Athom_US_Plug_V2.png" width="50%" height="20%"><img src="/images/Athom_UK_Plug_V2.png" width="50%" height="20%"><img src="/images/Athom_BR_Plug_V2.png" width="50%" height="20%"><img src="/images/Athom_AU_Plug_V2.png" width="50%" height="20%"><img src="/images/Athom_IL_Plug_V2.png" width="50%" height="20%"><img src="/images/Athom_IT_Plug_V2.png" width="50%" height="20%">|athom-smart-plug-v2.yaml

athom-cb02.yaml

Lines changed: 27 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
substitutions:
22
device_name: "athom-cb02-switch"
3-
friendly_name: "Athom CB02 Switch"
4-
project_name: "athom.cb02-switch"
3+
project_name: "Athom Technology.Switch Module"
54
project_version: "1.1"
65
relay_restore_mode: RESTORE_DEFAULT_OFF
76

87
esphome:
98
name: "${device_name}"
9+
friendly_name: ""
1010
name_add_mac_suffix: true
1111
project:
1212
name: "${project_name}"
@@ -16,6 +16,9 @@ esp8266:
1616
board: esp8285
1717
restore_from_flash: true
1818

19+
preferences:
20+
flash_write_interval: 1min
21+
1922
api:
2023

2124
ota:
@@ -38,14 +41,14 @@ dashboard_import:
3841

3942
binary_sensor:
4043
- platform: status
41-
name: "${friendly_name} Status"
44+
name: "Status"
4245

4346
- platform: gpio
4447
pin:
4548
number: 3
4649
mode: INPUT_PULLUP
4750
inverted: true
48-
name: "${friendly_name} Power Button"
51+
name: "Power Button"
4952
disabled_by_default: true
5053
on_multi_click:
5154
- timing:
@@ -60,17 +63,24 @@ binary_sensor:
6063

6164
sensor:
6265
- platform: uptime
63-
name: "${friendly_name} Uptime"
64-
disabled_by_default: true
66+
name: "Uptime Sensor"
67+
68+
- platform: wifi_signal
69+
name: "${friendly_name} WiFi Signal"
70+
update_interval: 60s
6571

6672
button:
6773
- platform: factory_reset
68-
name: Restart with Factory Default Settings
74+
name: "Reset"
6975
id: Reset
7076

77+
- platform: safe_mode
78+
name: "Safe Mode"
79+
internal: false
80+
7181
switch:
7282
- platform: gpio
73-
name: "${friendly_name}"
83+
name: "Relay"
7484
pin: GPIO13
7585
id: relay
7686
restore_mode: ${relay_restore_mode}
@@ -82,7 +92,7 @@ switch:
8292

8393
light:
8494
- platform: status_led
85-
name: "${friendly_name} Status LED"
95+
name: "Status LED"
8696
id: blue_led
8797
disabled_by_default: true
8898
pin:
@@ -92,9 +102,13 @@ light:
92102
text_sensor:
93103
- platform: wifi_info
94104
ip_address:
95-
name: "${friendly_name} IP Address"
96-
disabled_by_default: true
97-
105+
name: "IP Address"
106+
ssid:
107+
name: "Connected SSID"
108+
mac_address:
109+
name: "Mac Address"
110+
98111
time:
99112
- platform: sntp
100-
id: my_time
113+
id: sntp_time
114+

athom-garage-door.yaml

Lines changed: 32 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
substitutions:
2-
name: "athom-garage-door"
3-
friendly_name: "Athom Garage Door"
4-
project_name: "athom.garage-door"
2+
device_name: "athom-garage-door"
3+
project_name: "Athom Technology.Garage Door Opener"
54
project_version: "1.2"
65

6+
77
esphome:
8-
name: "${name}"
8+
name: "${device_name}"
9+
friendly_name: ""
910
name_add_mac_suffix: true
1011
project:
1112
name: "${project_name}"
@@ -20,6 +21,10 @@ ota:
2021

2122
logger:
2223

24+
25+
mdns:
26+
disabled: false
27+
2328
web_server:
2429
port: 80
2530

@@ -33,15 +38,18 @@ dashboard_import:
3338

3439
sensor:
3540
- platform: uptime
36-
name: "${friendly_name} Uptime"
37-
disabled_by_default: true
41+
name: "Uptime Sensor"
42+
43+
- platform: wifi_signal
44+
name: "${friendly_name} WiFi Signal"
45+
update_interval: 60s
3846

3947
binary_sensor:
4048
- platform: status
41-
name: "${friendly_name} Status"
49+
name: "Status"
4250

4351
- platform: gpio
44-
name: "${friendly_name} Contact"
52+
name: "Contact"
4553
disabled_by_default: true
4654
device_class: garage_door
4755
id: contact
@@ -56,7 +64,7 @@ binary_sensor:
5664
number: GPIO14
5765
mode: INPUT_PULLUP
5866
inverted: true
59-
name: "${friendly_name} Button"
67+
name: "Button"
6068
disabled_by_default: true
6169
on_multi_click:
6270
- timing:
@@ -71,13 +79,17 @@ binary_sensor:
7179

7280
button:
7381
- platform: factory_reset
74-
name: Restart with Factory Default Settings
82+
name: "Reset"
7583
id: Reset
7684

85+
- platform: safe_mode
86+
name: "Safe Mode"
87+
internal: false
88+
7789
switch:
7890
- platform: gpio
7991
pin: GPIO5
80-
name: "${friendly_name} Relay"
92+
name: "Relay"
8193
id: relay
8294
disabled_by_default: true
8395
on_turn_on:
@@ -88,15 +100,15 @@ switch:
88100

89101
light:
90102
- platform: status_led
91-
name: "${friendly_name} Status LED"
103+
name: "Status LED"
92104
id: wifi_led
93105
disabled_by_default: true
94106
pin: GPIO12
95107

96108
cover:
97109
- platform: template
98110
device_class: garage
99-
name: "${friendly_name}"
111+
name: "Garage Door"
100112
lambda: "return id(contact).state ? COVER_OPEN : COVER_CLOSED;"
101113
open_action:
102114
then:
@@ -118,9 +130,12 @@ cover:
118130
text_sensor:
119131
- platform: wifi_info
120132
ip_address:
121-
name: "${friendly_name} IP Address"
122-
disabled_by_default: true
123-
133+
name: "IP Address"
134+
ssid:
135+
name: "Connected SSID"
136+
mac_address:
137+
name: "Mac Address"
138+
124139
time:
125140
- platform: sntp
126-
id: my_time
141+
id: sntp_time

athom-ls-4p-3wire.yaml

Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
substitutions:
2-
name: "athom-ls-4p-3wire"
3-
friendly_name: "Athom LED Controller"
4-
project_name: "athom.ls-4p-3wire"
2+
device_name: "athom-ls-4p-3wire"
3+
project_name: "Athom Technology.LS 4P 3Wire"
54
project_version: "1.1"
65
button_toggle: "true"
76
led_restore_mode: RESTORE_DEFAULT_OFF
@@ -10,7 +9,8 @@ substitutions:
109
led_chipset: WS2811
1110

1211
esphome:
13-
name: "${name}"
12+
name: "${device_name}"
13+
friendly_name: ""
1414
name_add_mac_suffix: true
1515
project:
1616
name: "${project_name}"
@@ -45,14 +45,14 @@ dashboard_import:
4545

4646
binary_sensor:
4747
- platform: status
48-
name: "${friendly_name} Status"
48+
name: "Status"
4949

5050
- platform: gpio
5151
pin:
5252
number: 0
5353
mode: INPUT_PULLUP
5454
inverted: true
55-
name: "${friendly_name} Power Button"
55+
name: "Power Button"
5656
disabled_by_default: true
5757
on_multi_click:
5858
- timing:
@@ -67,13 +67,21 @@ binary_sensor:
6767

6868
sensor:
6969
- platform: uptime
70-
name: "${friendly_name} Uptime"
70+
name: "Uptime Sensor"
71+
72+
- platform: wifi_signal
73+
name: "${friendly_name} WiFi Signal"
74+
update_interval: 60s
7175

7276
button:
7377
- platform: factory_reset
74-
name: Restart with Factory Default Settings
78+
name: "Reset"
7579
id: Reset
7680

81+
- platform: safe_mode
82+
name: "Safe Mode"
83+
internal: false
84+
7785
power_supply:
7886
- id: relay
7987
pin: GPIO12
@@ -82,7 +90,7 @@ light:
8290
- platform: fastled_clockless
8391
pin: GPIO1
8492
id: leds
85-
name: "${friendly_name}"
93+
name: "Light strip controller"
8694
power_supply: relay
8795
chipset: ${led_chipset}
8896
num_leds: ${number_of_leds}
@@ -95,9 +103,12 @@ light:
95103
text_sensor:
96104
- platform: wifi_info
97105
ip_address:
98-
name: "${friendly_name} IP Address"
99-
disabled_by_default: true
100-
106+
name: "IP Address"
107+
ssid:
108+
name: "Connected SSID"
109+
mac_address:
110+
name: "Mac Address"
111+
101112
time:
102113
- platform: sntp
103-
id: my_time
114+
id: sntp_time

0 commit comments

Comments
 (0)