Buttons in switches no longer visible Topic is solved

Moderator: leecollings

Post Reply
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Buttons in switches no longer visible

Post by EdwinK »

I noticed earlier today that since the last Domoticz beta (Version: 2020.1 (build 11835)) switches no longer have buttons. It looks they have gone
Should be buttons here.
Should be buttons here.
Screen Shot 2020-03-23 at 22.35.38.png (60.01 KiB) Viewed 2745 times
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
lzwfkv
Posts: 37
Joined: Sunday 11 August 2019 16:54
Target OS: -
Domoticz version:
Contact:

Re: Buttons in switches no longer visible

Post by lzwfkv »

Hi, I had the same issue.
I guess you have updated Domoticz to the latest beta. It looks like Domoticz have changed the way they number versions, therefore version.js oin Dashticz cannot compare anylonger as a number, to determine Base64 encoding of selector switches.
Temporary solution i applied for latest Domoticz beta, while waiting for Lokolni & co. to take it over (please):
  • Navigate to Dashticz installation path
    cd js folder
    make backup of version.js file
    edit version.js:
    change the row
    var levelNamesEncoded = false;
    to
    var levelNamesEncoded = true;
    Towards the bottom, in the last ajax call branch, comment the row
    // levelNamesEncoded = (Number(data.version) >= Number(levelNamesEncodeVersion));
    Save the file version.js
    Refresh Dashticz page in the browser: that's it.
Cheers.
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Buttons in switches no longer visible

Post by EdwinK »

Thanks :)

When I comment the row with // dashticz isn't loading at all anymore, but when I do /* .... */ it does.

Anyway, I've a working system again ;)
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
Lokonli
Posts: 2260
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Buttons in switches no longer visible

Post by Lokonli »

Fixed in master, beta and blocks branch. I still have to update the version numbers.
lzwfkv
Posts: 37
Joined: Sunday 11 August 2019 16:54
Target OS: -
Domoticz version:
Contact:

Re: Buttons in switches no longer visible

Post by lzwfkv »

Many thanks Lokonli, and wonderfully fast.
Updated and It works again, well done!
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Buttons in switches no longer visible

Post by EdwinK »

Indeed, Thanks Lokonil and others that help keep dasthicz running
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest