sipp11
7 years ago
1 changed files with 19 additions and 0 deletions
@ -0,0 +1,19 @@ |
|||||||
|
from .mijia.mijia.mijia_poller import MijiaPoller, \ |
||||||
|
MI_HUMIDITY, MI_TEMPERATURE, MI_BATTERY |
||||||
|
from .miflora.miflora.miflora_poller import MiFloraPoller, \ |
||||||
|
MI_CONDUCTIVITY, MI_MOISTURE, MI_LIGHT |
||||||
|
|
||||||
|
|
||||||
|
poller = MiFloraPoller("C4:7C:8D:66:2B:80") |
||||||
|
|
||||||
|
print("Mi Flora: " + address) |
||||||
|
print("Firmware: {}".format(poller.firmware_version())) |
||||||
|
print("Name: {}".format(poller.name())) |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
poller = MijiaPoller("4C:65:A8:D5:66:D4") |
||||||
|
|
||||||
|
print("Mijia: " + address) |
||||||
|
print("Firmware: {}".format(poller.firmware_version())) |
||||||
|
print("Name: {}".format(poller.name())) |
Loading…
Reference in new issue