-
-
Notifications
You must be signed in to change notification settings - Fork 115
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
upgrade EMS-ESP breaks my historical graphs in grafana #116
Comments
V3 has changed some names of values and commands. Now all are lower case. In V2 there was a mixture of lower and mixed case and some commands have different names to the value. Read here. |
I think Bart's issue is the entity names in Home Assistant which are formed from the short names. For example Perhaps I can create a new command and endpoint like /api//ha which lists the mappings, similar to how http://ems-esp/api/boiler/commands works. |
I'm a bit confused, |
sorry, typo. The HA Entity is formed from the full name (dv.full_name) in Line 991 in 1159006
|
Happy that i'm not using HA, the namings are to confusing to me. Why do you call this all |
The way HA handles entities is actually straightforward and very well designed. The problem is the interface between EMS-ESP and HA. I had to use something called MQTT Discovery that builds the entities dynamically from MQTT topics which is really shit and been a headache of mine for a long time. (there is an issue somewhere to replace that all with a native interface using the API). To get an entity you need to create a config topic like:
{
"~": "ems-esp",
"uniq_id": "boiler_curflowtemp",
"stat_t": "~/boiler_data",
"name": "Boiler current flow temperature",
"val_tpl": "{{value_json.curflowtemp}}",
"unit_of_meas": "°C",
"ic": "mdi:coolant-temperature",
"state_class": "measurement",
"dev": {
"ids": [
"ems-esp-boiler"
]
}
} The name is built from the full name and used in the HA dashboard. You can test this running the standalone 'make run' and then 'test ha' to see the output if you're on Win10 with WSL, Linux or MacOSX. Anyway, we're getting off-topic here! Can I rename 'Boiler Temperature' to 'Actual boiler temperature' ? |
Hi, |
hopefully, it won't change too much! I added a command 'entities' which shows the HA entity name, use it like http://ems-esp/api/boiler/entities |
Hi @proddy , Sorry I have to come back on this. Another suggestion: about naming convention: It would be nice if the "system" entities could have a common prefix different from "system". I think this name is too generic and can interference with other "system" entities. It would be more transparent if the (autodiscovered) entities of ems_esp all have the same prefix, i.e. "ems_esp_" Now I have defined a group as
but I would like to have something like
Same for other entities:
just a suggestion... kind regards, |
damn, didn't realize by renaming a sensor that it'll start a new history. I can't think of way to do that but I'm sure if you ask in the Home Assistant channel on Discord you'll get a few ideas and perhaps scripts to do it. The data after all is in a relational DB via the recorder service. having |
just an idea: By that, users can choose to select the mqtt-base as a prefix:
So in my case, I would find all my devices under MQTT-topics
Other users who don't want any changes, can leave the checkbox unchecked. PS:
|
I think it's best as a specific HA setting (under Settings) but I like the idea of having it optional. Thanks for the suggestion.
I don't have a |
This mode is shortname |
didn't realize this. Why not just add the "ww" prefix back to these? MAKE_PSTR_LIST(wwMode, F("wwmode"), F("mode"))
MAKE_PSTR_LIST(wwSetTempLow, F("wwsettemplow"), F("set low temperature"))
MAKE_PSTR_LIST(wwCharge, F("wwcharge"), F("charge"))
MAKE_PSTR_LIST(wwChargeDuration, F("wwchargeduration"), F("charge duration"))
MAKE_PSTR_LIST(wwExtra1, F("wwextra1"), F("circuit 1 extra"))
MAKE_PSTR_LIST(wwExtra2, F("wwextra2"), F("circuit 2 extra")) |
There are some more in solar`without prefix:
The mixer ww:
are prefixed with "wwc" by tag, that's why i prefer to use a |
there was a reason I removed the 'ww' tags, perhaps it was the duplicate long names in HA or something to reduce the json sizes but I just can't remember anymore. In any case we should have build that works for everyone, so your request Michael is a valid as everybody elses. Let's get them back in and find another solution to the original problem (If I can remember it!) |
I've tried to find out, but no luck. I think it started with this commit to add Should i change to |
Ok, i've found the reason why you've removed the other devices. In
adds a wrong
is not very pretty, it creates also for boiler e.g. |
good find, I remember it was something to do with HA. If the |
I've made a pr with the changes to ww prefix for all warm water related names on all devices. Someone using HA has to check the discovery working, a bin is here. |
works fine - it's now merged with dev. Still to do is make changes to replace system_ with emsesp_ |
Actually, this is not possible due to the way the silly HA MQTT Discovery works. The name of the sensor is also the title shown in the Lovelace UI. So to get a |
Bug description
In HomeAssistant, I configured InfluxDB and Grafana to get the boiler data and show them on a graph.
I upgraded from EMS-ESP v2.2.1 to v3.2.1
No I notice that some of the measurements are missing
Expected behavior
The entities will have same name after upgrade
Screenshots
Device information
Question:
What caused this behavior?
Can it be avoided in the future?
How to resolve it?
kind regards,
Bart
The text was updated successfully, but these errors were encountered: