I upgraded to the MultiTool plugin to 2022.1.8. But I don't see the Battery Level monitor in the drop-down menu. How do I enable this feature?
[Moderator's Note: moves topic to the Multitool plugin forum.]
Multitool ======================================= Battery Level Report =======================================
Multitool Basement - Flood (Water) |--------------------------------------------------| 100%
Multitool Basement - Smoke |--------------------------------------------------| 100%
Multitool Foyer - Smoke (Main Floor) |--------------------------------------------------| 100%
Multitool Foyer - Smoke (Upstairs) |--------------------------------------------------| 100%
Multitool Garage - Motion |--------------------------------------------------| 100%
Multitool Garage - Side Door |--------------------------------------------------| 100%
Multitool Guest Bedroom - Motion |-----------------------------| 59%
Multitool Main Attic - Motion |--------------------------------------------------| 100%
Multitool Master Bathroom - Motion |----------------------------------| 69%
Multitool Master Bedroom - Motion |----------------------------------------------| 93%
Multitool Master Closet - Motion |------------------------------------------| 84%
Multitool Office - Motion |-----------------------------| 59%
Multitool Outdoor - Luminance |-------------------------| 50%
Multitool Parlor - Motion |--------------------------------------------------| 100%
target_level = int(indigo.variables[VARIABLE ID NUMBER].value) # lowBatteryLevel
email_address = indigo.variables[VARIABLE ID NUMBER].value # "notificationEmailAddress"
email_body = ""
for dev in indigo.devices.itervalues():
if dev.batteryLevel:
if dev.batteryLevel <= target_level:
email_body += f"{dev.name} battery level: {dev.batteryLevel}\n"
if email_body != "":
email_body = "The following Indigo devices have low battery levels:\n" + email_body
indigo.server.sendEmailTo(email_address, subject="Indigo Low Battery Alert", body=email_body)
Users browsing this forum: No registered users and 4 guests