EDIT: Fixed

Moderator: leecollings
Confirmed! And the new var trashnames / colors work nice!!robgeerts wrote:Fixed in beta!
Please test in latest beta!robgeerts wrote:Blueone wrote:There appear to be a new bug with the thermostat function. Every 5 seconds (the refresh time) there is a class added to the thermostat setpoint. When you increase or decrease the setpoint the action is done for every added class, zo if you have the dashboard open for a couple of minutes the classed several dozens of classes are added to the setpoint, and it is going to change the setpoint for every class and one click will change the setpoint with 10 degrees for example:
thermostat.png
Code: Select all
blocks[1980] = {}
blocks[1980]['icon'] = 'fa-window-close';
blocks[1980]['title'] = 'Voordeur';
blocks[1980]['show_lastupdate'] = true;
I'm not sure of this works in your case... maybe you can try? Add following code to custom.js. Change to your own icon.mikeoo wrote:Updated to latest beta and cleared the cache.
I use some door sensors with Xiaomi Mi Smart Home Gateway 2.
Added them to Dashticz and try to use some other icons instead of the default ones because i want to use the doorsensor as a windowssensor.
For the test i use this in config.js
But it keeps the default doorsensor icon .Code: Select all
blocks[1980] = {} blocks[1980]['icon'] = 'fa-window-close'; blocks[1980]['title'] = 'Voordeur'; blocks[1980]['show_lastupdate'] = true;
When i do the same for a dummy switch it is working fine.
Code: Select all
function getBlock_1980(device,idx){
$('.block_'+idx).attr('onclick','switchDevice(this)');
var html='';
html+='<div class="col-xs-4 col-icon">';
if(device['Status']=='Closed') html+='<img src="img/your_icon_closed.png" class="off icon" />';
else html+='<img src="img/your_icon_open.png" class="on icon" />';
html+='</div>';
html+='<div class="col-xs-8 col-data">';
html+='<strong class="title">'+device['Name']+'</strong><br />';
if(device['Status']=='Off') html+='<span class="state">Closed</span>';
else html+='<span class="state">Open</span>';
if(_SHOW_LASTUPDATE) html+='<br /><span class="lastupdate">'+moment(device['LastUpdate']).format(_LASTUPDATE_FORMAT)+'</span>';
html+='</div>';
return html;
}
Try latest beta..qwerk wrote:hi,
since today I get
a java error main.js/v=54 line:417
It is not the lat beta also before that.
Is it my installation, or is dashticz?
had it a few tmes with at least two dashticz versionsrobgeerts wrote:Try latest beta..qwerk wrote:hi,
since today I get
a java error main.js/v=54 line:417
It is not the lat beta also before that.
Is it my installation, or is dashticz?
Do you still have the issue in this version?
Nice, code is working fine.HansieNL wrote:I'm not sure of this works in your case... maybe you can try? Add following code to custom.js. Change to your own icon.mikeoo wrote:Updated to latest beta and cleared the cache.
I use some door sensors with Xiaomi Mi Smart Home Gateway 2.
Added them to Dashticz and try to use some other icons instead of the default ones because i want to use the doorsensor as a windowssensor.
For the test i use this in config.js
But it keeps the default doorsensor icon .Code: Select all
blocks[1980] = {} blocks[1980]['icon'] = 'fa-window-close'; blocks[1980]['title'] = 'Voordeur'; blocks[1980]['show_lastupdate'] = true;
When i do the same for a dummy switch it is working fine.
Code: Select all
function getBlock_1980(device,idx){ $('.block_'+idx).attr('onclick','switchDevice(this)'); var html=''; html+='<div class="col-xs-4 col-icon">'; if(device['Status']=='Closed') html+='<img src="img/your_icon_closed.png" class="off icon" />'; else html+='<img src="img/your_icon_open.png" class="on icon" />'; html+='</div>'; html+='<div class="col-xs-8 col-data">'; html+='<strong class="title">'+device['Name']+'</strong><br />'; if(device['Status']=='Off') html+='<span class="state">Closed</span>'; else html+='<span class="state">Open</span>'; if(_SHOW_LASTUPDATE) html+='<br /><span class="lastupdate">'+moment(device['LastUpdate']).format(_LASTUPDATE_FORMAT)+'</span>'; html+='</div>'; return html; }
Oke, i found the bug in this piece of code:Blueone wrote:Oke clear, but the increase and decrease doenst work at the moment, so there is still a small bug somewhere.
Could you test latest beta?Blueone wrote:Oke, i found the bug in this piece of code:Blueone wrote:Oke clear, but the increase and decrease doenst work at the moment, so there is still a small bug somewhere.
[/code]
if(typeof(addedThermostat[idx])=='undefined'){
addThermostatFunctions('.block_'+idx+'_2');
addedThermostat[idx] = true;
}
[/code]
The ‘_2’ is hardcoded while not every setpoint block contains the _2, for example, mine setpoint block class is simply Block_628, so the clickevent isn’t added to the block.
BTW: The thermostatfunctions are also added to the temperature blocks at the moment, not really an issue but it isn’t nessecary
Should be fixed in latest beta!mikeoo wrote:Updated to latest beta and cleared the cache.
I use some door sensors with Xiaomi Mi Smart Home Gateway 2.
Added them to Dashticz and try to use some other icons instead of the default ones because i want to use the doorsensor as a windowssensor.
For the test i use this in config.js
But it keeps the default doorsensor icon .Code: Select all
blocks[1980] = {} blocks[1980]['icon'] = 'fa-window-close'; blocks[1980]['title'] = 'Voordeur'; blocks[1980]['show_lastupdate'] = true;
When i do the same for a dummy switch it is working fine.
Users browsing this forum: No registered users and 0 guests