I have a sensor that returns a list of online users e.g.
sensor.users_online
users:
- UserA
- UserB
- UserC
I’d like to automatically create an entity for each unique user name returned in the sensor array and then update their state as online if present in the sensor list and offline if not present.
I suspected as much, understandable. In that case, what direction would I look to accomplish the same effect if I manually added each username as an entity?
The sensor is polling an API I have no control over, so unfortunately the best I get is an array of assumed unique strings the system claims are online.