Everything else is running nicely but HABot main page shows just blank white. It connects and looks like it’s loading for a while like it should but nothing shows.
Confirmed that this “use compresed web app resources” option is unchecked.
Tried to clear browser cache and used incognito mode to access HABot. Now it shows sad face and says that openHAB is offline.
Any ideas?
Running openHAB 2.4 Snapshot #1460 on Debian 9 and Zulu Java
Edit #1 Looks like the problem is with substitution rules…
Can you open the dev tools and check if there are errors? I think URL prefixes (e.g. https://host/openhab) are not supported, it should be at the root of the domain.
Got this bit further. Opening https://mydomain.net/openhab/habot/ now displays HABot’s main page correctly. Two RewriteRules and substitution got this working. Main problem was accessing REST api. Now I can change settings and add cards etc. But as soon as I say something to HABot it answers “HTTP 405 Method Not Allowed”. Looks like POST requests are not allowed. I’ll continue my experiments and speed them up with a cold beer.
Edit #1 POST method is allowed. And so is GET. Problem now seems to be that the request redirection is not working.
Edit #2 Redirection is working but /rest/habot/chat accepts only POST. Apache is converting the POST request to GET and thats why the answer is not allowed.
More tests revealed that it isn’t fully working. If I create a card named kitchen that holds a group item containing kitchen lights and ask HABot “show kitchen” the card is displayed correctly. But if I ask “show lights” so that it creates the card “on the fly” containing all my items tagged with lights chrome debug console shows TypeError.