you could try a simple input_text with an automation.
Make the automation trigger on sensor state.
If the value goes up, set your input_text to “Up”, otherwise “Down”
something along the lines
- alias: Set Barometer Direction
trigger:
- platform: state
entity_id: sensor.barometer
action:
- service: input_text.set_value
data_template:
entity_id: input_text.barometer_direction
value: '{% if trigger.to_state.state > trigger.from_state.state %}Up{% else %}Down{% endif %}'
This is an old thread so the problem might be solved already, but I wrote a trend sensor appdaemon app a few years ago for the same purpose. It sets the state of a sensor to “on” when a sensor trend is rising and “off” with a falling trend. You can then use up/down arrow icons to indicate the trend in a dashboard.
You can set the sensitivity of the trend sensor by increasing or decreasing the number of samples used. I am using 6 samples for temperature sensors and its completelty stabile.
See the code here: https://pastebin.com/PUHgG93s.