-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename Sensors / give them friendly names #6970
Comments
They can't sorry. Not Supported.
yes, exactly.
Added the label to see if there is someone interested on working on this. |
If you don't need this RENAMED SENSOR in Home Assistant Discovery, as a workaround you can use rules feature of Tasmota and save the value in a VAR and then Send it by MQTT with the name you want. If you want this sensor renamed in Home Assistant, you can edit its name by Home Assistant UI. |
Thanks so much, ascillato. I do want this to reflect properly directly on the Tasmota UI, which that solution doesn't cover, correct? I found two references in the rule cookbook for modifying MQTT, and studied the Rules wiki page--- but they seem to only ever modify the variable, not the MQTT sensor name. I cant figure out how to create a rule that does that. Do you have any suggestions? as I try and figure this out,, is it possible to change the names any other way? Can you confirm it would be possibly be editing the firmware? (Any tips there or in getting this rule to work would be appreciated. Finally, will the device alaways send 6 messages, 3 with the old names and 3 with my new names? Can I have it only do the latter? Less MQTT traffic the better. But ultimately I'd like to just change the names everywhere at once in the easiest way possible.. I intend to use several devices with more than one sensor so it can get very confusing otherwise |
Example of a rule that sends the temperature with a friendly name: On the Tasmota console type:
|
Tasmota UI is for configuration. For daily use, Tasmota is intended to be used by mqtt, so you should use the UI of your home automation software. |
Closing this issue as there is a workaround and no one is working on this. Thanks for sharing your ideas. |
Thank you very much Adrian, for providing guidance towaqrds that rule! I wlil make that happen today. I agree that I will use HA primarily, but for troubleshooting-- and when my HA is down for whatever reason, I do utilize the Tasmota UI and so I want it to reflect the same. Otherwise it is very unclear. I will spend some time trying to bake my change into a custom firmware edit --- and if I find it reasonably possible I will post a short how-to here to help anyone else that may want to do this. Because, I agree that the feature request is not worth baking into a main release. Thanks again!! |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I, too, was surprised that DS18B20 sensors could not be named within Tasmota. This, in my opinion, is a significant omission. I understand your logic, that naming can and should be managed within Home Assistant (or whatever platform). But don't you detect, within your own comments, that you are "right" on this matter, while others "don't understand what Tasmota is all about"? My take is different. Tasmota is the single best software app to come along (for this type of work) ever. Period. The number of configuration arguments are over-the-top. Incredible. However, the ability to name a sensor within a Tasmota screen is, from my experience, a fundamental property that should have been included from the beginning. The Rule workaround is clumsy if only because it requires text editing rather than form editing. Please reconsider a sensor naming feature within Tasmota's UI. It would definitely simplify setup and support. |
Did you find a solution? I think that is was a very nice feature to do that, yust for a stand alone solution... Nice greetings! |
+1 for this, but I really doubt @ascillato will be looking here again, since this issue is closed. |
You are free to provide a pull request with the change you need. |
@ascillato :aren't pull request meant to contribute code? Alas, I've no code to contribute, just asking for an enhancement. |
Hi, Yes, a Pull Request is code changes. Tasmota is open for pull requests, but someone needs to work on that. In this issue it has been requested an option to rename sensors but nobody have spent their free time addressing this. So the label requested feature (hold over) has been added. If you want, you are free to fork Tasmota and modify it to suit your needs and then provide a PR for adding those changes to the main repository. There are many opened feature requests, but we need more people to work on them in order to transform wishes into code. As you can see from old issues, people just spend their time only on the new feature they are interested. I can reopen this issue if that is what you want me to do. |
I'd gladly contribute, but I'm not a programmer. So I can't provide any useful code, that's why I'd call it a feature request, rather than a pull request. |
if @dieckfr comes out with any code, that would be great for a pull request. btw 👍 |
Reopening as requested. |
..duplicated of what other issue? |
Hello again! Sorry for the late response... So normaly I'am Developer for Codesys Software, I Engineering machines, and as you can read, my German is better then my Englisch :) I had a look inside the Code, and I must say, wow, what a great Job in Style and Design and flexibility, that is very impressive... And thats the Problem, not very Easy for a DAU Programmer like ME... I searched much time to understand how is the HTML Code produced, picked up, by feeling thousend pointers, and found at least, the correct ( I hope, not testet yet) line for building the Names of the DS18XXXX. That is what I need. I hope i can test it tonight (hardcoded) and can Show you the result, so that everbody can make a user Build. I dont think that I can implement a Command for User Sensor Names in the next Weeks, or the next Years :) ist not my Code, and flexibility of the Code makes it not easyer... But what is about a Request? Iam newbie in Github, and Iam not understand the Complete Prozesses here at the Moment... How can I make a Request for this Feature, to Mr. Arends or a good programmer :). Can sombody explain me the procedure? I want to make it, and learn the schematics of Github :) OffTopic: HAve a great Time! And nice greetings from Mettingen Germany |
You could use the smart meter interface as explained in the docs. |
@dieckfr : as for code contribution, you have to go to repository for Tasmota and fill a Pull request (mush as you did to open this issue) and subit the proposed code |
Hello again :),
I have found a solution, and for me is it working... A little bit quick and
dirty, you have to do a hardcoding for the names, and at the Moment i have
done it only for the DS18 Sensors, still working for DHT support, and i
think finally i will make a config file, or when i have more Time to learn
about the code language and the Projekt itself, maybe a Command
solution... I will put it to Github... when i know how to do that...
I post here the prinzipal changes, it is not very much, but i spend a
couple of time to finger out how everything works together...
*1. For the DS18XX Sensor change in xsns_05_ds18x20 at codenumber 507:*
#ifdef USE_WEBSERVER
} else {
if (0 == i) {
WSContentSend_PD(HTTP_SNS_TEMP_USER, PSTR("USERNAME1"),
temperature, TempUnit()); // HTTP_SNS_TEMP_USER is without show
"Temperatur in WebUi show the second Change
}
else if (1 == i) {
WSContentSend_PD(HTTP_SNS_TEMP, PSTR("USERNAME1"), temperature,
TempUnit());
}
else if (2 == i) {
WSContentSend_PD(HTTP_SNS_TEMP, PSTR("USERNAME1"), temperature,
TempUnit());
}
else if (3 == i) {
WSContentSend_PD(HTTP_SNS_TEMP, PSTR("USERNAME1"), temperature,
TempUnit());
}
else {
WSContentSend_PD(HTTP_SNS_TEMP, ds18x20_types, temperature,
TempUnit());
}
#endif
2. Change in i18n.h at codenumber 732
// xdrv_02_webserver.ino
#ifdef USE_WEBSERVER
// {s} = <tr><th>, {m} = </th><td>, {e} = </td></tr>
const char HTTP_SNS_TEMP[] PROGMEM = "{s}%s " "</th><th>"
D_TEMPERATURE "{m}%s " D_UNIT_DEGREE "%c{e}"; // Whit
automatic Temperature shown, ("</th><th>" ) is only for "formatierung" :)
const char HTTP_SNS_TEMP_USER[] PROGMEM = "{s}%s "
"{m}%s " D_UNIT_DEGREE "%c{e}"; // Shows only the Username
The Result is on the Picture.
I will do that for DHT and a few other Sensors i use, and you can get the
stuff on Github: https://github.com/dieckfr/Custom-Tasmota-TEST-Github
Maybe take a while, as this time i dont know how to take the stuff to
github the best way.
Every Comment is welcome :)
Oh i ansered by mail, the picture is not shown ... here a dropbox link:
https://www.dropbox.com/s/nly82ib3s1pjsz5/Bildschirmfoto%202020-07-20%20um%2000.46.21.png?dl=0
Am Do., 16. Juli 2020 um 09:37 Uhr schrieb ilgrank <notifications@github.com
…:
@dieckfr <https://github.com/dieckfr> : as for code contribution, you
have to go to repository for Tasmota and fill a Pull request (mush as you
did to open this issue) and subit the proposed code
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#6970 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQA5WS6WCEOJRKVPTN3LSULR32U4VANCNFSM4JPJBMOA>
.
|
Great start. Thank you. |
@dieckfr: thanks for the contribution. The correct place to publish your code tho is in a Pull request, not in an issue |
I have to study Github principals :) By the way, i have done a little bit work in formatting, and the DHT Sensor works also. |
That's great news @dieckfr ! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue will be auto-closed because there hasn't been any activity for a few months. Feel free to open a new one if you still experience this problem. |
Hey all, might be kicking a metabolically challenged horse here, yet just curious if mentioned ds18b20 alias ever made it into the main repo? I too have multiple tempsensors bolted on to some devices, i.e. do my best to follow a logical naming convention for all entities, thus super helpful if this ever got implemented. Thank you //MvE |
What you have now is the command |
Is the DS18Alias perhaps in another build? |
The code is there but not compiled in any standard build
|
Hello, I have three DS18B20 connected and working perfectly.
However, the names are DS18B20 -1, DS18B20-2, DS18B20-3
How can these be renamed to friendly names? I am assuming they cant be because I was not able to find any info about this what-so-ever.
Might the only way this is possible is compiling my own build with the names embedded?
I think the feature request in that case is obvious.
Thank you
Ryan
Have you looked for this feature in other issues and in the docs?
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is.
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
(Please, remember to close the issue when the problem has been addressed)
The text was updated successfully, but these errors were encountered: