Home Assistant App for Garmin

Nevermind, turns out I was being silly! Was trying to control a lock thinking it was a switch! Got it working now :blush:

I was about to say “That’s not a great deal to go on in order to help you.

A shortcoming of the MonkeyC SDK is that I have to tell the REST API caller to expect JSON. But then if the call returns plain text for some reason, it won’t parse. I have no way round this. The plain text response would have been the error message that I then cannot get at. There is no fix for this unti lthe SDK changes.

Glad you got it working.

1 Like

I’ve been comparing this HA and apiCall behavior a little more as i really see benefit in having Wifi work for the HA garmin app (bluetooth connection rebuilt is very hard when standing outside and phone is inside).
In his thread (APICall - Connect IQ App Showcase - Connect IQ - Garmin Forums)
he refers to :
Toybox.Communications

where it is specifically state it works on bt and wifi whatever is availabe. On wifi it’s really asynchronous as it needs to do ‘synchronize’. Finding the wifi outdoor is pretty ok and sync is quick when using the APIcall app to control a HA entity.
What i dont get is how he got control on what media its being send. The apicall can force WIFI usage and that i dont see in the documentation.

Sorry, but I’m getting increasingly fed up with this request for Wi-Fi!

Please see GHA over Wi-Fi · Issue #142 · house-of-abbey/GarminHomeAssistant · GitHub for details of a previous attempt. Yes its a great idea, and therefore obviously you are far from the first to think of it. Is not about desirability, but about feasibility. The Wi-Fi comms seemed to be wrapped up in a data synchronisation mentality rather than something more general that we need here.

Bottom line is, if you can code it, I’ll review the pull request. I wish the Garmin Connect IQ SDK were more amenable and more obviously helpful. Be sure to prove the application works on a real watch without crashing and not just the simulator (which was unrealistic in this case). The API call needs to work from a menu item in a menu. Don’t just get it working from the main application thread and say “ta da!” as that’s not a realistic proof of concept for this application.

Good luck! (And don’t forget your phone…)

Philip

I’ll definiely have a look
I CAN forget about my phone with the API call app, but i’ll only use it for one action, opening my garage. The way to add more action is not to my liking and also selection on the watch isnt great.
So with this actual info it’s not about feasability, but combining the strengths of the 2 apps and that I will investigate.
cheers and it was not my intention to trigger your frustration, really up for the “getting involved to solve issues”.

Like I mentioned, I got something working in simulation that then crashed my watch. I had a conversation with an author who had done some API over Wi-Fi work, I think its the same application you reference as his work was called “APICall”. He gave me the source code, but I could not use it. It would not work from a menu item. Its all a bit dim & distant now precisely.

  1. Something about starting the sync process and then changing the view to the menu items, then the menu items not being able to call through to Wi-Fi via the Sync process.
  2. Might be threading issue? On the UI thread rather than the sync thread.

So you should be able to make a call from the same thread you started the sync process in, then it all goes horribly wrong when you try it from a menu item. Without it working from a menu, there’s no solution here.

I still have the source code for a standalone app with 3 menu items from which I was testing REST API calls. I would have to dust it off having confined it to history.

i would like to have a look at that

i get your point on trhead a bit. I will keep it in mind. The process allows to execute next steps with the delegate if i understood well. There is also callback involved as all is async, that will be need to tied up to UI process indeed

Hi everyone. I’m a new Garmin Home Assistant user. I created to make a test a static json menu, I can reach it from my laptop which is on the same wifi as my watch (Garmin 7X) but watch doesn’t seem to get connected. Wifi is working, but I never see it connected when I even access the app. what should I do? Thanks!

Hi @maxper75,

First up, how did you get on with the trouble shooting guide at GarminHomeAssistant/TroubleShooting.md at 6b2aa3135a15e1f60104f1e608692b8c2dcae903 · house-of-abbey/GarminHomeAssistant · GitHub?

I can reach it from my laptop which is on the same wifi as my watch (Garmin 7X)

Good

but watch doesn’t seem to get connected. Wifi is working

But the watch uses Bluetooth to connect to your phone before it can use Wi-Fi to connect to your LAN. So the next culprit to suspect is the Bluetooth hop. This is shown diagramatically in the trouble shooting guide.

If its not Bluetooth, then it may be the lack of HTTPS. Again this is covered in detail.

There is an HTTP option with some extra work and absolutely no support from GHA. See GarminHomeAssistant/README.md at 6b2aa3135a15e1f60104f1e608692b8c2dcae903 · house-of-abbey/GarminHomeAssistant · GitHub. Good luck with that!

Please make sure you have taken the time to read the documentation I have pointed you to. It is all referenced in the application description so hopefully not a surprise that it exists!

Thank you for your interest,

Philip

1 Like

Hi Philip,

Thanks for the app so far. It really makes my Garmin much more useful.

2 questions

  1. Is there a way to add like a title line/separator in the middle of items? I’ve resorted to using a “content” item but it’s confusing on the UI and takes up way too much space.
  2. Where can I buy you a beer to show my appreciation?

Thanks!

Hi @unxplained,

I’m glad you are enjoying the app.

  1. This is not something I had personally thought of doing as it would make the menu longer to scroll through. That said, there’s no reason we can’t provide a solution for others. The current nearest solution is illustrated in the Templates section, only now without the actual template.
    {
      "name": "Divider",
      "type": "info",
      "content": ""
    },

Which gives:

I appreciate the design may not be to your liking. So that’s where I would like to redirect you to raise an issue on Github where we can discuss what the desired solution might look like and what can be achieved, i.e. with stock widgets from the API. That last constraint might limit ambitions a little…

  1. You could always leave me a respectful & understanding review at GarminHomeAssistant (Application)? Simple and cost effective!

Regards,

Philip

Hey there! Are there any plans for integrating voice assist on this app?

No.

Why? Use a voice assistant app?

1 Like

Version 3.0 has just been released. It includes a much sought after feature to fall back to Wi-Fi or LTE in the absence of a connection to your phone’s Bluetooth. With thanks to a user, @vincentezw for the significant contribution. The video shows how this is best used as a fallback, and you should continue to rely on Bluetooth.

As this is a significant new feature, please help us by providing testing and detailed bug reports so we can change anything that’s not right.

1 Like

I am trying to setup an automation to send a push notification from home assistant to the garmin app. Is this possible?
I cannot find any notify.mobile_app_ which exists for regular mobile apps, but not for the Garmin watch.

The way that “push” notifications work on android tends to be that the server (homeassistant) pushes notifications to a server (firebase) and then the phone actually pulls them down.

We cannot facilitate that on the watch and have no way to actually display notifications if we did – hence we do not provide a notify service.

You are best off sending notifications to your phone and then making sure that the garmin connect app is setup to forward them to your watch.

3 Likes

Icons are not configured in anyway by the GarminHomeAssistant app. There’s nothing in the supported JSON format to suggest we can help here.

I think you have the wrong app for this forum page. Try contacting the author for HassControl?

Thank you for your great work! I have succesfully setup my enviroment with Nabu Casa and all works well!!

1 Like

Please do leave a review at Connect IQ Store | Watch Faces and Apps | Garmin, thank you!

Hi, I’ve been a new user of this amazing app for some time now, and it works great. I have one question, because it’s not entirely clear to me: does this app communicate through some external server, in other words, is it “cloud-based” or 100% local — watch → phone → HA?