Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95333

Need help with input_number

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 95333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>