-
-
Notifications
You must be signed in to change notification settings - Fork 94
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
Tap action on icon issue #990
Comments
Could you make a gif/video from your issue? |
Screen_Recording_20241208_105928_Home.Assistant.mp4Sure see above. The first two actions are hold action and the last two actions are single tap action. |
type: custom:bubble-card
card_type: button
card_layout: large
button_type: name
show_icon: false
show_name: false
sub_button:
- name: Mute
tap_action:
action: toggle
service: input_boolean.toggle
entity: input_boolean.silent_mode
hold_action:
action: more-info
- name: Climate
show_background: false
tap_action:
navigation_path: "#Heatpump"
action: navigate
show_last_changed: false
show_state: false
entity: climate.heat_pump
hold_action:
action: none
- name: Away Mode
show_background: false
tap_action:
action: toggle
navigation_path: "#shopping-list"
entity: input_boolean.away_mode
hold_action:
action: none
- name: Shopping List
icon: mdi:cart-outline
show_background: false
tap_action:
action: navigate
navigation_path: "#shopping-list"
hold_action:
action: none
- name: Security
icon: mdi:cctv
show_background: false
tap_action:
action: navigate
navigation_path: "#security"
hold_action:
action: none
styles: |
.card-content {
width: 100%;
margin: 0 !important;
}
.bubble-button-card-container {
background: none;
}
.bubble-sub-button {
height: 35px !important;
width: 35px !important;
}
.bubble-sub-button-1 {
background-color: ${hass.states['input_boolean.silent_mode'].state !== 'off' ? '#d21f3c' : 'transparent'} !important;
}
.bubble-sub-button-1 {
color: ${hass.states['input_boolean.silent_mode'].state !== 'off' ? 'white' : ''} !important;
${subButtonIcon[0].setAttribute("icon", hass.states['input_boolean.silent_mode'].state === 'off' ? 'mdi:volume-high' : 'mdi:volume-mute')}
}
.bubble-sub-button-2 {
opacity: 1 !important;
background-color: ${hass.states['climate.heat_pump'].state === 'heat' ? '#d22b2b'
: hass.states['climate.heat_pump'].state === 'cool' ? '#ADD8E6'
: hass.states['climate.heat_pump'].state === 'fan_only' ? '#808080'
: ''} !important;
}
.bubble-sub-button-2 {
opacity: 1 !important;
color: ${hass.states['climate.heat_pump'].state === 'heat' ? 'white'
: hass.states['climate.heat_pump'].state === 'cool' ? 'black'
: hass.states['climate.heat_pump'].state === 'fan_only' ? 'white'
: ''} !important;
${subButtonIcon[1].setAttribute("icon", hass.states['climate.heat_pump'].state === 'heat' ? 'mdi:fire' :
hass.states['climate.heat_pump'].state === 'cool' ? 'mdi:snowflake' :
hass.states['climate.heat_pump'].state === 'fan_only' ? 'mdi:fan' :
'mdi:heat-pump-outline')}
}
.bubble-sub-button-3 {
opacity: 1 !important;
background-color: ${hass.states['input_boolean.away_mode'].state === 'on' ? '#52b2bf'
: hass.states['input_boolean.away_mode'].state === 'off' ? ''
: ''} !important;
}
.bubble-sub-button-3 {
opacity: 1 !important;
color: ${hass.states['input_boolean.away_mode'].state === 'on' ? 'white'
: hass.states['input_boolean.away_mode'].state === 'off' ? ''
: ''} !important;
${subButtonIcon[2].setAttribute("icon", hass.states['input_boolean.away_mode'].state === 'off' ? 'mdi:home' : 'mdi:home-export-outline')}
}
.bubble-sub-button-container {
width: 100%;
justify-content: space-between !important;
}
.bubble-sub-button-icon {
--mdc-icon-size: inherit !important;
}
.bubble-name-container {
margin-right: 0px !important;
|
Thank you, have removed the unnecessary lines and added a new card with just the above codes and can confirm that the issue is still persisted. It only started happening last week I believe. Is there anything else there we can try to fix the issue? |
Can you try this:
|
Yes I have and it gave me same behavior |
with hold-action: none ??? |
Hi I just did another test. with hold-action: none, tap_action and double_tap_action work as intended. However when hold_action is set with more-info, those taps will activate the hold_action action. |
Other question, because you tell me you also have this issue when on a pc. |
PC is i3-1115g4 and phone is Samsung Galaxy S23+ Prior to this, I never had this issue. Everything was working as expected and hasn't been fixed until now. Not sure if this is HA OS issue or the bubble card specific issue. |
Hi! I'm also unable to reproduce this issue, have you tried the latest release? (v2.3.4-beta.1) |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
Hi, I just tried the beta version suggested and the problem still persisted. I also have tried to create the silent button only in a new dashboard from scratch, and it is still has the same issue. single tap to the button and it brought me to the more-info screen. my code is below:
|
I'm also getting this. What I'm thinking, there is obviously code which handles the hold action...and I am assuming this is part of Home Assistant, not bubble-card? I had a look in F12 dev and at the src, for the mousedown event for the subbutton. Not sure why it would be ignored/unknown.... Not knowing if this is a bubble-card recent update issue, or a recent HA update issue. This is an OBS recording of the issue (mkv file inside). Ignore the visibly controlled items showing on the right, those appear when the lights are on. It's the default more-info from HA that is now appearing on tap...hold should not be showing it.
|
CC: @reylinux Ok. I resolved this.
|
Note, I cannot get the ios companion HA app to work though...it still exhibits this problem. I tried resetting its front end cache, but that didn't fix it. Going to reinstall the app and see what happens. |
Hi, I tried did the same and still have the same issue. It never fixed it for me. I've uninstalled it altogether and stopped using bubble card |
Sigh, the issue has returned on the browser side again. |
Hi All, i have the same issue, on my Samsung S22 Ultra and on my PCs too. |
@Clooos Something in the tap-action.js is triggering the 'hold' timer. You can see (after it has performed the tap), it thinks it needs to perform the 'hold' !== 'none'. Is the timer finishing too quickly? |
This issue is in my priorities for the next release, thank you for all your feedback! |
- [x] Added js-yaml as dependency - [x] Editor styling improvements #1214 - [x] Link to share modules on GitHub in the editor - [x] Rename bubble-custom to bubble-module - [x] Get modules config from this.config - [x] Review ha-alert (alert when not copied in the right folder) - [x] Fixed an issue with modules in combination with the text scrolling effect - [x] Attempt to fix « Tap action on icon issue #990 » - [x] No need to clear cache anymore to apply module modifications - [x] Custom templates can be now placed anywhere and not only after custom styles - [x] Fixed some styling issues in the Home Assistant default styling module - [x] Fixed the pop-up compatibility with the new custom styles system - [x] Fixed some incompatibility issues in the cleanCSS function - [x] Better « How to use » in bubble-modules.yaml - [x] The new custom styles/template system handle name/state changes correctly - [x] And maybe more…
Hi everyone here, I've tried to fix this in the latest betas, can anyone tell me if it's now working as expected? Because I was unable to reproduce this, and I'm still unsure of what is causing this. https://github.com/Clooos/Bubble-Card/releases/tag/v2.5.0-beta.5 |
Installed the beta, restarted HA, Screen_Recording_20250215_130841_Home.Assistant.mp4 |
Yea still not working
When this hold_action is set, clicking the button kicks off the toggle AND the more-info. |
Describe the bug
I have sub-buttons and set up a tap for toggle and hold for more info. After the latest update, both actions are done together. So the button will toggle and go to the entity details. It used to only toggle when one single tap is made. It also is the same behavior for navigate. It navigates to the correct directory then open the entity details
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Tap action for toggle should toggle the button, not toggle then go to the specific entity.
YAML
Additional comments
For the above code, when I click the Mute button, it toggles the input_boolean.silent_mode and go to that entity details
Information (please complete the following information):
Thank you! 🍻
The text was updated successfully, but these errors were encountered: