Missing trigger

Hi all, I noticed that the photoresistor is not properly working when I select the item called phoresistor while works with General analogic input, any reason?
I wanted to trigger, turn light on when luminosity below x but I do not see the sensor as specific trigger, why?

A photoresistor is a generic analog input, so that should be fine.

you need to pass a datatype and data unit for the use of trigger properly.

Cayenne.virtualWrite(VIRTUAL_CHANNEL, analogRead(SENSOR_PIN), "analog_sensor", "null")