WTH how do i get past raw states to create automations?

While creating an automation, i need to know the raw state i want to react on.

With devtool state i can only get the current raw state.

Logbook shows only the translated one.

It gets even crazier when i need to see how an attribute changes over time.

Side note : on mobile, you can’t even see the attributes in states devtools.

When creating something that involves my car, i have to watch the value change while i drive :open_mouth:

or a least of valid states, or ones that have been seen ?

Explaining the issue made me think of a way arround it.

As it might help before this is fixed, i’m sharing it :
using : File - Home Assistant
you can send “notifications” to a file (it adds a line)

with an automation you get a full state (that includes attributes) change log :

alias: "write states change to file"
trigger:
  - platform: state
    entity_id:
      - light.couloir_1
    to:
action:
  - action: notify.send_message
    target:
      entity_id: notify.file_logs
    data:
      message: >
        {{ trigger.to_state }}

(null “to” limits the change trigger to only the values, not attributes)

2024-12-04T20:51:41.124784+00:00 <state light.couloir_1=on; supported_color_modes=[<ColorMode.BRIGHTNESS: 'brightness'>], color_mode=brightness, brightness=77, mode=normal, dynamics=none, friendly_name=Couloir 1, supported_features=40 @ 2024-12-04T21:51:41.119674+01:00>
1 Like