junkfix / numberbox-card

Replace input_number sliders with plus and minus buttons
109 stars 9 forks source link

Not working with input_boolean as toggle #111

Closed JCPvanHooren closed 3 months ago

JCPvanHooren commented 3 months ago

Am I right that the 'toggle' function doesn't work with an input_boolean? Could it be enabled to toggle an input_boolean instead of a switch?

I'm trying to build a sleeptimer for my bedroom A/C, hence want the 'toggle' to turn the timer on/off. Since this cannot be done directly with a timer, I'm working with an input_boolean toggle + automation.

ildar170975 commented 3 months ago

See no issues here. изображение

type: entities
entities:
  - type: custom:numberbox-card
    entity: input_number.test_number
    name: toggle
    toggle_entity: input_boolean.test_boolean
  - input_boolean.test_boolean
title: toggle
junkfix commented 3 months ago

should work fine as both has toggle service

JCPvanHooren commented 3 months ago

I must have done something wrong as it didn't work before, but does now. Thanks for checking so quickly and apologies for taking your time for a non-issue.