Hi All,
I used always the installed integration for FKB. Now using the internal one of HA itself.
Before I was able to control brightness to set the light entity of FKB. Now it’s a number entity.
I tried to change the automation as follow but get a error:
2023-04-14 20:42:06.211 ERROR (MainThread) [homeassistant.components.automation.control_fkb_with_scenes] Control - FKB with scenes: Error executing script. Invalid data for call_service at pos 2: expected float for dictionary value @ data['value']
2023-04-14 20:42:06.223 ERROR (MainThread) [homeassistant.components.automation.control_fkb_with_scenes] Error while executing automation automation.control_fkb_with_scenes: expected float for dictionary value @ data['value']
there must be somewhere a float() added. But don’t know how to solve this.
- service: number.set_value
target:
entity_id: number.galaxy_tab_a_screen_brightness
data:
value: >-
{% if is_state('input_select.helpers_scenes', 'scene evening') %}
{{ 28 if is_state('group.family', 'off') else 205 }}
{% elif is_state('input_select.helpers_scenes', 'scene daytime') %}
{{ 28 if is_state('group.family', 'off') else 205 }}
{% if is_state('input_select.helpers_scenes', 'scene appletv') %}
28
{% elif is_state('input_select.helpers_scenes', 'scene dinner') %}
205
{% elif is_state('input_select.helpers_scenes', 'scene tv') %}
205
{% elif is_state('input_select.helpers_scenes', 'scene nintendo') %}
28
{% elif is_state('input_select.helpers_scenes', 'scene kodi') %}
28
{% elif is_state('input_select.helpers_scenes', 'scene goodnight') %}
13
{% else %}
205
{% endif %} | float(0)
{% endif %}
converted the percentage to the 1-255 values already as you see in automation.