| document type | cmdlet |
|---|---|
| external help file | PSTibber-Help.xml |
| HelpUri | https://developer.tibber.com/docs/reference#consumption |
| Locale | sv-SE |
| Module Name | PSTibber |
| ms.date | 09-19-2025 |
| PlatyPS schema version | 2024-05-01 |
| title | Get-TibberConsumption |
Get the visible home(s) power consumption.
Get-TibberConsumption [-Resolution <string>] [-From <datetime>] [-To <datetime>] [-Last <int>]
[-FilterEmptyNodes] [-Fields <string[]>] [<CommonParameters>]
Get-TibberConsumption -HomeId <string> [-Resolution <string>] [-From <datetime>] [-To <datetime>]
[-Last <int>] [-FilterEmptyNodes] [-Fields <string[]>] [<CommonParameters>]
This cmdlet has the following aliases, {{Insert list of aliases}}
Calling this function will return the visible home(s) power consumption.
$response = Get-TibberConsumption -Last 10
$maxCons = $response | Sort-Object -Property consumption -Descending | Select-Object -First 1
Write-Host "Max power consumption $(
Get-TibberConsumption -From ([DateTime]::Now).AddHours(-10)
{{ Fill DebugResponse Description }}
Type: System.Management.Automation.SwitchParameter
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''Specifies the fields to return.
Type: System.String[]
DefaultValue: >-
@(
'from'
'to'
'unitPrice'
'unitPriceVAT'
'consumption'
'consumptionUnit'
'cost'
'currency'
)
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''Switch to filter out empty nodes (i.e. consumption is '0') from results.
Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''{{ Fill Force Description }}
Type: System.Management.Automation.SwitchParameter
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''Specifies the start date for nodes to include in results.
Type: System.DateTime
DefaultValue: ''
SupportsWildcards: false
Aliases:
- After
- Start
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''Specifies the home Id, e.g. '96a14971-525a-4420-aae9-e5aedaa129ff'.
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases:
- Id
ParameterSets:
- Name: HomeId
Position: Named
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''Specifies the number of nodes to include in results, counting back from the latest entry.
Type: System.Int32
DefaultValue: 1
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''{{ Fill PersonalAccessToken Description }}
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases:
- PAT
- AccessToken
- Token
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''Specifies the resoluton of the results.
Type: System.String
DefaultValue: HOURLY
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''Specifies the end date for nodes to include in results. Providing a date only, e.g. '2023-10-31', will set the time to 23:59:59.
Type: System.DateTime
DefaultValue: '[DateTime]::Now'
SupportsWildcards: false
Aliases:
- End
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''{{ Fill URI Description }}
Type: System.Uri
DefaultValue: ''
SupportsWildcards: false
Aliases:
- URL
ParameterSets:
- Name: URI
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''{{ Fill UserAgent Description }}
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
{{ Fill in the Description }}
{{ Fill in the Description }}
{{ Fill in the Description }}
{{ Fill in the Description }}