This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
Closed
date time in say commands
jjtbsomhorst
Member
in Archive
Hi,
I couldn't find it in the docs but what do I need to do to let homey say the date correctly in a translated sentence? For instance if my sentence would be something like:
"I will reserve a table for you on __date_ at __time__ at the __restaurant__" or should Homey auto detect that the string i'm passing is a date?
I couldn't find it in the docs but what do I need to do to let homey say the date correctly in a translated sentence? For instance if my sentence would be something like:
"I will reserve a table for you on __date_ at __time__ at the __restaurant__" or should Homey auto detect that the string i'm passing is a date?
This discussion has been closed.
Comments
Homey.manager('speech:output').say('__time__') or Homey.manager('speech:output').say('__date__') all works fine but if I do this:
Homey.manager('speech:output').say('The date is __date__ and the time should be __time__') the time will be interpreted as number colon number colon number. Strange..