Module homey.manager.insights
Classes
class ManagerInsights-
Manages logs in the app's insights. You can access this manager through the Homey instance as
self.homey.insights.Ancestors
- Manager
- SimpleClass
- EventEmitter
- typing.Generic
- abc.ABC
Methods
async def create_log(self, id: str, title: str, units: str | None = None, decimals: int | None = None) ‑> InsightsLog[float]-
Create a numeric insights log.
Args
id- ID of the log, lowercase and alphanumeric.
title- Title of the log.
units- Units of the logged values.
decimals- Visible number of decimals.
Raises
AlreadyExists- Raised if the log ID is already in use.
async def delete_log(self, log: InsightsLog) ‑> None-
Delete the given log.
Args
log- The
InsightsLogto delete.
Raises
NotFound- Raised if no log with the given ID is found.
async def get_log(self, id: str) ‑> InsightsLog-
Get the log with given ID.
Raises
NotFound- Raised if no log with the given ID is found.
async def get_logs(self) ‑> tuple[InsightsLog, ...]-
Get all logs belonging to this app.
Inherited members