-
Notifications
You must be signed in to change notification settings - Fork 0
/
athom-smart-plug-v2.yaml
66 lines (55 loc) · 2.11 KB
/
athom-smart-plug-v2.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#########################################################################
#
# Device configuration for Athom Smart Plug v2 (ESP8285)
# providing power and energy monitoring sensors.
#
# Provides substitutions or variables that are then called elsewhere multiple times in the config
substitutions:
# Default name
name: "athom-smart-plug-v2"
# Default friendly name
friendly_name: "Smart Plug v2"
# Description as appears in ESPHome & top of webserver page
device_description: "Athom Plug v2 - Smart Plug (ESP8285)"
# Project Name
project_name: "Athom Technology.Smart Plug v2"
# Project version denotes the release version of the yaml file, allowing checking of deployed vs latest version
project_version: "2.2.0"
# Restore the relay (GPO switch) upon reboot to state:
relay_restore_mode: RESTORE_DEFAULT_ON # RESTORE_DEFAULT_ON
# Define logging level: NONE, ERROR, WARN, INFO, DEBUG (Default), VERBOSE, VERY_VERBOSE
log_level: "DEBUG"
# cse7766 Power Monitoring Chip
# Current Limit in Amps. AU Plug = 10. IL, BR, EU, UK, US Plug = 16.
current_limit : "10"
# DO NOT CHANGE THESE SETTINGS. They are specific to the Plug Hardware Version, as defined by Athom.
power_button_pin: "5"
gpo_switch_pin: "GPIO12"
gpo_status_led_pin: "GPIO13"
########################## End of Substitutions #########################
#
# Defines the type of ESP chip used on the device
#
esp8266:
board: esp8285
restore_from_flash: true
#########################################################################
#
# Remote Packages to be utilised
#
dashboard_import:
package_import_url: github://roving-ronin/myhomeassistant/esphome/athom-smart-plug-v2.yaml@main
import_full_config: false
packages:
base-config: !include common/base-configuration.yaml
wifi-config: !include common/network-wifi.yaml
athom-power-sensors: !include sensors/athom-power-plugs.yaml
#####################################################################
#
# Define the COMs Port
#
uart:
rx_pin: RX
baud_rate: 4800
parity: EVEN
#####################################################################