#Transform MQTT Wind Unit
20 messages · Page 1 of 1 (latest)
Just replying to prove you wrong 😆
Is this a discoverd sensor or did you manually add it using YAML?
Discovered using the rtl443 addin
Then unless you can change it via the rtl433 add-on (I know nothing about it) you will have to use manual customisation to change the unit to mph. See: https://www.home-assistant.io/integrations/homeassistant/#manual-customization e.g. in configuration.yaml: ```
homeassistant:
customize:
sensor.wind_speed: # change this to your entity id
unit_of_measurement: mph
Then restart home assistant.
I've added this to my customize.yaml, no dice 😢
How are you importing that into your config? What do the logs say when you start up?
Yeah, where is the !include?
under configuration.yaml
default_config:
homeassistant:
customize: !include customize.yaml```
There's no HA core logs regarding the sensor or customize.yaml
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.
weird lol
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
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
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.
Here's a similar issue you could post your findings in: https://github.com/merbanan/rtl_433/issues/2846