@@ -193,7 +193,7 @@ void MySensorsBase::SendSensor2Domoticz(const _tMySensorNode *pNode, const _tMyS
193
193
if (pSensorBaro->floatValue < 1010 )
194
194
forecast = bmpbaroforecast_rain;
195
195
}
196
- SendTempHumBaroSensor (pSensor-> nodeID , pSensor->childID , pSensor->floatValue , pSensorHum->intvalue , pSensorBaro->floatValue , forecast);
196
+ SendTempHumBaroSensor (cNode , pSensor->batValue , pSensor->floatValue , pSensorHum->intvalue , pSensorBaro->floatValue , forecast);
197
197
}
198
198
}
199
199
else if (pSensorHum) {
@@ -225,7 +225,8 @@ void MySensorsBase::SendSensor2Domoticz(const _tMySensorNode *pNode, const _tMyS
225
225
{
226
226
if (pSensorTemp->bValidValue && pSensorBaro->bValidValue )
227
227
{
228
- SendTempHumBaroSensor (pSensorTemp->nodeID , pSensorTemp->childID , pSensorTemp->floatValue , pSensor->intvalue , pSensorBaro->floatValue , forecast);
228
+ cNode = (pSensorTemp->nodeID << 8 ) | pSensorTemp->childID ;
229
+ SendTempHumBaroSensor (cNode, pSensorTemp->batValue , pSensorTemp->floatValue , pSensor->intvalue , pSensorBaro->floatValue , forecast);
229
230
}
230
231
}
231
232
else if (pSensorTemp) {
@@ -258,7 +259,8 @@ void MySensorsBase::SendSensor2Domoticz(const _tMySensorNode *pNode, const _tMyS
258
259
{
259
260
if (pSensorTemp->bValidValue && pSensorHum->bValidValue )
260
261
{
261
- SendTempHumBaroSensor (pSensorTemp->nodeID , pSensorTemp->childID , pSensorTemp->floatValue , pSensorHum->intvalue , pSensor->floatValue , forecast);
262
+ cNode = (pSensorTemp->nodeID << 8 ) | pSensorTemp->childID ;
263
+ SendTempHumBaroSensor (cNode, pSensorTemp->batValue , pSensorTemp->floatValue , pSensorHum->intvalue , pSensor->floatValue , forecast);
262
264
}
263
265
}
264
266
else
0 commit comments