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

Using input_number as setting temperaure

$
0
0

@Lasse_Hedeby wrote:

Hi

In an action in my automations I am calling this service;

- service: climate.set_temperature
      data:
        entity_id: climate.baggang_gulvvarme
        temperature: "{{ states('input_number.gulvarme_stuen') | float }}"

If I test the template {{ states(‘input_number.gulvarme_stuen’) | float }} it returns 26.0. But when I call this service with this automation I get this error;
Invalid data for call_service at pos 2: expected float for dictionary value @ data[‘temperature’]

But the template is returning a float, so I cannot see where it whent wrong.

I am running HA 0.102.3 in Docker.

Posts: 3

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 95513

Trending Articles



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