Is the friendly_name_template not available for binary template sensors?
Ive tried this in the sensor definition itself, and under customize bit it wont change the friendly name:
binary_sensor.low_lux_input:
friendly_name_template: >
Low lux input - {{ states('input_number.low_lux') }}
binary_sensor.high_lux_input:
friendly_name_template: >
High lux input - {{ states('input_number.high_lux') }}
binary_sensor.home_theater_lux_input:
friendly_name_template: >
Home theater lux input - {{ states('input_number.home_theater_lux') }}
the templates show fine in the dev section.
for comparisons sake, this does work for a regular template sensor:
frontdoor_motion_sensor_light_level:
friendly_name_template: >
Frontdoor:
{% set light_level = states.sensor.frontdoor_motion_sensor.attributes.light_level %}
{%- if light_level <=1 %}
bright moonlight
{%- elif light_level <=3000 %}
night light
{%- elif light_level <= 10000 %}
dimmed light
{%- elif light_level <= 17000 %}
‘cosy’ living room
{%- elif light_level <= 22000 %}
‘normal’ non-task light
{%- elif light_level <= 25500 %}
working / reading
{%- elif light_level <= 28500 %}
inside daylight
{%- elif light_level <= 33000 %}
maximum to avoid glare
{%- elif lux <= 40000 %}
clear daylight
{%- elif light_level <= 51000 %}
direct sunlight
{% else %}
too bright!
{% endif %}