I have a feeling the issue is with the line:
Cayenne.virtualWrite(1, current); //Tx a cayenne etat led
@rsiegel I know with manual MQTT publishing (not using the Arduino library) you have to specify the data type for it to display correctly in a two state widget (discovered this here “digital,d=”) Is there a special function you have to call to send a 2 state value? I looked through the docs for the Arduino MQTT library and it was kind of lacking on the functions to send data back (virtualWrite, celsiusWrite, etc)