I am implementing the monitoring of an electric generator using sensors that read a MODBUS logic controller through a gateway. I have been able to count on sensors that indicate generator states, (1, 2, 3 ... n) and I associated them with lookup values. For example, I have a sensor that returns the status of the selector key, which can be in "Automatic" or "Manual - On" or "Manual - Off" And another sensor that indicates if it is in "Stopped" state or "Running" or others. The state that interests me is when the first is in "Automatic" and the second in "Running" that corresponds to when the equipment is running because there was a power outage. But I am not sure that the Factory allows handling combinations of states. Can be done? With what type of sensor?
How to use the Sensor Factory from sensors that have status fields with lookup?