How to replace, correct the tuya value

How to correct the display value that gets from Tuya?

We currently have an incorrect amount in watts
image

And it should be 36.7 watts

How to fix it so that it does not appear a second time?

When I do so, then I have double

    smart_socket_3_2:
        friendly_name: 'Przedłużacz + Tv'
        device_class: power
        value_template:  "{{ (states('sensor.smart_socket_3_2')  | float / 10) }}"

How to replace it?

:thinking:

  1. Double name - HA added …_2

    Change

    smart_socket_3_2_corrected:
        friendly_name: 'Przedłużacz + Tv Poprawiony'
  1. You can hide the original one

Is it possible to replace it so that there is a corrected value in the same sensor?

When I add a new sensor, it does not appear on the list of a specific tuya socket, but a separate sensor

There is no association with the device in question.

You can’t replace the value. You can only make a template sensor with the correct value and Hide the original.

You don’t need an association with the device. If you’re having issues running actions or triggers because the entity isn’t associated with the device, then you shouldn’t use a device action or trigger. You should use a normal state trigger or a service-call as your action.

My point is that the corrected value should be visible in the tuya device and not as an additional sensor.

Old:

new, correct:

As stated previously, what you want is not possible.

I see. Maybe in the future

I have the same issue - is this still not possible?
I’m interested in where this issue occurs - should this be a bug in the Tuya implementation or is HA translating something incorrectly?

It would be nice to simply correct a value transform a value as part of the device as @fnx wanted…

In the meantime can someone give details of how to create the template sensor?