## GarminHomeAssistant Troubleshooting

This is a troubleshooting tool for the GarminHomeAssistant watch app. It allows you to test your Home Assistant API connection.

Check now!

## GarminHomeAssistant Web Editor

This is the web editor for the GarminHomeAssistant watch app, it offers enhanced schema checking and validation over the original JSON schema by using the HomeAssistant API to create a schema based on your HomeAssistant configuration.

This editor makes use of the same credentials as the watch app (these can be pasted in the top bar of this page). However in order for this editor to work, you will need to amend the CORS settings of your HomeAssistant instance. Add this to your configuration.yaml file:

`

    http:
      cors_allowed_origins:
        - https://house-of-abbey.github.io

`

Once you have added this to your configuration.yaml file, you will need to restart HomeAssistant. After HomeAssistant is restarted, reload this page.

Now you should have validation and autocompletion, anywhere in the editor, press `Ctrl` + `Space` to see the available options. You will also see red lines under syntax errors and yellow lines under validation errors. Hover over these lines to see the message. You can also click on the `Run Action` and `Toggle` buttons to test your actions.

In the top bar there are 4 buttons, the first button will download the online version of your menu.json file and put it in the editor. The second button will copy the content of the editor to the clipboard. The third button will open the troubleshooting dialog, this will allow you to test your HomeAssistant API connection. The fourth button will open this dialog.

For directions on how to write your menu.json file, please see the README in the GitHub repo.