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

Sensor vs input_number comparison

$
0
0

I keep getting an error on this line of code:

- type: "custom:button-card"
                entity: sensor.desired_probe_1
                entity_picture: '[[[ if (entity.state < (input_number.hass_probe1_slider.state|float)) return "/local/bbq/probe_off.png"; else return "/local/bbq/probe_on.png" ]]]'

input_number is not defined.

Even tried:
entity_picture: '[[[ if (entity.state < states("input_number.hass_probe1_slider")|float) return "/local/bbq/probe_off.png"; else return "/local/bbq/probe_on.png" ]]]'

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 102819

Trending Articles