Your select_option
isn’t properly indented and is missing the value to set the option to.
In your icon template the variable state
needs to be defined. As it stands, it returns nothing when I tried it in a notify service.
Try the following…
- select:
- name: "Sèche_serviette_gui"
unique_id: 383_1
state: "{{ states('select.383') }}"
options: "{{ state_attr('select.383', 'options') }}"
select_option:
- service: select.select_option
target:
entity_id : select.383
data:
option: "{{ option }}"
icon: >
{% set state = states('select.383') %}
{% set map = {
'Off': 'mdi:radiator-off',
'On': 'mdi:radiator',
'Eco': 'mdi:radiator-off',
'HGt': 'mdi:radiator-off',
'HG': 'mdi:radiator-off',
'1H': 'mdi:radiator-off',
'2H': 'mdi:radiator-off' } %}
{{ map.get(state) }}