Code Monkey home page Code Monkey logo

athom-configs's Introduction

Only applicable to ESP8285,Please click for ESP32 devices

Athom ESPHome configurations

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

If you are prompted that there is not enough space, you should upgrade ESP8266_MINI.bin first

  • mini is a transit firmware, after running, it will generate a hotspot of "ESP_UPDATE_XXXXXX"
  • Connect to the hotspot and visit http://192.168.4.1/update in the browser
  • Upload updated ESPHome firmware

Migrating to Tasmota

Migrating from Tasmota

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

Device List

device picture file name notice
Athom_Plug_V2 athom-smart-plug-v2.yaml
Athom_Wall_Outlet athom-wall-outlet.yaml
Athom_1Gang_Switch athom-sw01.yaml
Athom_2Gang_Switch athom-sw02.yaml
Athom_3Gang_Switch athom-sw03.yaml
Athom_4Gang_Switch athom-sw04.yaml
Athom_7W_Bulb
Athom_GU10_Bulb
athom-rgbww-light.yaml
Athom_15W_Bulb athom-rgbct-light.yaml
Athom_12W_Bulb athom-rgbct-light.yaml

Temporarily discontinued

Athom_RGB_Controller athom-rgb-light.yaml
Athom_Addressable_Light_Strip_Controller athom-ws2812b.yaml
Athom_High_Power_RGBW_Light_Strip_Controller athom-rgbw-light.yaml
Athom_High_Power_Addressable_Light_Strip_Controller athom-ls-4p-3wire.yaml
Athom_Mini_Switch athom-mini-switch.yaml
Athom_CB02_Switch athom-cb02.yaml
Athom_Presence_Sensor athom-presence-sensor.yaml
Athom_Garage_Door_Opener athom-garage-door.yaml
Athom_Plug athom-smart-plug.yaml

Discontinued

athom-configs's People

Contributors

alexcpu avatar athom-tech avatar bert-r avatar d3c0defpv avatar dexn avatar dmakovec avatar gwaland avatar iainphay avatar jesserockz avatar makerwolf1 avatar megascrapper avatar metus88 avatar mikeage avatar roving-ronin avatar tarontop avatar thedk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

athom-configs's Issues

Smart plug v2 with latest esphome config produces errors in the HA logs

2024-03-15 06:16:12.636 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.pool_pump_smart_plug_v2_wifi_strength (<class 'homeassistant.components.esphome.sensor.EsphomeSensor'>) is using native unit of measurement '%' which is not a valid unit for the device class ('signal_strength') it is using; expected one of ['dBm', 'dB']; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+esphome%22

Blue LED turns on again on pir motion detection

Hello
At night in bedroom the blue LED is to bright.
The light literally blinds me and I can even see a beam of light.
Is there a way to permanent disable the LED other then gluetape or destroy the led?
(methode to use ha automation to turn off led whene led turns on is not a solution i think)

Total Daily Energy does not reset at midnight

I've just noticed that the total daily energy does reset at around 2am. This is however much too late for a daily energy cost calculation. Shouldn't it always reset at midnight?

Garage Door Opener Invert Sensor

This is more a feature request than an issue but is an issue for me.

Can we please get a switch to invert the contact sensor like the safe mode mode switch or relay switch. At present if i want to open the door i have to press close and vise versa.

image

Presence Sensors not installing ESPHome 2024.5.1

When trying to install the latest ESPHome, I get the following message:

ERROR Error binary size: Error: ESP does not have enough space to store OTA file. Please try flashing a minimal firmware (remove everything except ota)

I'm using a super-basic config:

substitutions:
  name: athom-presence-sensor-<MAC>
  friendly_name: athom-presence-<LOCATION>
packages:
  Athom_Technology.Presence_Sensor: github://athom-tech/athom-configs/athom-presence-sensor.yaml
esphome:
  name: ${name}
  name_add_mac_suffix: false
  friendly_name: ${friendly_name}
api:
  encryption:
    key: <KEY>
wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

switch button not working

I am able to use the relay etc. via home assistant. I am unable get the physical button to trigger.

Any help.I have 4 of these switches 3 of them work fine, the 4th stopped working sometime I am not sure when

is this a problem with physical switch?

I am able to use the relay etc. via home assistant. I am unable get the physical button to trigger. 



esphome:
  name: ${name}
  comment: Storage room switch
  # friendly_name: ${friendly_name}

    
esp8266:
  board: esp8285
  restore_from_flash: true

preferences:
  flash_write_interval: 1min
  
# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "/oZj6XGeElZWdjgDF7AIuGny9UyKfU34/N9BM2mFs="

ota:
  password: "134e0c035984dce36dd9c36081aa92"

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Smartswitch-09 Fallback Hotspot"
    password: "mFtZzOzgdv"

web_server:
  port: 80

captive_portal:


substitutions:
  name: smartswitch-09
  friendly_name: "Storage Room"
  project_name: "athom.sw01"
  project_version: "1.1"
  light_restore_mode: RESTORE_DEFAULT_OFF




binary_sensor:
  - platform: status
    name: "${friendly_name} Status"

  # Touch Button
  - platform: gpio
    pin:
      inverted: true
      number: GPIO3
      mode:
        input: true
        pullup: true
    name: "${friendly_name} Button"
    disabled_by_default: True
    on_click:
      - logger.log: "Button clicked"
    on_multi_click:
      - timing:
          - ON for at most 0.5s
          - OFF for at least 0.2s
        then:
          - light.toggle: light1
      - timing:
          - ON for at least 4s
        then:
          - button.press: Reset

sensor:
  - platform: uptime
    name: "${friendly_name} Uptime"
    disabled_by_default: true

button:
  - platform: factory_reset
    name: Restart with Factory Default Settings
    id: Reset

output:
  # Relay
  - platform: gpio
    pin: GPIO13
    id: relay1

  # Button LED (1.0 = Blue / 0.0 = Red)
  - platform: esp8266_pwm
    pin: GPIO14
    inverted: true
    id: button_led1

light:
  - platform: status_led
    name: "${friendly_name} Status LED"
    disabled_by_default: true
    pin:
      number: GPIO0
      inverted: true

  # Relay
  - platform: binary
    name: "${friendly_name} Light"
    id: light1
    output: relay1
    restore_mode: ${light_restore_mode}
    on_turn_on:
      - light.turn_on: led1
    on_turn_off:
      - light.turn_off: led1

  # Button LED
  - platform: monochromatic
    name: "${friendly_name} LED"
    disabled_by_default: true
    id: led1
    output: button_led1
    default_transition_length: 500ms

text_sensor:
  - platform: wifi_info
    ip_address:
      name: "${friendly_name} IP Address"
      disabled_by_default: true
     
time:
  - platform: sntp
    id: my_time

device is automatic powersycling and logging like crazy

logs_ug-technik-pm-truenas_logs.txt
logs_ug-technik-pm-truenas_run.txt

and my yaml:

`

Enable Home Assistant API

api:
encryption:
key: "XXX="

ota:
password: "XXX"

wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
manual_ip:
static_ip: 10.15.15.212
gateway: 10.15.15.1
subnet: 255.255.255.0

substitutions:
name: "athom-smart-plug"
friendly_name: "Smart Plug"
room: ""
device_description: "athom smart plug"
project_name: "Athom Technology.Smart Plug"
project_version: "1.0"
relay_restore_mode: RESTORE_DEFAULT_OFF
sensor_update_interval: 10s

esphome:
name: "${name}"
friendly_name: "${friendly_name}"
name_add_mac_suffix: true
project:
name: "${project_name}"
version: "${project_version}"

esp8266:
board: esp8285
restore_from_flash: true

preferences:
flash_write_interval: 1min

logger:

web_server:
port: 80

dashboard_import:
package_import_url: github://athom-tech/athom-configs/athom-smart-plug.yaml

binary_sensor:

  • platform: status
    name: "Status"
    entity_category: diagnostic

  • platform: gpio
    pin:
    number: 3
    mode: INPUT_PULLUP
    inverted: true
    name: "Power Button"
    disabled_by_default: true
    on_multi_click:

    • timing:
      • ON for at most 1s
      • OFF for at least 0.2s
        then:
      • switch.toggle: relay
    • timing:
      • ON for at least 4s
        then:
      • button.press: Reset

sensor:

  • platform: uptime
    name: "Uptime Sensor"
    id: uptime_sensor
    entity_category: diagnostic
    internal: True

  • platform: wifi_signal
    name: "WiFi Signal"
    id: wifi_signal_db
    update_interval: 60s
    entity_category: diagnostic
    internal: true

Reports the WiFi signal strength in %

  • platform: copy
    source_id: wifi_signal_db
    name: "WiFi Strength"
    filters:

    • lambda: return min(max(2 * (x + 100.0), 0.0), 100.0);
      unit_of_measurement: "%"
      entity_category: diagnostic
  • platform: hlw8012
    sel_pin:
    number: GPIO12
    inverted: True
    cf_pin: GPIO4
    cf1_pin: GPIO5
    voltage_divider: 780
    current:
    name: "Current"
    filters:
    - calibrate_linear:
    - 0.0000 -> 0.0110 # Relay off no load
    - 0.0097 -> 0.0260 # Relay on no load
    - 0.9270 -> 0.7570
    - 2.0133 -> 1.6330
    - 2.9307 -> 2.3750
    - 5.4848 -> 4.4210
    - 8.4308 -> 6.8330
    - 9.9171 -> 7.9830
    # Normalize for plug load
    - lambda: if (x < 0.0260) return 0; else return (x - 0.0260);
    voltage:
    name: "Voltage"

    power:
    name: "Power"
    id: socket_my_power
    unit_of_measurement: W
    filters:
    - calibrate_linear:
    - 0.0000 -> 0.5900 # Relay off no load
    - 0.0000 -> 1.5600 # Relay on no load
    - 198.5129 -> 87.8300
    - 434.2469 -> 189.5000
    - 628.6241 -> 273.9000
    - 1067.0067 -> 460.1000
    - 1619.8098 -> 699.2000
    - 2043.0282 -> 885.0000
    # Normalize for plug load
    - lambda: if (x < 1.5600) return 0; else return (x - 1.5600);
    change_mode_every: 1
    update_interval: 5s

  • platform: total_daily_energy
    name: "Total Energy"
    power_id: socket_my_power
    unit_of_measurement: kWh
    accuracy_decimals: 3
    restore: true
    filters:

    • multiply: 0.001

button:

  • platform: factory_reset
    name: "Reset"
    id: Reset
    entity_category: config

  • platform: safe_mode
    name: "Safe Mode"
    internal: false
    entity_category: config

switch:

  • platform: gpio
    name: "Plug"
    pin: GPIO14
    id: relay
    restore_mode: ${relay_restore_mode}
    on_turn_on:

    • light.turn_on: blue_led

    on_turn_off:

    • light.turn_off: blue_led

light:

  • platform: status_led
    name: "Status LED"
    id: blue_led
    disabled_by_default: true
    pin:
    inverted: true
    number: GPIO13

text_sensor:

  • platform: wifi_info
    ip_address:
    name: "IP Address"
    entity_category: diagnostic
    ssid:
    name: "Connected SSID"
    entity_category: diagnostic
    mac_address:
    name: "Mac Address"
    entity_category: diagnostic

Creates a sensor showing when the device was last restarted

  • platform: template
    name: 'Device Last Restart'
    id: device_last_restart
    icon: mdi:clock
    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: "Device 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

Change sync interval from default 5min to 6 hours

update_interval: 360min    

Publish the time the device was last restarted

on_time_sync:
  then:
    # Update last restart time, but only once.
    - if:
        condition:
          lambda: 'return id(device_last_restart).state == "";'
        then:
          - text_sensor.template.publish:
              id: device_last_restart
              state: !lambda 'return id(sntp_time).now().strftime("%a %d %b %Y - %I:%M:%S %p");'

`

ESPHome 2024.5.0 ruined my Key Switches

Hi,

As the title says any key switch units I've updated now intermittently connect and disconnect from HA.
The web page won't work to do a manual install and downgrade the firmware.

Not sure what my next step is?

Brazil Plug ESPHome HomeKit

I want to setup the device on Apple Home App (HomeKit).
On website it says that the device is compatible with HomeKit but i couldn't figure how to do.
The device is already configured on the same Wifi network.
I already upgrade the firmware from http://ota.tasmota.com/tasmota/release/tasmota.bin.gz.
Device info:

Program Version | 14.0.0 (release-tasmota)
Build Date & Time |  2024-05-14T13:50:53
Core/SDK Version | 2_7_6/2.2.2-dev(38a443e)
ESP Chip Id | 9395082 (ESP8285H16)

I already tried with all types of emulation available and no success.

Is this device really compatible with homekit?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.