Hi
I have a display issue with my custom knob widgets. On my tablet, they always appear black. On my desktop browser they appear black intermittently on each refresh. They still work however.
I have replicated the issue in a clean openhab instance using docker (openhab:2.5.0-snapshot). All I have is the evohome binding, the evohome thing and one temperature item. The panel contains one default knob widget for the temperature item.
evohome.things :-
Bridge evohome:account:blah [ username="xxx", password="xxx" ]
{
display blah [ id="123" ]
heatingzone bedroom [ id="456" ]
}
evohome.items :-
Number BedroomSetPoint { channel="evohome:heatingzone:aliasxxx:bedroom:SetPoint" }
dashboard :
{
"dashboards": [
{
"id": "debug",
"name": "debug",
"widgets": [
{
"name": "New Widget",
"sizeX": 2,
"sizeY": 2,
"item": "BedroomSetPoint",
"type": "knob",
"row": 0,
"col": 2,
"floor": 0,
"ceil": 100,
"step": 1,
"ranges": [],
"$$hashKey": "object:26"
}
],
"row": 0,
"col": 1,
"$$hashKey": "object:18"
}
],
"menucolumns": 6,
"settings": {
"theme": "material-dark",
"header_clock_format": "EEEE, dd MMMM H:mm",
"show_header_clock": true
},
"customwidgets": {}
}
I do have the following errors in the browser console - not sure if anything to worry about.
Firefox can’t establish a connection to the server at http://localhost:8080/rest/events.
SSE error, closing EventSource openhab.service.js:266:21
registerEventSource/source.onerror http://localhost:8080/habpanel/app/services/openhab.service.js:266:21
Registered widget type: button widgets.module.js:38:13
<…snip…>
Registered widget type: template widgets.module.js:38:13
Content Security Policy: The page’s settings blocked the loading of a resource at eval (“script-src”). vendor.js:189:446
Setting locale to: en-GB openhab.service.js:125:21
openHAB 2 service configuration loaded openhab.service.js:292:17
Source map error: request failed with status 404
Resource URL: http://localhost:8080/habpanel/vendor/vendor.js
Source Map URL: aCKolor.min.js.map[Learn More]
Service worker registered index.html:28:21
Loaded 4 openHAB items openhab.service.js:35:21
Updating BedroomSetPointStatus state from FollowSchedule to PermanentOverride openhab.service.js:177:37
Updating BedroomSetPoint state from 15 to 15.0 openhab.service.js:177:37
The events file in the Network tab shows no headers. Again, not sure if this is an issue but it seems to be something that people ask about about it on similar topics.
This is what the knob looks like
This is how it should look (and does look half the time).
Hope someone can help.
Thanks in advance