Closed jekalmin closed 4 months ago
- spec: name: get_energy_statistic_ids description: Get statistics parameters: type: object properties: dummy: type: string description: Nothing function: type: composite sequence: - type: native name: get_energy response_variable: result - type: template value_template: "{{result.device_consumption | map(attribute='stat_consumption') | list}}"
- spec: name: get_statistics description: Get statistics parameters: type: object properties: start_time: type: string description: The start datetime end_time: type: string description: The end datetime statistic_ids: type: array items: type: string description: The statistic ids period: type: string description: The period enum: - day - week - month required: - start_time - end_time - statistic_ids - period function: type: native name: get_statistics
Objective
Example
Function
get_energy_statistic_ids
get_statistics