![Game time left](./screenshots/game-time-left.png)
```yaml
type: 'custom:elapsed-time-card'
format: Time Left
time_format: 1h 5m
time_today: sensor.ps4_playing_game
max_today: input_datetime.ps4_game_time
name: Game time left
icon: sony-playstation
```
### Editor examples
![Game time left - Editor 1](./screenshots/game-time-left-editor-1.png)
![Game time left - Editor 2](./screenshots/game-time-left-editor-2.png)
### Panel example
![Time Cards and history example](./screenshots/time-cards-and-history-example.png)
```yaml
type: horizontal-stack
cards:
- type: vertical-stack
title: Today elapsed
cards:
- format: Time Elapsed
time_format: 1h 5m
type: 'custom:elapsed-time-card'
name: Played total
icon: gamepad-variant
time_today: sensor.ps4_playing_game
- format: Time Elapsed
time_format: 1h 5m
type: 'custom:elapsed-time-card'
name: Watched total
icon: youtube
time_today: sensor.ps4_playing_app
- format: Time Elapsed
time_format: 1h 5m
type: 'custom:elapsed-time-card'
name: Screentime total
icon: monitor-eye
time_today: sensor.ps4_playing
- type: vertical-stack
title: Today left
cards:
- format: Time Left
time_format: 1h 5m
type: 'custom:elapsed-time-card'
name: Game time left
icon: gamepad-variant
time_today: sensor.ps4_playing_game
max_today: input_datetime.ps4_game_time
- format: Time Left
time_format: 1h 5m
type: 'custom:elapsed-time-card'
name: Videos left
icon: youtube
time_today: sensor.ps4_playing_app
max_today: input_datetime.ps4_vod_time
- format: Time Left
time_format: 1h 5m
type: 'custom:elapsed-time-card'
name: Screentime left
icon: monitor-eye
time_today: sensor.ps4_playing
max_today: sensor.ps4_playing
- type: vertical-stack
title: Today total
cards:
- format: Time Elapsed
time_format: '01:05'
type: 'custom:elapsed-time-card'
name: Played total
icon: gamepad-variant
max_today: input_datetime.ps4_game_time
time_today: sensor.ps4_playing_game
- format: Time Elapsed
time_format: '01:05'
type: 'custom:elapsed-time-card'
name: Watched total
icon: youtube
time_today: sensor.ps4_playing_app
max_today: input_datetime.ps4_vod_time
- format: Time Elapsed
time_format: '01:05'
type: 'custom:elapsed-time-card'
name: Screentime total
icon: monitor-eye
time_today: sensor.ps4_playing
- type: vertical-stack
title: This week elapsed
cards:
- format: Time Elapsed
time_format: 1h 5m
type: 'custom:elapsed-time-card'
name: Played total
icon: gamepad-variant
time_today: sensor.ps4_weekly_game
- format: Time Elapsed
time_format: 1h 5m
type: 'custom:elapsed-time-card'
name: Watched total
icon: youtube
time_today: sensor.ps4_weekly_app
- format: Time Elapsed
time_format: 1h 5m
type: 'custom:elapsed-time-card'
name: Screentime total
icon: monitor-eye
time_today: sensor.ps4_weekly_playing
- type: vertical-stack
title: This week elapsed
cards:
- format: Time Elapsed
time_format: '01:05'
type: 'custom:elapsed-time-card'
name: Played total
icon: gamepad-variant
time_today: sensor.ps4_weekly_game
- format: Time Elapsed
time_format: '01:05'
type: 'custom:elapsed-time-card'
name: Watched total
icon: youtube
time_today: sensor.ps4_weekly_app
- format: Time Elapsed
time_format: '01:05'
type: 'custom:elapsed-time-card'
name: Screentime total
icon: monitor-eye
time_today: sensor.ps4_weekly_playing
```
With the entities above, you can use this configuration:
```yaml
format: Time Elapsed
time_format: '01:05'
type: 'custom:elapsed-time-card'
name: Played total
icon: gamepad-variant
max_today: input_datetime.ps4_game_time
time_today: sensor.ps4_playing_game
```
And it will look like:
![Cartoons Watched](./screenshots/example_screenshot_1.png)
## Notice
The card will show only entities that:
- have `unit_of_measurement` one of the following (i.e. `input_number`, etc.):
- `s` = seconds
- `m` = minutes
- `h` = hours
- `d` = days
- have one of the following attributes (i.e. `input_datetime`):
- `has_time`
- `has_date`