You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
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()))
|