Hello,
I would like to know if it’s possible to put the date and time into an MQTT topic.
Basically I would have liked to put the end date and time of the washing machine cycle into an MQTT topic to display on the dashboard the date and time of the last wash.
I can create a text topic in MQTT but I don’t see how, from a scene, I can include the date and time in my text topic
I’m not sure if this is very clear ^^ but don’t hesitate if you have any questions 
Hi @prohand 
It’s completely possible!
You can use an API like, for example: How to receive the current date and time | Conversational Cloud Help Center
Then you call the API in your scene:
I called the API with this URL:
https://tools.aimylogic.com/api/now?tz=Europe/Paris\u0026format=dd/MM/yyyy%20HH:mm
You retrieve an attribute « formatted » which is usable in the « send an MQTT message » block:
This will change the value of my device:
The « HTTP Call » block is very powerful, often underrated 
3 Likes
Thank you for the reply.
When I make the GET request I get this message when I click on Try:
Do you have any idea where it’s coming from?
Edit: Problem with my firewall ^^ Everything is ok 
1 Like
Just because I’m being a bit picky but to avoid going through a web service couldn’t we simply retrieve the value that’s here in the dashboard? :
Yes, anything is possible — it’s still under development
You can create a feature request if you’d like to see this in Gladys!
1 Like