@atterberg wrote:
Hi.
I have a input_number that I want to use to set brightness to a light.
I made a test script that looks like this:'1232334232434': alias: testanumberslider sequence: - data: brightness: "{{ states('input_number.alarmminutes_weekdays') | int }}" entity_id: light.kallaren transition: 10 service: light.turn_on
If I use a fixed number for brightness it works fine. But now a get the following error:
Error executing script script.1232334232434. Invalid data for call_service at pos 1: expected int for dictionary value @ data[‘brightness’]In developer tools / states the input_number.alarmminutes_weekdays have state: 30.0
What I’m a doing wrong?
using Home Assistant 0.100.1
Posts: 4
Participants: 3