Window sensor that can be open/closed/ajar - how to define?

Hi,

I want to create some entities to define my windows in HA. They can have four statuses: open, closed, ajar and sabotage. These states will be set using the Node Red integration.

I was initially planning to define them as a sensor. However, if I understand the documentation correctly, the status of sensors can not be updated using an automation (unless applying workarounds).

So what type of entity do I use based to define my windows (allowing state changes via Node-Red)?

There aren’t any, you have to use work arounds if you want to use a NR automation.