另外新建一个manual card,格式 如下
cards:
- cards:
- color: 'rgb(255, 100, 100)'
entity: null
icon: 'mdi:power'
show_name: false
styles:
card:
- height: 65px
- width: 65px
tap_action:
action: call-service
service: mqtt.publish
service_data:
payload: power
topic: homeassistant/remote/GIMI
type: 'custom:button-card'
- color_type: blank-card
type: 'custom:button-card'
- color_type: blank-card
type: 'custom:button-card'
- color: 'rgb(255, 100, 100)'
entity: null
icon: 'mdi:menu-up'
show_name: false
styles:
card:
- height: 65px
- width: 65px
tap_action:
action: call-service
service: mqtt.publish
service_data:
payload: up
topic: homeassistant/remote/GIMI
type: 'custom:button-card'
- color_type: blank-card
type: 'custom:button-card'
- color_type: blank-card
type: 'custom:button-card'
- color: 'rgb(255, 100, 100)'
entity: null
icon: 'mdi:home'
styles:
card:
- height: 65px
- width: 65px
tap_action:
action: call-service
service: mqtt.publish
service_data:
payload: home
topic: homeassistant/remote/GIMI
type: 'custom:button-card'
type: horizontal-stack
- cards:
- color: 'rgb(255, 100, 100)'
entity: null
icon: 'mdi:settings'
styles:
card:
- height: 65px
- width: 65px
tap_action:
action: call-service
service: mqtt.publish
service_data:
payload: set_up
topic: homeassistant/remote/GIMI
type: 'custom:button-card'
- color_type: blank-card
type: 'custom:button-card'
- color: 'rgb(255, 100, 100)'
entity: null
icon: 'mdi:menu-left'
show_name: false
styles:
card:
- height: 65px
- width: 65px
tap_action:
action: call-service
service: mqtt.publish
service_data:
payload: left
topic: homeassistant/remote/GIMI
type: 'custom:button-card'
- color: 'rgb(255, 100, 100)'
color_type: card
entity: null
icon: 'mdi:play-pause'
name: OK
show_icon: false
styles:
card:
- height: 65px
- width: 65px
tap_action:
action: call-service
service: mqtt.publish
service_data:
payload: pause&play
topic: homeassistant/remote/GIMI
type: 'custom:button-card'
- color: 'rgb(255, 100, 100)'
entity: null
icon: 'mdi:menu-right'
show_name: false
styles:
card:
- height: 65px
- width: 65px
tap_action:
action: call-service
service: mqtt.publish
service_data:
payload: right
topic: homeassistant/remote/GIMI
type: 'custom:button-card'
- color_type: blank-card
type: 'custom:button-card'
- color: 'rgb(255, 100, 100)'
entity: null
icon: 'mdi:menu'
styles:
card:
- height: 65px
- width: 65px
tap_action:
action: call-service
service: mqtt.publish
service_data:
payload: menu
topic: homeassistant/remote/GIMI
type: 'custom:button-card'
type: horizontal-stack
- cards:
- color: 'rgb(255, 100, 100)'
entity: null
icon: 'mdi:keyboard-backspace'
styles:
card:
- height: 65px
- width: 65px
tap_action:
action: call-service
service: mqtt.publish
service_data:
payload: back
topic: homeassistant/remote/GIMI
type: 'custom:button-card'
- color_type: blank-card
type: 'custom:button-card'
- color: 'rgb(255, 100, 100)'
color_type: card
icon: 'mdi:volume-plus'
styles:
card:
- height: 65px
- width: 65px
tap_action:
action: call-service
service: mqtt.publish
service_data:
payload: vol+
topic: homeassistant/remote/GIMI
type: 'custom:button-card'
- color: 'rgb(255, 100, 100)'
entity: null
icon: 'mdi:menu-down'
show_name: false
styles:
card:
- height: 65px
- width: 65px
tap_action:
action: call-service
service: mqtt.publish
service_data:
payload: down
topic: homeassistant/remote/GIMI
type: 'custom:button-card'
- color: 'rgb(255, 100, 100)'
color_type: card
icon: 'mdi:volume-minus'
styles:
card:
- height: 65px
- width: 65px
tap_action:
action: call-service
service: mqtt.publish
service_data:
payload: vol-
topic: homeassistant/remote/GIMI
type: 'custom:button-card'
- color_type: blank-card
type: 'custom:button-card'
- color: 'rgb(255, 100, 100)'
entity: null
icon: 'mdi:volume-mute'
styles:
card:
- height: 65px
- width: 65px
tap_action:
action: call-service
service: mqtt.publish
service_data:
payload: mute
topic: homeassistant/remote/GIMI
type: 'custom:button-card'
type: horizontal-stack
type: vertical-stack
|