Automation- Can I make the state trigger on 500ms?

Can I make the state trigger on 500ms?

platform: state
entity_id: switch.garagedoorjeep_relay
for:
  hours: 0
  minutes: 0
  seconds: 1
to: "on"

Yes…

platform: state
entity_id: switch.garagedoorjeep_relay
for:
  milliseconds: 500
to: "on"

Maybe!
You might be able to set the “for:” value, but if the device is not able to send updates in the time period anyway, then it is by default the same as a 500ms delay that will always trigger.

Thanks. I didn’t find this in the docs.

It’s not stated in the text, but it’s mentioned in a couple examples: