Skip to content

Commit

Permalink
Merge pull request #5 from athom-tech/main
Browse files Browse the repository at this point in the history
merge
  • Loading branch information
tarontop authored Apr 27, 2022
2 parents 709c614 + 4a9ceaa commit a43c14b
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 12 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,27 @@ jobs:
fail-fast: false
matrix:
device:
- cb02
- rgb-light
- rgbww-light
- rgbct-light
- garage-door
- ws2812b
- mini-switch
- relay-board-x1
- relay-board-x2
- relay-board-x4
- relay-board-x8
- rgb-light
- rgbct-light
- rgbww-light
- smart-plug
- smart-plug-v2
- sw01
- sw01-v2
- sw02
- sw02-v2
- sw03
- sw04
- ws2812b
- cb02
- ls-4p-3wire
- ls-4p-4wire
steps:
- name: Checkout source
uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ If you are prompted that there is not enough space, you should upgrade `ESP8266_
- First execute `SetOption78 1` in the console of Tasmota
- Select firmware upgrade, upload `tasmota-minimal.bin` and click start upgrade
- Select the firmware upgrade again, upload the firmware of ESPHome and click to start upgrade
- Download ESPHome firmware here https://github.com/tarontop/athom-configs/actions
- Download ESPHome firmware here https://github.com/athom-tech/athom-configs/actions
5 changes: 3 additions & 2 deletions athom-smart-plug-v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,15 @@ sensor:
current:
name: "${friendly_name} Current"
filters:
- lambda: if (x < 0.08) return 0;

voltage:
name: "${friendly_name} Voltage"
power:
name: "${friendly_name} Power"
id: power_sensor
filters:
- lambda: if (x < 6) return 0;


energy:
name: "${friendly_name} Energy"
unit_of_measurement: kWh
Expand Down
6 changes: 2 additions & 4 deletions athom-sw02-v2.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
substitutions:
device_name: "athom-sw02"
friendly_name: "Athom SW02"
project_name: "athom.sw02"
project_version: "1.0"

esphome:
name: "${device_name}"
Expand Down Expand Up @@ -105,6 +101,7 @@ light:
name: "${friendly_name} Light 1"
id: light1
output: relay1

on_turn_on:
- light.turn_on: light3
on_turn_off:
Expand All @@ -113,6 +110,7 @@ light:
name: "${friendly_name} Light 2"
id: light2
output: relay2

on_turn_on:
- light.turn_on: light4
on_turn_off:
Expand Down
Binary file removed athom-sw02.bin
Binary file not shown.

0 comments on commit a43c14b

Please sign in to comment.