Quick example of Bond Pro integration card, using some custom cards, YMMV
type: entities
entities:
- entity: light.big_fan
- type: custom:slider-entity-row
entity: fan.big_fan
min: 0
max: 100
step: 16.67
toggle: true
hide_state: true
hide_when_off: true
- type: custom:paper-buttons-row
buttons:
- entity: fan.big_fan
icon: mdi:rotate-right
layout: icon|state
state:
attribute: direction
state_icons:
forward: mdi:rotate-right
reverse: mdi:rotate-left
tap_action:
action: call-service
service: script.fan_direction_toggle
title: Living Room Fan
show_header_toggle: false
and code for the script:
alias: Fan Direction Toggle
sequence:
- if:
- condition: state
entity_id: fan.big_fan
attribute: direction
state: reverse
then:
- action: fan.set_direction
metadata: {}
data:
direction: forward
target:
entity_id: fan.big_fan
else:
- action: fan.set_direction
metadata: {}
data:
direction: reverse
target:
entity_id: fan.big_fan
description: ""
icon: mdi:reload