forked from tarontop/athom-configs
-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
20 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ab76339
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the purpose of removing friendly_name? wouldn't removing it only increase confusion if you have multiple smart plugs?
ab76339
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was the friendly name removed? Will I get again 10 plugs with the same name in my energy dashboard?
ab76339
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that's what I'm having right now. I'm going to revert to the old config for now
ab76339
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please revert this
You can not set your own friendlyname anymore
My friendelyname was set in the substitute section
All my node-red flows are not working anymore
ab76339
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How to avoid this? What version should I avoid?
ab76339
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I used commit 3526337 (the one before this one).
https://github.com/athom-tech/athom-configs/blob/3526337aec944a892e953070bd578b29162a567e/athom-smart-plug-v2.yaml
You should avoid this commit, if you have multiple smart plugs or changed the friendly name.
ab76339
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can add a
friendly_name:
in the esphome section#25
ab76339
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the example.
For anyone annoyed at "athom_plug" being appended to the switch name in home assistant, add
alias_name: ""
to yoursubstitutions
alongside the changed mentioned in the post above.Example:
Bit hacky as it leaves the switch name blank when visiting the devices page:
Not sure if there's a more elegant solution to avoid this approach,
ab76339
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This commit broke all my integrations when I updated because all the entity names changed back to generic names. I am reverting to the previous version.
To be clear, removing any device-specific name interpolation from the sensor names make entity renaming and differentiation in the HA integration no longer work. It is not possible to fix without manually renaming every entity in the integration or every sensor in the ESPHome yaml. Using
alias_name
in the current commit is not enough.ab76339
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just fork the repository and change the username to yours, from this point you are responsible for maintaining/keeping up2date with upstream - nothing personal but you could have changed things in the uploaded archive (and GitHub provides the option to download the state of any commit as archive) so I wouldn't recommend anyone using it.
ab76339
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes this is ridiculous... athom used friendly_name as an unofficial variable, now (a few months ago) HA happens to officially start using a variable of the name name. If you want to keep using what you had before, just enter the descriptive name you had before into alias_name and then use alias_name to define the new official friendly_name variable.
substitutions:
alias_name: "XYZ Descriptive Name"
esphome:
friendly_name: "${alias_name}"
ab76339
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm struggling with this. I'm reading for hours trying to understand how to change this, but it's slipping through somewhere.
This is my config, but I'm not being able to differentiate the plugs when I go in history.
what am I doing wrong?
Also, with so many frequent updates, I see some of the changes I do become overwritten, and all comes back to the same mess.
Can someone, please point me in the right direction to avoid the recurring mess?
ab76339
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Oinq I think this is more or less the way:
friendly_name
substitution to each yaml (what you have will work, butfriendly_name: ${name}
is simpler)Removing the all the name interpolations in the sensor ids was the big mistake in this commit. They should have been changed to
alias_name
, but I don't see what the problem withfriendly_name
was. It still works fine for me.ab76339
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, this video is very long, I can only upload it to the cloud disk, please speed up the viewing, through this video I did not find that the entity ID will be disturbed, currently I am using the development branch, you can define the use name through
friendly_name:
, both homeassitant and esphome It is the latest version, please point out if I am wrong, thank youhttps://drive.google.com/file/d/1fsYWzhs9tN5IZa6tZ9SnqxBA_mkXaoNj/view?usp=share_link
ab76339
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, it seems I'm back on track or at least in a good direction. Thank you, Evan to point me the way, and also tarontop for the video.