#How to Update ESP config

1 messages · Page 1 of 1 (latest)

dim arrow
#

I found out that my AtHom ESP devices are upding every 10 seconds on the network. I was told that this can cause some issues with them all talking all the time. I should tune this back a bit. To do this I need to take the YAML file from the manufacturer and edit the refresh. Question I have is that I have installed the ESPHome AddOn but I am not sure where to go from here:

I am fine with breaking my device away from manufacturer updates. but not sure why its asking for my Wifi and such..

naive drum
dim arrow
#

is it easy to just upload this new config

naive drum
#

enter your wifi creds and take control and go through the firmware install. it will take a few minutes to fetch and compile stuff

#

then you will be able to view and modify the yaml config.

dim arrow
#

okay thanks..

#

I have 4 of these devices do I do this for each one?

naive drum
#

you will have to do it for each one yeeah, i suggest you just do 1 and getting it sorted to what you want and then move on to the next one

dim arrow
#

yeah i jsut want to update the refresh from 10s to 60

naive drum
#

it looks pretty easy to modify that

#

once its gone through the process and adopted it will probably be pulling the github code as a package which is fine. you just need to add a substitution

dim arrow
#

So now I can edit the yaml and all I see is a simple one now

substitutions:
  name: athom-smart-plug-v3-4fdac0
  friendly_name: Athom Plug V3 4fdac0
packages:
  Athom_Technology.Smart_Plug_V3: github://athom-tech/esp32-configs/athom-smart-plug.yaml
esphome:
  name: ${name}
  name_add_mac_suffix: false
  friendly_name: ${friendly_name}
#

do i jsut keep the relavent parts and replace it with the original YAML?

naive drum
#

hold up

dim arrow
#

holding...

naive drum
#
  name: athom-smart-plug-v3-4fdac0
  friendly_name: Athom Plug V3 4fdac0
  sensor_update_interval: 60s
packages:
  Athom_Technology.Smart_Plug_V3: github://athom-tech/esp32-configs/athom-smart-plug.yaml
esphome:
  name: ${name}
  name_add_mac_suffix: false
  friendly_name: ${friendly_name}```
#

just add that line there in substitutions

#

the package section is pulling the yaml from github and using it. however by specifiying the substitution in the yaml you have there when it pulls the package it will use that instead of the value in the package

#

once you have that then hit save, then install, wirerlessly

#

give it a moment to compile and flash

#

and your done

#

you could pull the code and integrate with your base code but theres no point unless you want to mess with other stuff

dim arrow
#
substitutions:
  name: athom-smart-plug-v3-4fdac0
  friendly_name: Athom Plug V3 4fdac0
  sensor_update_interval: 60s  
packages:
  Athom_Technology.Smart_Plug_V3: github://athom-tech/esp32-configs/athom-smart-plug.yaml
esphome:
  name: ${name}
  name_add_mac_suffix: false
  friendly_name: ${friendly_name}
api:
  encryption:
    key: {Removed}


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

so thats it just install that?

naive drum
#

yup

dim arrow
#

And that makes sense.. just take their code and replace what needs to be replaced

#

what about the name and friendly name.. will that rename the device in my network can i give it the proper name?

naive drum
#

yeah you can rename it if you want

dim arrow
#

its it just the name in the hardware but Home Assistant will keep its name for it?

naive drum
#

these will show up in home assistant

dim arrow
#

ok

#

if i had setup this device before will this show up as a new device?

naive drum
#

in theory it should automagically work

dim arrow
#

ok lol ill play with it

#

thank you for your help!!!

naive drum
#

sometimes you have to re add

#

no worries. its super easy cos they wrote that as a variable that could easily be overwritten without pulling all the code

#

the advantage of keeping the package is that if theres any updates to the github it will pull the latest version

#

not nessasarily super quickly as it caches for a while but it gets there 🙂

#

now just gotta test it and make sure your happy then repeat a bunch more times

#

esphome config is dead easy once you have messed with it a bit

#

anyways, good luck with your stuff 🙂

dim arrow
#

says instelled and rebooting

#

watching the logs

#

yeah 10s seems like its really noisy

naive drum
#

yeah, depends on your use case i guess

dim arrow
#

I really want them to only update every 300 seconds or if changes by more than 5%

#

need to research how to do the update on 5% change on Watt Amps, KwH

#

if its even possible

#

that way they only talk when somthing happens or after a set amount of time

naive drum
#

unless you have super busy wifi i wouldnt worry about it that much

dim arrow
#

i was told it can really mess with my wifi by having so many talking all the time it uses up channels they said?

#

made no sense to me as the amount of data normally that goes across my wifi vs this...

naive drum
#

in thoery its sort of true but even sending some data every 10s is not huge

#

sure if you got 100 of these things

#

i think by spec APs are supposed to handle 240 clients. realisitcally thats only true of high quality AP's

#

but even low end ones will be fine handling a few smartplugs

dim arrow
#

i have a Bell Giga Modem wifi 6

#

1.5 Gb up and down over fibre

#

still an ISP router shit i know

naive drum
#

having a dedicated AP will always be better but i am sure what you have will be fine

dim arrow
#

Stupid new firware set to always off.. LOL device rebooted and turned off..

#

thanks man

#

aprechate walk through

naive drum
#

i have a U6-Pro and have loads of iot devices and it doesnt bump

dim arrow
#

yeah i got like 10 devices

#

not a lot\

#

but man i am loving ESPHome

naive drum
#

yeah ESPHome is great

dim arrow
#

just need to find a good light switch maker that uses them

#

and energy monitoring

naive drum
#

its like magic being able to slap together firmware dead quick

naive drum
dim arrow
#

yep

#

alreayd have all switch zwave

#

but might upgrade some day if price is right

naive drum
#

could use shelly relays behind the switches. the stock firmware is fine (and what i use) but they are esphome compatable if you want to flash them 🙂

dim arrow
#

love the Shellys

naive drum
#

not quite as easy as "take control" but its not super complicated

dim arrow
#

i have their thermostats in each room

#

use them in the winter to controll little oil heater

naive drum
#

i have a bunch of shelly stuff

dim arrow
#

that way rooms stay decent tem upstairs

#

always sold out though 🙂

naive drum
#

shelly is always my go to recomeendation for most stuff

#

you pay a little more (but not alot more to be honest) and you get serious quality

#

i have a bunch of other esphome stuff from various places too

dim arrow
#

they are nice for sure. Love what they are doing

naive drum
#

the new gen4 devices support zigbee too which is nice

dim arrow
#

looks like i can use the delta feature to do thresholds

delta: 50

#

no zigbee for me yet

#

i was on hubitat and had one plug but when i switched to HA i cleaned it up and kept only my zwave

#

one zigbee plug

naive drum
#

if you end up messing with the firmware more extensivly you can also check out the esphome discord as whilst we mess with the code a bit over here. people over there know alot more

dim arrow
#

oh awesome thanks.. yes that will be useful!!

#

THanks again!!

#

god this stuff is so awesome.. 100% control and fully local

#

have you seen the Apollo temp probe? use it to monitor my freezer

#

so tiny and compact..

naive drum
#

yeah i have seen some of their stuff but havent used any (yet) although they announced yesterday that they have a deal to sell through a UK supplier now so it will be easier for me to get

dim arrow
#

yes!!

naive drum
#

the oven probe is something i am keen to mess with

dim arrow
#

good guys!

#

yeah just need the metal braided cable

#

so cool

naive drum
#

i love that esp32/esphome has enabled these small companies to appear

#

because the esp32 has the wifi antenna and stuff all built in and is approved it means the overal device doesnt have to go through some of the wireless approval processes

dim arrow
#

as well if they dont use all the GPIO pins you can add to it a door sensor if you wanted..

#

depending on the model you could add to it

naive drum
#

i added a doorbell button to a pressence sensor with spare gpio. the old disused chime on the wall works again now

dim arrow
#

haha Nice

#

its jsut so powerfull

naive drum
#

was part of my stairs monitoring

#

2 sensors at top and bottom of stairs so if anyone is on them in the dark the lights come up

dim arrow
#

thats awesome

#

Love the detailed photos

naive drum
#

i like writing up projects sometimes. specially when it might help someone else

#

its not so much the result but the methodology and mindset

dim arrow
#

yeah for sure

#

really helps out that open source feeling the world is getting to

#

i try to do the same

#

try to just put stuff out there!!

#

place to let my brain run...

naive drum
#

i have thought about doing a proper blog type page but i hate web dev so i just stick stuff on github in markdown and call it a day

dim arrow
#

i hate it also

naive drum
#

got some google app script stuff

dim arrow
#

i know PHP becuase I have to

naive drum
#

i used to sue that for some projects

dim arrow
#

yeah i did a bunch of Google Apps Scripting for my job (IT)

naive drum
#

i used to run large Darts tournaments

#

so i made a system to run tournaments using google sheets and apps scripts

dim arrow
#

yeah its liek ESP 100% controlable..

#

you can do anything in the JS for any of the doc apps

#

wrote my partner a bunch of class attendance things that the entire school board uses now

#

fun stuff.. ESPHome give me that warm can do anythign with it feeling like programming gives me

naive drum
dim arrow
#

oh that is one thing i love about google doc is document IDs

naive drum
#

put in player names and your tournament type and it generates fixtures results entry etc...

dim arrow
#

100% unique no matter where it lives!!!

#

yeah thats Cool!

naive drum
#

also means once the inital script is run, i could run the event on a phone or anything else that can open sheets

#

and can make public etc...

#

at the time there was not alot of stuff that was better for darts. there is some stuff now cos darts has gone more mainstream

dim arrow
#

yeah no one wants to program in Android or Apple

#

by that I mean what ever it is that crazy language their IDEs use

naive drum
#

plus my ability to make nice ui's is non existant really (part of the reason i hate web stuff) so sheets gives me something to build on

dim arrow
#

haha

#

yes

#

oh I didnt know this was just looking at the code:

filters:
- throttle_average: ${sensor_update_interval}

#

that takes the average over 10s and reports it

#

I just thought it reported the curent value at that moment it updates

naive drum
#

smooths the curve a little

dim arrow
#

yep.. lots to learn..

naive drum
dim arrow
#

ohh bed sensor

naive drum
#

that got my confident enough to start messing with other random stuff

dim arrow
#

yeah.. I did a year of electro tech in collage and I love how these ESP devices plugin in to a bread board..

#

allows for testing and playing

#

like lego

naive drum
#

just don't ever try and run audio stuff through breadboard

#

that is a mistake you make once

dim arrow
#

haha

naive drum
#

shit doesnt work or make really annoying noises

dim arrow
#

would never suspect that

#

figure its just analog

naive drum
#

even the i2s digital stuff degrades quickly

dim arrow
#

Wife told me to stop chatting and go to bed lol have to run but thanks for the geek out session and help!!