Skip to content

It is impossible to change the value when using ARC when the value has reached the limit #808

@vasyna

Description

@vasyna

Perform all steps below and tick them with [x]

  • Check the related part of the Documentation
  • Update openHASP to the latest version
  • Reproduce the issue and describe all steps

Describe the bug

It is impossible to change the value when using ARC when the value has reached the limit. There is a number with a minimum limit of 0 and a maximum of 5. Now the number has a value of 1:
1
I move it to 0 and it is no longer possible to return it from 0
0

To Reproduce

          - obj: "p1b91" # Heater on/off button
            properties:
              "bg_color": '{{ "#ffffff" if is_state("input_boolean.heating", "on") else "#000000" }}'
              "bg_opa": '{{ "255" if is_state("input_boolean.heating", "on") else "128" }}'
            event:
              "up":
                - service: input_boolean.toggle
                  target:
                    entity_id: input_boolean.heating
              "hold":
                - service: script.plate01kitchen_thermostat_popup_number
                  data:
                    entity_name: "Режим котла"
                    entity_id: "number.boiler_operating_mode"
                    state_id: "input_boolean.heating"
                    entity_icon: "\uE156"
          - obj: "p0b179" # thermostat popup: temperature meter  (number)
            properties:
              "value_str": "{{ states(states('input_text.plate01kitchen_sel_enity')) | int() }}"
            event:
              "up":
                - service: number.set_value
                  target:
                    entity_id: "{{ tag }}"
                  data:
                    value: "{{ val }}"
      plate01kitchen_thermostat_popup_number:
        mode: single
        fields:
          entity_id:
            name: entity_id
          state_id:
            name: state_id
          entity_name:
            name: entity_name
          entity_icon:
            name: entity_icon
        sequence:
          - service: openhasp.command
            target:
              entity_id: openhasp.plate01kitchen
            data:
              keyword: jsonl
              parameters: >-
                {"page":0,"id":150,"obj":"obj","x":85,"y":90,"w":310,"h":340,"radius":15,"click":true,"border_side":0,"bg_color":"#0B61A4"}
                {"page":0,"id":151,"parentid":150,"obj":"label","x":10,"y":10,"w":48,"h":48,"click":false,"text":"\uE50F","text_font":48,"text_color":"#fff"}
                {"page":0,"id":152,"parentid":150,"obj":"label","x":63,"y":18,"h":28,"w":184,"align":"center","text_color":"#fff","text_font":24,"text":"{{ entity_name }}"}
                {"page":0,"id":153,"parentid":150,"obj":"btn","x":253,"y":10,"w":48,"h":48,"radius":24,"click":true,"border_side":0,"bg_color":"#CCC","text":"{{ entity_icon }}"}
                {"page":0,"id":179,"parentid":150,"obj":"arc","x":30,"y":60,"w":250,"h":250,"start_angle":135,"end_angle":45, 
                "start_angle10":135,"end_angle10":45,"adjustable": true,"bg_color":"#0B61A4","line_color":"#FF0000", "bg_opa": 0, 
                "min":{{ state_attr(entity_id, 'min') | int() }},"max":{{ state_attr(entity_id, 'max') | int() }}, "val":{{ states(entity_id) | int() }}, 
                "value_str":"{{ states(entity_id) | int() }}", "tag":"{{ entity_id }}"}
                {"page":0,"id":178,"parentid":150,"obj":"btn","x":125,"y":230,"w":60,"h":60,"toggle":true, "val": {{ 0 if is_state(state_id, 'off') else 1 }}, 
                "text":"\uE425","align":"center","radius":30,"tag":"{{ state_id }}"}
          - service: input_text.set_value
            data:
              value: "{{ entity_id }}"
            target:
              entity_id: input_text.plate01kitchen_sel_enity
    
          - service: input_text.set_value
            data:
              value: "{{ entity_id }}"
            target:
              entity_id: input_text.plate01kitchen_sel_enity

Expected behavior

I expect that it is possible to change the values ​​even when they are equal to the limits

Screenshots or video

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions