#Transform MQTT Wind Unit

20 messages · Page 1 of 1 (latest)

terse siren
#

does anyone have a quick way of modifying the unit of a sensor from MQTT? My weather station reports wind in mi/h which was apparently removed in this latest update lol

fresh magnet
#

Just replying to prove you wrong 😆

short shuttle
terse siren
#

Discovered using the rtl443 addin

short shuttle
#

Then restart home assistant.

terse siren
#

I've added this to my customize.yaml, no dice 😢

neat cave
#

How are you importing that into your config? What do the logs say when you start up?

short shuttle
#

Yeah, where is the !include?

terse siren
#

under configuration.yaml

default_config:
homeassistant:
  customize: !include customize.yaml```
#

There's no HA core logs regarding the sensor or customize.yaml

short shuttle
#

Well if that does not work (it should, it works for me) your only option is to disable the discovered sensor and create a manual mqtt sensor.

terse siren
#

weird lol

terse siren
#

yea the only error I see is
Error 'The unit of measurement `mi/h` is not valid together with device class `wind_speed`' when processing MQTT discovery message topic: 'homeassistant/sensor/Acurite-Atlas-A-996/Acurite-Atlas-A-996-WS/config', message: '{'device_class': 'wind_speed', 'unit_of_measurement': 'mi/h', 'value_template': '{{ value|float }}', 'state_class': 'measurement', 'state_topic': 'rtl_433/9b13b3f4-rtl433/devices/Acurite-Atlas/A/996/wind_avg_mi_h', 'unique_id': 'Acurite-Atlas-A-996-WS', 'device': {'identifiers': ['Acurite-Atlas-A-996'], 'model': 'Acurite-Atlas', 'manufacturer': 'rtl_433', 'name': 'Acurite-Atlas-A-996'}, 'name': 'Wind Speed'}'

#

which is the original error that made me realize it's a unit issue

#

I also can't figure out why the unit would totally kill the sensor

terse siren
#

defining it manually works, just sucks I can't stitch the data together :/

#

very confused on why customize.yaml or putting it directly in config.yaml isn't working

short shuttle
#

Ah. Customising the component isn't going to work because the discovery message is causing the error so the entity never gets created. So there is nothing to customize. You really need to get this fixed in rtl433. Open an issue.