joBr99 / nspanel-lovelace-ui

Custom Firmware for NsPanel with the design of HomeAssistant's lovelace UI in mind, works with Tasmota.
GNU General Public License v3.0
854 stars 187 forks source link

[BUG] climate protection card with pin #1199

Closed meautomatron closed 3 months ago

meautomatron commented 3 months ago

PROBLEM DESCRIPTION

A clear and concise description of what the problem is. I'm trying to hide the climate card with a password to prevent it from being accessed by children, after entering the password climate card appears but with the value 0

REQUESTED INFORMATION

Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!

- [ ] Go to Settings>Add-ons>AppDaemon>Log (or the output of your TS script) and then, provide the output of the log during your issue/bug occurs:

Log output here:


### TO REPRODUCE
_Steps to reproduce the behavior:_
I chanched:
cards:
  - type: cardThermo
    title: Living
    entity: climate.livingroom
    tMainText: red
to
cards:
  - type: cardUnlock
    pin: 1234
    title: Admin Page
    destination: navigate.adminpage
hiddenCards:
  - type: cardThermo
    title: Admin Page
    key: adminpage
    entities:
      - entity: climate.livingroom

### EXPECTED BEHAVIOUR
_A clear and concise description of what you expected to happen._

### SCREENSHOTS
_If applicable, add screenshots/pictures to help explain your problem._
![IMG_4476](https://github.com/joBr99/nspanel-lovelace-ui/assets/145709692/596066c0-fdb7-480a-8f53-fb0046391027)

### ADDITIONAL CONTEXT
_Add any other context about the problem here._
_Please note here in case you are using ioBroker_

### PANEL / FIRMWARE VERSION
_Please add the Panel/Firmware Version you are using (EU, US-L or US-P)_
joBr99 commented 3 months ago

Hey try to change your config to this:

    cards:
      - type: cardUnlock
        pin: 1234
        title: Admin Page
        destination: navigate.adminpage
    hiddenCards:
      - type: cardThermo
        title: Living
        key: adminpage
        entity: climate.livingroom
        tMainText: red
meautomatron commented 3 months ago

the problem was solved with this code, thanks