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

input_number does not seem to be valid in v1.12.0 #63

Closed
2 tasks done
danielbrunt57 opened this issue Aug 16, 2023 · 12 comments
Closed
2 tasks done

input_number does not seem to be valid in v1.12.0 #63

danielbrunt57 opened this issue Aug 16, 2023 · 12 comments
Labels
bug Something isn't working

Comments

@danielbrunt57
Copy link

Checklist:

  • I updated to the latest version available
  • I cleared the cache of my browser

Release with the issue:
v1.12.0
image

Last working release (if known):
n/a

Browser and Operating System:
MS Edge / Windows 11 Professional

Description of problem:
image

Additional information:

type: vertical-stack
cards:
  - type: entities
    entities:
      - entity: cover.bedroom_blind
        type: custom:multiple-entity-row
        name: Bedroom
        show_state: false
        entities:
          - entity: input_number.bedroom_blind
            name: Preset
          - entity: sensor.bedroom_blind_battery
            name: Battery
          - entity: sensor.bedroom_blind_battery
            name: false
            icon: true
    show_header_toggle: false
    state_color: false
    card_mod:
      class: inline-card
  - type: custom:slider-button-card
    slider:
      direction: bottom-top
      background: gradient
      attribute: tilt
      use_state_color: true
      use_percentage_bg_opacity: true
      toggle_on_click: false
      show_track: true
      force_square: false
      invert: true
    action_button:
      mode: toggle
      show: false
    icon:
      show: false
    entity: cover.bedroom_blind
    show_state: true
    compact: tr
    show_name: false
    name: Bedroom
  - type: custom:slider-button-card
    slider:
      direction: left-right
      background: gradient
      use_state_color: false
      use_percentage_bg_opacity: false
      toggle_on_click: false
      show_track: false
      force_square: false
      invert: false
    icon:
      show: false
    entity: input_number.bedroom_blind
    show_state: true
    compact: true
    show_name: false
    name: Bedroom
@danielbrunt57 danielbrunt57 added the bug Something isn't working label Aug 16, 2023
@rohankapoorcom
Copy link
Member

Hah - you are fast! You caught me between the merge and the publish & release. I intend to release this tomorrow alongside support for number entities.

@danielbrunt57
Copy link
Author

LOL! I was flipping back and forth between the main repo and your pull version and wasn't sure where to post, or what my problem was, since the main repo docs showed input_number! No worries, I'll sleep on it!!

@danielbrunt57
Copy link
Author

image

@rohankapoorcom
Copy link
Member

Wow. I have no idea why there is a PR from the main branch on custom-cards/slider-button-card back to mattieha/slider-button-card's repo. mattieha#205. Looks like it's creating a lot of noise in your email!

@danielbrunt57
Copy link
Author

danielbrunt57 commented Aug 16, 2023

I don't mind the noise per-se but I'm certainly confused now! I was originally asked quite some time ago to create a PR for my Venetian Blind support mattieha#205 which I did, and left it open but I had no idea how to implement it. Then you seemed to start working on it and I now have all these notifications about my PR! Weird!

@danielbrunt57
Copy link
Author

image

@rohankapoorcom
Copy link
Member

Maybe you picked the wrong branch? It looks like that PR is trying to merge the main branch from this repo into the original repo (mattieha's repo). So every time I merge something into the main branch here, it's getting appended to your PR.

@rohankapoorcom
Copy link
Member

Going back to your original note in this issue though: I've just pushed out v1.13.0 - https://github.com/custom-cards/slider-button-card/releases/tag/v1.13.0. Once that builds (about 2 minutes), you should be able to test out input_number and number support!

@danielbrunt57
Copy link
Author

danielbrunt57 commented Aug 16, 2023 via email

@danielbrunt57
Copy link
Author

danielbrunt57 commented Aug 16, 2023 via email

@rohankapoorcom
Copy link
Member

Have you confirmed you've cleared your cache? When you load the page with the developer tools in your browser open, it should output the card name and version. Are you seeing v1.13.0 there?

image

Here's an example that's working for me:
image

type: custom:slider-button-card
entity: input_number.volume_increment
slider:
  direction: left-right
  background: gradient
  use_state_color: false
  use_percentage_bg_opacity: false
  show_track: false
  toggle_on_click: false
  force_square: false
show_name: true
show_state: true
compact: false
icon:
  show: true
  use_state_color: true
  tap_action:
    action: more-info
  icon: ''
action_button:
  mode: toggle
  icon: mdi:power
  show: true
  show_spinner: true
  tap_action:
    action: toggle
show_attribute: false
name: Input Number Test

@danielbrunt57
Copy link
Author

danielbrunt57 commented Aug 16, 2023

I had tried shift+reload page, Settings -> Privacy -> Clear browsing data -> Cached images and file,, killed Edge and restarted it
but problem persisted. I just checked Chrome and it's okay. So this time I did shift+reload page, Settings -> Privacy -> Clear browsing data -> Cached images and files & also Clear browing data for Internet Explorer -> Temporary internet files, killed Edge and restarted it and now it's okay.

image

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