Some sensors allows to specify filters which allows transformation of value before sending it to MQTT.
Currently available sensors to filter values are:
Filters are always list of dictionary, where key is name of operation and value is value to use in operation eg
filters:
- round: 2
means that filter will round sensor value to 2 decimal places.
Adds a constant value to each sensor value.
- platform: dallas
...
filters:
- offset: 5
Round sensor value to X digits after .
- platform: dallas
...
filters:
- round: 2
Multply sensor value by constant value.
- platform: dallas
...
filters:
- multiply: 1.5
Filter out value if it is equal to constant value
- platform: dallas
...
filters:
- filter_out: 17
Filter out value if it is greater than constant value
- platform: dallas
...
filters:
- filter_out_greater: 17
Filter out value if it is lower than constant value
- platform: dallas
...
filters:
- filter_out_lower: 17