{"action":"created","issue":{"url":"https://api.github.com/repos/domoticz/domoticz/issues/276","labels_url":"https://api.github.com/repos/domoticz/domoticz/issues/276/labels{/name}","comments_url":"https://api.github.com/repos/domoticz/domoticz/issues/276/comments","events_url":"https://api.github.com/repos/domoticz/domoticz/issues/276/events","html_url":"https://github.com/domoticz/domoticz/issues/276","id":124151636,"number":276,"title":"Update Mysensor TempHum Error","user":{"login":"Spugna85","id":7493858,"avatar_url":"https://avatars.githubusercontent.com/u/7493858?v=3","gravatar_id":"","url":"https://api.github.com/users/Spugna85","html_url":"https://github.com/Spugna85","followers_url":"https://api.github.com/users/Spugna85/followers","following_url":"https://api.github.com/users/Spugna85/following{/other_user}","gists_url":"https://api.github.com/users/Spugna85/gists{/gist_id}","starred_url":"https://api.github.com/users/Spugna85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Spugna85/subscriptions","organizations_url":"https://api.github.com/users/Spugna85/orgs","repos_url":"https://api.github.com/users/Spugna85/repos","events_url":"https://api.github.com/users/Spugna85/events{/privacy}","received_events_url":"https://api.github.com/users/Spugna85/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-12-29T01:58:28Z","updated_at":"2016-01-18T10:21:31Z","closed_at":null,"body":"Hi,\r\n I have a Mysensor physical node (Arduino) with 6 sensor DHT22.\r\nSo I have 12 values, 6 temperature and 6 humidity, so listed:\r\n-Sensor0 (ID=0501): H0 (IDCHILD = 0), T0 (IDCHILD  = 1)\r\n-Sensor1 (ID=0503): H1 (IDCHILD  = 2), T1 (IDCHILD  = 3)\r\n-Sensor2 (ID=0505): H2 (IDCHILD  = 4), T2 (IDCHILD  = 5)\r\n-Sensor3 (ID=0507): H3 (IDCHILD  = 6), T3 (IDCHILD  = 7)\r\n-Sensor4 (ID=0509): H4 (IDCHILD  = 8), T4 (IDCHILD  = 9)\r\n-Sensor5 (ID=050B): H5 (IDCHILD  = 10), T5 (IDCHILD  = 11)\r\n\r\nDomoticz create 6 sensor (Model:Temp + Humidity, subtype:WTGR800).\r\n\r\nEach update temperature (T0 to T5) correctly updates the sensor device in the table.\r\nExample:\r\nT0 updates the temperature of the first sensor (ID: 0501)\r\nT1 updates the temperature of the second sensor (ID: 0503)\r\nand so on...\r\n\r\nWhile each update of humidity (H0 to H5) always updates the first sensor for the node.\r\nExample:\r\nH0 refresh the humidity of the first sensor (ID: 0501)\r\nH1 refresh the humidity of the first sensor (ID: 0501)\r\nand so on...\r\n\r\nI think that the problem is that Domoticz use \"IDCHILD\" temperature as the sensor address for Model \"Temp + Humidity\" and uses the default 0 to update the humidity.\r\n\r\nSo, if I have more sensors, any humidity variation on one of them, generates an incorrect update of the first sensor and a missing update of another sensor.\r\n\r\nWhat do you think?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/domoticz/domoticz/issues/comments/172489150","html_url":"https://github.com/domoticz/domoticz/issues/276#issuecomment-172489150","issue_url":"https://api.github.com/repos/domoticz/domoticz/issues/276","id":172489150,"user":{"login":"Sevift","id":16745506,"avatar_url":"https://avatars.githubusercontent.com/u/16745506?v=3","gravatar_id":"","url":"https://api.github.com/users/Sevift","html_url":"https://github.com/Sevift","followers_url":"https://api.github.com/users/Sevift/followers","following_url":"https://api.github.com/users/Sevift/following{/other_user}","gists_url":"https://api.github.com/users/Sevift/gists{/gist_id}","starred_url":"https://api.github.com/users/Sevift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sevift/subscriptions","organizations_url":"https://api.github.com/users/Sevift/orgs","repos_url":"https://api.github.com/users/Sevift/repos","events_url":"https://api.github.com/users/Sevift/events{/privacy}","received_events_url":"https://api.github.com/users/Sevift/received_events","type":"User","site_admin":false},"created_at":"2016-01-18T10:21:31Z","updated_at":"2016-01-18T10:21:31Z","body":"And what if\r\n_tMySensorChild *pChildHum = FindChildWithValueType(pChild->nodeID, V_HUM, (pChild)->childName);\r\n\r\nand\r\n\r\nMySensorsBase::_tMySensorChild* MySensorsBase::FindChildWithValueType(const int nodeID, const _eSetType valType, const std::string childName)\r\n...\r\nfor (itt = pNode->m_childs.begin(); itt != pNode->m_childs.end(); ++itt)\r\n\t{\r\n\t\tif (itt->childName == childName)\r\n\r\n"}}