Skip to content

Commit

Permalink
Merge pull request #150 from Jeedom-Zigate/develop
Browse files Browse the repository at this point in the history
1.2.3-b2
  • Loading branch information
doudz authored Feb 26, 2019
2 parents 887cd1d + 366c7bf commit 40e0f1a
Show file tree
Hide file tree
Showing 10 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions core/class/zigate.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -368,13 +368,16 @@ public function _create_command($endpoint_id, $cluster_id, $attribute)
$cmd_info->setLogicalId($key);
$cmd_info->setType('info');
$cmd_info->setEqLogic_id($this->getId());
$cmd_info->setIsHistorized(1);
$cmd_info->setIsHistorized(0);
if (!isset($attribute['name'])) {
$cmd_info->setIsVisible(0);
$cmd_info->setIsHistorized(0);
}
if ($cluster_id == 0) {
// by default hide "basic" clusters
if ($cluster_id < 5) {
$cmd_info->setIsVisible(0);
} else {
$cmd_info->setIsHistorized(1);
}
$cmd_info->setName($name);
}
Expand All @@ -387,6 +390,7 @@ public function _create_command($endpoint_id, $cluster_id, $attribute)
$cmd_info->setConfiguration('property', $name);
if ($cluster_id < 5) {
$this->setConfiguration($name, $attribute['value']);
// rename device to add type in name if not renamed
if ($name == 'type' && $attribute['value'] && $this->getName() == 'Device ' . $this->getLogicalId()) {
$this->setName('Device ' . $this->getLogicalId(). ' '.$attribute['value']);
}
Expand Down
Binary file added images/Classic_A60_RGBW.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/Classic_A60_W_clear_-_LIGHTIFY.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/FB56-ZCW08KU1.1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/GL-C-006.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/GL-S-003Z.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/LCT007.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/LWG001.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion plugin_info/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
"documentation": "https://jeedom-zigate.github.io/jeedom-plugin-zigate",
"language": ["fr_FR", "en_US"],
"compatibility": ["Jeedomboard", "RPI/RPI2", "Docker", "DIY"],
"pluginVersion": "1.2.3"
"pluginVersion": "1.2.3-b2"
}
2 changes: 1 addition & 1 deletion resources/zigated/zigated.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def sharedata():
try_sharedata(key, persistent_file)
try_sharedata('z'+key, os.path.join(BASE_PATH, 'log', 'zigate'))
try_sharedata('zu'+key, os.path.join(BASE_PATH, 'log', 'zigate_update'))
try_sharedata('http.error.'+key, os.path.join(BASE_PATH, 'log', 'http.error'))
# try_sharedata('http.error.'+key, os.path.join(BASE_PATH, 'log', 'http.error'))
except Exception:
pass
time.sleep(60*60*6)
Expand Down

0 comments on commit 40e0f1a

Please sign in to comment.