Skip to content

Commit

Permalink
Update vertical button card to support more toggle
Browse files Browse the repository at this point in the history
Add support for fans, vacuums and scripts.
  • Loading branch information
valentinilk committed Aug 21, 2023
1 parent 577ccbd commit 37c8ff6
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ card_vertical_button:
return "automation.toggle";
if( entity.entity_id.startsWith("input_button.") )
return "input_button.press";
if( entity.entity_id.startsWith("fan.") )
return "fan.toggle";
if( entity.entity_id.startsWith("vacuum.") )
return "vacuum.toggle";
if( entity.entity_id.startsWith("script.") )
return "script.toggle";
// If we need to support other entities we can add these options here.
return "";
]]]
Expand Down

0 comments on commit 37c8ff6

Please sign in to comment.