action truesight_update_energy_cost {
label: "Updates the values of the energy footprint parameter for a specific group."
description: "You need to provide a Device ID:
- use the hardware/groups service to get all available group ID.
If the ID is \"global\", then the group being updated is the GlobalSummary."
provider: truesight
method: PUT
path: "/hardware/groups/{groupId}"
encoding: json
input: {
type: "object"
properties: {
co2Emission: {
type: "number"
format: "double"
description: "Updates the CO2 emission (unit: kg/kWh)."
}
energyCost: {
type: "number"
format: "double"
description: "Updates the electricity rate (unit: $/kWh)."
}
groupId: {
type: "string"
}
groupNameFilter: {
type: "string"
description: "Updates the regular expression used to filter the groups for which the power consumption should be reported."
}
}
required: ["groupId"]
additionalProperties: false
}
output: {
type: "object"
additionalProperties: true
}
}