diff --git a/TroubleShooting.md b/TroubleShooting.md index 1c9e7ed..9d3f8ee 100644 --- a/TroubleShooting.md +++ b/TroubleShooting.md @@ -6,7 +6,7 @@ Before [raising an issue](https://github.com/house-of-abbey/GarminHomeAssistant/issues) about a possible bug, _please, please_ check your JSON is compliant with both the JSON format and our schema. To do this you have options. The first is what we use. -1. **Best!** Use the GarminHomeAssistant [Web-based Editor](https://house-of-abbey.github.io/GarminHomeAssistant/web/) which includes `entity` and `service` name completion and validation by fetching data from your own HomeAssistant instance. _Pretty nifty eh?_ The other methods listed below do not add this convenience and checking. NB. This has been tested in Microsoft Edge, Chrome and Firefox. +1. **Best!** Use the GarminHomeAssistant [Web-based Editor](https://house-of-abbey.github.io/GarminHomeAssistant/web/) which includes `entity` and `service` name completion and validation by fetching data from your own HomeAssistant instance. _Pretty nifty eh?_ [See below for an illustration of the features](#online-web-based-editor). The other methods listed below do not add this convenience and checking. NB. This has been tested in Microsoft Edge, Chrome and Firefox. 2. Use the [Studio Code Server](https://community.home-assistant.io/t/home-assistant-community-add-on-visual-studio-code/107863) addon for HomeAssistant. You can then edit your JSON file in place. 3. Locally installed VSCode, or if not installed, try... 4. The on-line version at https://vscode.dev/, which works really well. Paste in your JSON (and change the file type to JSON if not saving), it will then verify your file format and schema for you, highlighting any errors for you to fix. @@ -153,6 +153,64 @@ To verify if you have this issue you can use a tool like [SSL Shoppers's SSL Che 1. Failure to copy & paste keys and URLs leading to minor and hard to see errors in strings, even with protestations they are the same! (No they weren't...) 2. Accessibility of URLs, hence the above help guide. +## Online Web-based Editor + +The [editor](https://house-of-abbey.github.io/GarminHomeAssistant/web/) provides the following functions: + +1. Syntax highlighting + +2. Schema checking + + + +3. Entity name completion + + + +4. Rendering previews, to aid HA 'template' creation + + + + +If the editor page appears to be dimmed, read only, and does not scroll, then that's because you have not set up your details correctly. Check the following: + +1. Enable CORS. +2. Make sure you are using HTTPS-based URLs. +3. Make sure you have entered the three fields for Home Assistant URL, Menu URL and API Key. + +On (1) you will initially be presented with the following message. Please do not ignore this or the editor will not work. If you do not see this banner, you may have a browser extension installed that dismisses it before you've seen it (i.e. don't complain you never saw this banner, that's not our fault!). + +--- + +