Skip to content
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

Question/FR: Quick and Dirty Translation #19

Open
emufan opened this issue Nov 23, 2023 · 2 comments
Open

Question/FR: Quick and Dirty Translation #19

emufan opened this issue Nov 23, 2023 · 2 comments

Comments

@emufan
Copy link

emufan commented Nov 23, 2023

Currently the sensor returns "Home" if at home and not the name of the Home.

What can I change / or can be changed to use the name of the home instead as state?

I tried to set it hard here

        if self.hass.states.get(self._origin_entity_id) is not None:
            zone_check = self.hass.states.get(self._origin_entity_id).state
        else: 
            zone_check = 'not_home'

        # Do not update location if zone is still the same and defined (not not_home)
        if zone_check == self._zone_check_current and zone_check != 'not_home':
->            if zone_check == 'home':
->                self._state = 'Zu Hause'
            return

        self._zone_check_current = zone_check

because I thought this is the place I can tweak it, but I can't.

Any ideas or advice or plans to take the home name instead of "Home"?

@emufan emufan changed the title Quick and Dirty Translation Question/FR: Quick and Dirty Translation Nov 23, 2023
@gregoryduckworth
Copy link
Owner

I don't use this component anymore due to migrating over to the HA app but when I get some I'll take a look at getting it to work with "home" addresses in various languages.

@emufan
Copy link
Author

emufan commented Nov 25, 2023

Thx so much!

I don't use this component anymore due to migrating over to the HA app

What does it mean? Has HA a (for me unknown) geocoding service as well? I need/use it to get the address from different tracker sensors.

when I get some I'll take a look at getting it to work with "home" addresses in various languages.

Great. If you have a hint where you set "home" to the sensor, so that I can quick&dirty overwrite it (as my try above), I would be very happy. Thought I found the right line, but as said it isn't working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants