Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Action button.turn_off not found. #1882

Open
NickyNOS opened this issue Feb 10, 2025 · 2 comments
Open

Action button.turn_off not found. #1882

NickyNOS opened this issue Feb 10, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@NickyNOS
Copy link

Checklist:

[REQUIRED] Card diagnostic information:

card_version: 7.0.0
browser: >-
  Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like
  Gecko) Chrome/132.0.0.0 Safari/537.36
date: 2025-02-10T11:30:12.314Z
lang: en
timezone: Europe/Berlin
git:
  hash: cc376a8
  build_date: Fri, 07 Feb 2025 03:33:44 GMT
  commit_date: Thu, 6 Feb 2025 19:32:32 -0800
ha_version: 2025.2.1
custom_integrations:
  frigate:
    detected: false
  hass_web_proxy:
    detected: false
config:
  type: custom:advanced-camera-card
  cameras:
    - camera_entity: camera.baby_watch_live_view
  status_bar: {}
  actions:
    double_tap_action:
      action: custom:advanced-camera-card-action
      advanced_camera_card_action: fullscreen
  elements:
    - type: custom:advanced-camera-card-menu-icon
      entity: button.baby_watch_pan_right
      icon: mdi:pan-left
      name: Pan left
      tap_action:
        action: toggle
    - type: custom:advanced-camera-card-menu-icon
      entity: button.baby_watch_tilt_up
      icon: mdi:pan-up
      name: Tilt up
      tap_action:
        action: toggle
      show_state: true
    - type: custom:advanced-camera-card-menu-icon
      entity: button.baby_watch_pan_left
      icon: mdi:pan-right
      name: Pan right
      tap_action:
        action: toggle
    - type: custom:advanced-camera-card-menu-icon
      entity: button.baby_watch_tilt_down
      hold_action:
        action: more-info
      icon: mdi:pan-down
      name: Tilt down
      tap_action:
        action: toggle
      double_tap_action:
        action: more-info
    - type: custom:advanced-camera-card-menu-icon
      entity: number.baby_watch_pan_degrees
      name: Degrees
      double_tap_action:
        action: toggle
      icon: mdi:pan-horizontal
    - type: custom:advanced-camera-card-menu-icon
      entity: number.baby_watch_tilt_degrees
      name: Tilt degrees
      icon: mdi:pan-vertical

[REQUIRED] Description of problem:

When I click in the button to tilt, it shows Action button.turn_off not found.

Image

[OPTIONAL] Last working release (if known):

[OPTIONAL] Javascript errors shown in the web inspector:

dwains-dashboard-layout.js:44  DWAINS-DASHBOARD-JS  Version 3.7.1
dwains-dashboard.js:92 Starting Dwains Dashboard
timer-bar-card.js?hacstag=3769045171310:590  TIMER-BAR-CARD  Version 1.31.0 
card-mod.js?hacstag=190927524344:1 CARD-MOD 3.4.4 IS INSTALLED
card-mod.js?hacstag=190927524344:1 You may not be getting optimal performance out of card-mod.
See https://github.com/thomasloven/lovelace-card-mod#performance-improvements
mini-graph-card-bundle.js?hacstag=1512800620121:1  MINI-GRAPH-CARD  0.12.1 
bubble-card.js?hacstag=680112919240:1445  Bubble Card  v2.4.0 
card-bc00afb6.js:604  📷 Advanced Camera Card  7.0.0 
hass-hue-icons.js?hacstag=3844345221253:2074  HASS-HUE-ICONS  Version 1.2.53 
mushroom.js?hacstag=444350375421:309 🍄 Mushroom 🍄 - 4.2.1
connection-mixin.ts:157  Uncaught (in promise) {code: 'not_found', message: 'Service button.turn_off not found.', translation_key: 'service_not_found', translation_placeholders: {…}, translation_domain: 'homeassistant'}code: "not_found"message: "Service button.turn_off not found."translation_domain: "homeassistant"translation_key: "service_not_found"translation_placeholders: domain: "button"service: "turn_off"[[Prototype]]: Object[[Prototype]]: Object
callService @ connection-mixin.ts:157
await in callService
(anonymous) @ card-bc00afb6.js:75
tt @ card-bc00afb6.js:75
nt @ card-bc00afb6.js:75
execute @ card-bc00afb6.js:83
execute @ card-bc00afb6.js:88
executeActions @ card-bc00afb6.js:88
Cb.handleActionExecutionRequestEvent @ card-bc00afb6.js:88
Gg @ card-bc00afb6.js:75
Jx @ card-bc00afb6.js:119
actionHandler @ card-bc00afb6.js:119
(anonymous) @ card-bc00afb6.js:177
handleEvent @ card-bc00afb6.js:18
Je @ card-bc00afb6.js:75
i @ card-bc00afb6.js:75

[OPTIONAL] Additional information:
It works when I use the button as a button, in other interfaces.

@NickyNOS NickyNOS added the bug Something isn't working label Feb 10, 2025
@dermotduffy
Copy link
Owner

It works when I use the button as a button, in other interfaces.

Can you clarify what this statement means? What other interfaces?

It's interesting that your config doesn't actually refer to button.turn_off, yet that is what is failing.

@NickyNOS
Copy link
Author

Like in bubble card:

type: custom:bubble-card
card_type: button
button_type: state
sub_button:
  - entity: button.baby_watch_pan_right
    icon: mdi:pan-left
    name: Pan left
    tap_action:
      action: toggle
  - entity: button.baby_watch_tilt_up
    icon: mdi:pan-up
    name: Tilt up
    tap_action:
      action: toggle
    show_state: false
  - entity: button.baby_watch_pan_left
    icon: mdi:pan-right
    name: Pan right
    tap_action:
      action: toggle
  - entity: button.baby_watch_tilt_down
    hold_action:
      action: more-info
    icon: mdi:pan-down
    name: Tilt down
    tap_action:
      action: toggle
    double_tap_action:
      action: more-info
  - entity: number.baby_watch_pan_degrees
    name: Degrees
    double_tap_action:
      action: toggle
    icon: mdi:pan-horizontal
  - entity: number.baby_watch_tilt_degrees
    name: Tilt degrees
    icon: mdi:pan-vertical
card_layout: large-2-rows
entity: switch.baby_watch
name: Control
grid_options:
  columns: full
icon: mdi:video
show_attribute: false

From here it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants