Write Time And Date in Function of a virtual MQTT Device

Hello, I’m new here

I want to store the date and time within a scene,

I have added a virtual MQTT device with the function “Text” as an actor:

I have created a scene that retrieves the date and time and sets the date & time as the value of Text(Text):

Unfortunately, the value is not set:

does anyone have a tip for me?

P.S.: No matter what text I insert (the variable for date & time or even a fixed text) it doesn’t work. The text is not “saved”.

Thanks in advance

Greetings from Germany

Peter

Hi @Peter and welcome to the forum :smiling_face:
i just tested by sending a message and I receive the date and time.

To store a value in an MQTT variable, you need to use the Send an MQTT message function and fill in the topic, a topic you will find in the advanced options of your Text feature and I would also enable the Sensor option: