Skip to content

Rotate through a set of the same entities types in a card.

Notifications You must be signed in to change notification settings

kgn3400/carousel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Carousel custom integration helper for Home Assistant

GitHub release (latest by date) GitHub all releases GitHub last commit GitHub code size in bytes Validate% with hassfest

The Carousel integration helper allows you to create a binary_sensor or sensor which rotate through a set of the same type of entities in the same card, with a user defined time interval. if the binary_sensors/sensors set has the same attribute, it's possible to use cards which support showing attributes.

For installation instructions until the Carousel helper is part of HACS, see this guide. Or click My Home Assistant


Configuration

Configuration is setup via UI in Home assistant. To add one, go to Settings > Devices & Services > Helpers and click the add button. Next choose the Carousel helper option. Or click Open your Home Assistant instance and start setting up a new integration.

Config



It's possible to synchronize the rotation between multiple carousels by using the same optional Timer helper. Restarting the Timer helper can be done via the Carousel helper or via an automation

The optional 'show if template' config settings is used to decide if the entity should be shown. The evaluated result should be True for the entity to be included in carousel rotation. Template values = state and dict state_attributes. If there is no entities to show, then the Carousel entity state will be set to unknown. And the state can be used in the conditional card to decide if the card should be shown.


Actions

Available actions: add, remove, show_entity, show_next and show_prev

Action carousel.binary_sensor_add/carousel.sensor_add

Add entity to Carousel helper.

Action carousel.binary_sensor_remove/carousel.sensor_remove

Remove entity from Carousel helper.

Action carousel.binary_sensor_show_next/carousel.sensor_show_next

Show next entity in Carousel helper.

Action carousel.binary_sensor_show_prev/carousel.sensor_show_prev

Show previous ext entity in Carousel helper.

Automation triggers

Carousel starting over

Trigger fired when the carousel starting over with the first entity in the set.