Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions core/class/z2m.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1101,6 +1101,9 @@ public function refreshValue(){
if(in_array($logicalId,array('linkquality','last_seen'))){
continue;
}
if ($cmd->getConfiguration('noConverter', '0') == '1') { // no Converter
continue;
}
$datas = array($logicalId => '');
log::add('z2m','debug','[execute] '.z2m::getRootTopic() . '/' . z2m::convert_from_addr(explode('|', $this->getLogicalId())[0]) . '/get => '.json_encode($datas));
mqtt2::publish(z2m::getRootTopic() . '/' . z2m::convert_from_addr(explode('|', $this->getLogicalId())[0]) . '/get', json_encode($datas));
Expand Down
4 changes: 4 additions & 0 deletions desktop/js/z2m.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,10 @@ tr += '<input class="tooltips cmdAttr form-control input-sm" data-l1key="configu
tr += '<span><label class="checkbox-inline"><input type="checkbox" class="cmdAttr checkbox-inline" data-l1key="isVisible" checked/>{{Afficher}}</label></span> ';
tr += '<span><label class="checkbox-inline"><input type="checkbox" class="cmdAttr checkbox-inline" data-l1key="isHistorized" checked/>{{Historiser}}</label></span> ';
tr += '<span><label class="checkbox-inline"><input type="checkbox" class="cmdAttr" data-l1key="display" data-l2key="invertBinary"/>{{Inverser}}</label></span> ';
// No Converter
if (init(_cmd.type) == "info") {
tr += '<span><label class="checkbox-inline"><input type="checkbox" class="cmdAttr checkbox-inline" data-l1key="configuration" data-l2key="noConverter" title="{{Activer pour ne pas mettre à jour lors d\'un Refresh de l\'équipement (utile lorsqu\'il n\'existe pas de converter pour le champ)}}" />{{No Converter}} </label></span> ';
}
tr += '</td>';
tr += '<td>';
tr += '<span class="cmdAttr" data-l1key="htmlstate"></span>';
Expand Down