How to change Transmission down/up speed unit from MB/s to kB/s?
I have tried…
customize:
sensor.transmission_down_speed:
unit_of_measurement: "kB/s"
sensor.transmission_up_speed:
unit_of_measurement: "kB/s"
…but it just change the text of the unit. It doesn’t change the value.
fabaff
(Fabian Affolter)
2
The unit of measurement for the speed is hard-coded because the value is calculated.
Simplest way to use an unit of measurement of your choice, is a template sensor.
1 Like
thanks for your pointer. I managed to do it using this code…
- platform: template
sensors:
transmission_down_speed_kbps:
value_template: '{{ states.sensor.transmission_down_speed.state | multiply(1024) }}'
friendly_name: 'Transmission Down Speed'
unit_of_measurement: 'kB/s'
transmission_up_speed_kbps:
value_template: '{{ states.sensor.transmission_up_speed.state | multiply(1024) }}'
friendly_name: 'Transmission Up Speed'
unit_of_measurement: 'kB/s'
4 Likes
Please can you help me?
I have
sensor.fritz_box_7490_kib_s_received
and
sensor.fritz_box_7490_kib_s_sent
I tried your code, of course, replace states.sensor.transmission_down_speed.state with states.sensor.fritz_box_7490_kib_s_received without success