Skip to content

Commit

Permalink
Merge pull request #3498 from manup/master
Browse files Browse the repository at this point in the history
Periodically poll SwBuildId for IKEA, OSRAM and Philips
  • Loading branch information
manup committed Oct 26, 2020
2 parents e69341d + 95f8156 commit 3615a24
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions poll_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,11 @@ void PollManager::pollTimerFired()
else
{
if (item->toString().isEmpty() ||
lightNode->manufacturerCode() == VENDOR_IKEA ||
lightNode->manufacturerCode() == VENDOR_OSRAM ||
lightNode->manufacturerCode() == VENDOR_OSRAM_STACK ||
lightNode->manufacturerCode() == VENDOR_XAL ||
lightNode->manufacturerCode() == VENDOR_PHILIPS ||
lightNode->manufacturerCode() == VENDOR_DDEL)
{
attributes.push_back(0x4000); // sw build id
Expand Down Expand Up @@ -501,6 +505,11 @@ void PollManager::pollTimerFired()
{
check.push_back(attr.id()); // Only use available attributes

if (cl.id() == BASIC_CLUSTER_ID)
{
continue; // don't rely on reporting
}

NodeValue &val = restNode->getZclValue(clusterId, attrId);

if (lightNode && lightNode->manufacturerCode() == VENDOR_IKEA && val.timestamp.isValid())
Expand Down

0 comments on commit 3615a24

Please sign in to comment.