📣 AI-SPEAKER DEV KIT 1

chyba każdy kto coś takiego chciałby dodać powinien być w stanie wyklikać wg własnego pomysłu/potrzeb
na dom-demo pokazujemy taką przykładową kartę - pilot
to jest emulacja przycisków naszego pilota, można to zstosować jako przykład

kartę można edytować w edytorze wizualnym:

albo w yaml:

cards:
  - cards:
      - entity: sensor.ais_drives
        icon: 'mdi:mouse'
        name: ' '
        type: entity-button
      - entity: sensor.ais_drives
        hold_action:
          action: call-service
          service: ais_ai_service.process_code
          service_data:
            text: '{"KeyCode": 19, "Action": 0, "RepeatCount": 1}'
        icon: 'mdi:arrow-up-bold'
        name: ' '
        tap_action:
          action: call-service
          service: ais_ai_service.process_code
          service_data:
            text: '{"KeyCode": 19, "Action": 1}'
        type: entity-button
      - entity: sensor.ais_drives
        icon: 'mdi:menu'
        name: ' '
        tap_action:
          action: call-service
          service: ais_ai_service.process_code
          service_data:
            text: '{"KeyCode": 82, "Action": 1}'
        type: entity-button
    type: horizontal-stack
  - cards:
      - entity: sensor.ais_drives
        hold_action:
          action: call-service
          service: ais_ai_service.process_code
          service_data:
            text: '{"KeyCode": 21, "Action": 0, "RepeatCount": 1}'
        icon: 'mdi:arrow-left-bold'
        name: ' '
        tap_action:
          action: call-service
          service: ais_ai_service.process_code
          service_data:
            text: '{"KeyCode": 21, "Action": 1}'
        type: entity-button
      - entity: sensor.ais_drives
        hold_action:
          action: call-service
          service: ais_ai_service.process_code
          service_data:
            text: '{"KeyCode": 23, "Action": 0, "RepeatCount": 1}'
        icon: 'mdi:circle'
        name: ' '
        tap_action:
          action: call-service
          service: ais_ai_service.process_code
          service_data:
            text: '{"KeyCode": 23, "Action": 0}'
        type: entity-button
      - entity: sensor.ais_drives
        hold_action:
          action: call-service
          service: ais_ai_service.process_code
          service_data:
            text: '{"KeyCode": 22, "Action": 0, "RepeatCount": 1}'
        icon: 'mdi:arrow-right-bold'
        name: ' '
        tap_action:
          action: call-service
          service: ais_ai_service.process_code
          service_data:
            text: '{"KeyCode": 22, "Action": 1}'
        type: entity-button
    type: horizontal-stack
  - cards:
      - entity: sensor.ais_drives
        hold_action:
          action: call-service
          service: ais_ai_service.process_code
          service_data:
            text: '{"KeyCode": 190, "Action": 0, "RepeatCount": 1}'
        icon: 'mdi:home'
        name: ' '
        tap_action:
          action: call-service
          service: ais_ai_service.process_code
          service_data:
            text: '{"KeyCode": 190, "Action": 1}'
        type: entity-button
      - entity: sensor.ais_drives
        hold_action:
          action: call-service
          service: ais_ai_service.process_code
          service_data:
            text: '{"KeyCode": 20, "Action": 0, "RepeatCount": 1}'
        icon: 'mdi:arrow-down-bold'
        name: ' '
        tap_action:
          action: call-service
          service: ais_ai_service.process_code
          service_data:
            text: '{"KeyCode": 20, "Action": 1}'
        type: entity-button
      - entity: sensor.ais_drives
        icon: 'mdi:backup-restore'
        name: ' '
        tap_action:
          action: call-service
          service: ais_ai_service.process_code
          service_data:
            text: '{"KeyCode": 4, "Action": 1}'
        type: entity-button
    type: horizontal-stack
type: vertical-stack


2 polubienia