1284 } |
1284 } |
1285 } |
1285 } |
1286 |
1286 |
1287 if (unit->beer_address) { |
1287 if (unit->beer_address) { |
1288 rc = device_in(unit->beer_address, &temp); |
1288 rc = device_in(unit->beer_address, &temp); |
|
1289 if ((rc == DEVPRESENT_NO) && unit->beer_address2) { |
|
1290 /* Read alternative sensor */ |
|
1291 rc = device_in(unit->beer_address2, &temp); |
|
1292 } |
1289 if (rc == DEVPRESENT_YES) { |
1293 if (rc == DEVPRESENT_YES) { |
1290 if (unit->beer_temperature != temp) { |
1294 if (unit->beer_temperature != temp) { |
1291 unit->mqtt_flag |= MQTT_FLAG_DATA; |
1295 unit->mqtt_flag |= MQTT_FLAG_DATA; |
1292 // pub_domoticz_temp(unit->beer_idx, temp); |
1296 // pub_domoticz_temp(unit->beer_idx, temp); |
1293 } |
1297 } |