Sensor entity dynamic

Hi
I would like to be able to create a fictitious target sensor entity, and assign a real sensor entity to it via the drop-down menu.
Do you think it is possible?

You can create a template sensor:


template:
  - sensor:
      - name: Status
        unique_id: status_202211232124
        icon: mdi:home
        state: "{{ states('input_select.your_selection') }}"

For details see here.

1 Like

Thanks so much for the help. Your solution works, but unfortunately the behavior is not what I expected. I have opened a new topic to better explain what I need. This is the link:
https://community.home-assistant.io/t/dynamic-target-sensor-in-thermostat/493388
However, I believe that the solution explained in this is very valid and can be useful to someone …