I’m trying to use a global var for the max_value of a number component.
But getting always the error “expected float”
globals:
- id: current_max_value
type: float
restore_value: no
initial_value: '10.0'
number:
- platform: template
name: "Current"
id: set_current
icon: mdi:arrow-oscillating
min_value: 6
max_value: ${current_max_value}
step: 1
optimistic: false
lambda: |-