NickStallman / home-assistant-repo

18 stars 6 forks source link

SH15T ends up with semi-translated entity names #11

Open ctheune opened 3 months ago

ctheune commented 3 months ago

On startup it shows this (I scrubbed the serial number):

2024-07-19 08:47:36 info: Configured sensor: SH15T_ i18n_common_group_bunch_title_andpercent1_voltage 
2024-07-19 08:47:36 info: Configured sensor: SH15T_ i18n_common_group_bunch_title_andpercent1_current 
2024-07-19 08:47:36 info: Configured sensor: SH15T_ i18n_common_group_bunch_title_andpercent1_power 
2024-07-19 08:47:36 info: Configured sensor: SH15T_ i18n_common_group_bunch_title_andpercent2_voltage 
2024-07-19 08:47:36 info: Configured sensor: SH15T_ i18n_common_group_bunch_title_andpercent2_current 
2024-07-19 08:47:36 info: Configured sensor: SH15T_ i18n_common_group_bunch_title_andpercent2_power 
2024-07-19 08:47:36 info: Configured sensor: SH15T_ i18n_common_group_bunch_title_andpercent3_voltage 
2024-07-19 08:47:36 info: Configured sensor: SH15T_ i18n_common_group_bunch_title_andpercent3_current 
2024-07-19 08:47:36 info: Configured sensor: SH15T_ i18n_common_group_bunch_title_andpercent3_power 
2024-07-19 08:47:36 info: Configured sensor: SH15T_ i18n_common_group_bunch_title_andpercent4_voltage 
2024-07-19 08:47:36 info: Configured sensor: SH15T_ i18n_common_group_bunch_title_andpercent4_current 
2024-07-19 08:47:36 info: Configured sensor: SH15T_ i18n_common_group_bunch_title_andpercent4_power 
2024-07-19 08:47:36 info: Configured sensor: SH15T_ i18n_common_group_bunch_title_andpercent5_voltage 
2024-07-19 08:47:36 info: Configured sensor: SH15T_ i18n_common_group_bunch_title_andpercent5_current 
2024-07-19 08:47:36 info: Configured sensor: SH15T_ i18n_common_group_bunch_title_andpercent5_power 
2024-07-19 08:47:36 info: Configured sensor: SH15T_ i18n_common_group_bunch_title_andpercent6_voltage 
2024-07-19 08:47:36 info: Configured sensor: SH15T_ i18n_common_group_bunch_title_andpercent6_current 
2024-07-19 08:47:36 info: Configured sensor: SH15T_ i18n_common_group_bunch_title_andpercent6_power 

Other entities are fine, though.

Screenshot 2024-07-19 at 10 45 33
NickStallman commented 3 months ago

That's very interesting. Is your Winet configured for English or a different language by any chance?

When you go to the Winet interface directly, can you find those values and see what name it gives them? "group_bunch_title_andpercent3" is rather odd and doesn't describe much.

wangeris commented 2 months ago

I'm getting something similar on SG10RT

10gt

ctheune commented 2 months ago

I sniffed the network connection and found the cause of this:

Here's the result that includes the relevant strings:

    "result_data":  {
        "service":  "direct",
        "list": [{
                "name": "MPPT1",
                "voltage":  "734.6",
                "voltage_unit": "V",
                "current":  "6.0",
                "current_unit": "A"
            }, {
                "name": "MPPT2",
                "voltage":  "759.7",
                "voltage_unit": "V",
                "current":  "3.0",
                "current_unit": "A"
            }, {
                "name": "MPPT3",
                "voltage":  "0.0",
                "voltage_unit": "V",
                "current":  "0.0",
                "current_unit": "A"
            }, {
                "name": "I18N_COMMON_GROUP_BUNCH_TITLE_AND%@1",
                "voltage":  "734.6",
                "voltage_unit": "V",
                "current":  "6.00",
                "current_unit": "A"
            }, {
                "name": "I18N_COMMON_GROUP_BUNCH_TITLE_AND%@2",
                "voltage":  "734.6",
                "voltage_unit": "V",
                "current":  "0.00",
                "current_unit": "A"
            }, {
                "name": "I18N_COMMON_GROUP_BUNCH_TITLE_AND%@3",
                "voltage":  "759.7",
                "voltage_unit": "V",
                "current":  "3.00",
                "current_unit": "A"
            }, {
                "name": "I18N_COMMON_GROUP_BUNCH_TITLE_AND%@4",
                "voltage":  "759.7",
                "voltage_unit": "V",
                "current":  "0.00",
                "current_unit": "A"
            }, {
                "name": "I18N_COMMON_GROUP_BUNCH_TITLE_AND%@5",
                "voltage":  "0.0",
                "voltage_unit": "V",
                "current":  "0.00",
                "current_unit": "A"
            }, {
                "name": "I18N_COMMON_GROUP_BUNCH_TITLE_AND%@6",
                "voltage":  "--",
                "voltage_unit": "V",
                "current":  "--",
                "current_unit": "A"
            }],
        "count":    9
    }
}
ctheune commented 2 months ago

The UI when logging into Winet is English. The system is running in Germany and configured for the German grid. But I think this isn't relevant as the weird strings appear directly in the output ...

NickStallman commented 2 months ago

It will likely be related to using German in the Web UI actually, as the addon currently loads the internal Winet US language file to get the correct field names.

I have no clue why the German interface would be showing values which aren't shown in the English interface though. That's very weird.

Can you find in the Web UI where "I18N_COMMON_GROUP_BUNCH_TITLE_AND" might be coming from and take a screenshot? Then maybe change the UI to English and see what the same area shows?