The Tileboard looks awesome, so I also wanted to give it a go. Followed the instructions but get the issue that Tileboard is not loaded. URL redirection is sending me to: http://LOCALIP:8123/auth/authorize?client_id=...etc etc… and then later a time out page.
Isn’t this an authentication issue?
The browser seem to be connected but hangs for a while.
Update. As i thought this was an identification issue i thought I would add HA username above the password line, which resulted in I could access the UI, but will errors.
You shouldn’t be putting a username or password into your config.js file, just a serverUrl, wsUrl, and optional long-lived access token (authtoken). Are you just looking at the readme and the config.example.js file to start your config from? Do you have the latest version from GitHub? I see the Wiki has some outdated references in the Getting Started section, I would disregard that page for now as it needs to be updated and the readme should spell everything out for you.
If you’re still having trouble, feel free to anonymize your config.js file and share it here.
function loadScript(url) {
var req = new XMLHttpRequest();
req.open('GET', url + '?cache=' + Math.random(), false);
req.onreadystatechange = function(){
if (req.readyState === 4) {
var s = document.createElement('script');
s.appendChild(document.createTextNode(req.responseText));
document.head.appendChild(s);
}
};
req.send(null);
}
var conf = location.search.match(/config=([\w\d_-]+)/);
conf = conf ? conf[1] : 'default'
loadScript('includes/' + conf + '.js');
Create includes directory in the root of your TileBoard directory and store configs for each of your dashboard in there. By default it would load default.js and you can specify any other ones in the query string like so:
Does anyone have a solution to Philips hue lights showing as unavailable?
I’ve added the “unavailable” state as below but when the light is unavailable the icon opacity and controls appear as if the light is on. I’ve played around with customStyles but have only managed to set the opacity of the entire tile.
states: {
on: "On",
off: "Off",
unavailable: "Off"
},
icons: {
on: "mdi-ceiling-light",
off: "mdi-ceiling-light",
unavailable: "mdi-ceiling-light",
},
Thanks for pointing me in the right direction, but removing the } after return list[id+3]; did not work. When I added an extra } before the line with }) it did the trick. Looks like the code was missing a closing } for the return{ statement.
Yeah, my code doesn’t have the leading and trailing braces. Glad you got it working. Just as a note, this will work for up to 8 lights being on. For more, you’d have to add 5, 6, 7… to the list.
Is it possible to override .item.-off.-sensor_icon .item-entity--icon, within a customStyles: function?
I want to be able to set the opacity on the mdi icon when its state is off.
What do you have for the refresh setting for the camera tile? I have 10000 (ms so 10 seconds) and I do not experience the issue that you demonstrate. Perhaps you can try adjusting the setting to see if you get different results.
I’m using 1500ms, now I understand that’s the problem. The connection with the camera slow and using a lower refresh rate makes it flicker.
Anyway, I activated stream: in Home assistant, so that it just streams like rtsp:// protocol but I think TileBoard isn’t working that way right?