flexmeasures.data.services.sensors

Functions

flexmeasures.data.services.sensors.get_sensors(account: Account | list[Account] | None, include_public_assets: bool = False, sensor_id_allowlist: list[int] | None = None, sensor_name_allowlist: list[str] | None = None) list[Sensor]

Return a list of Sensor objects that belong to the given account, and/or public sensors.

Parameters:
  • account – select only sensors from this account (or list of accounts)

  • include_public_assets – if True, include sensors that belong to a public asset

  • sensor_id_allowlist – optionally, allow only sensors whose id is in this list

  • sensor_name_allowlist – optionally, allow only sensors whose name is in this list