smartthings

Can Bixby invoke an existing SmartThings automation?

て烟熏妆下的殇ゞ 提交于 2019-12-13 22:58:12
问题 Can't find any documentation on the Bixby verbal command to invoke an existing SmartThings automation I know how to speak a Bixby command to CREATE a SmartThings automation to run at a later time, but not to invoke one that is already created none I expect it should be able to do this. Also, is it possible for Bixby to create an automation that runs everyday, not just ONCE ...update... I found that this can be done by including the phrase "every day" in the command. e.g. :"Hi Bixby, turn off

How do I subtract minutes from current time

China☆狼群 提交于 2019-12-02 00:52:14
问题 I am trying to subtract 10 minutes from the current time, but I cant find the proper syntax in the documentation I have looked up I have this so far def deltaMinutes = 10 use(TimeCategory) { def nowTime = new Date() - deltaMinutes.minutes log.debug nowTime } and get this in the SmartThings IDE java.lang.NullPointerException @ line 53 Perhaps the IDE doesnt support this library? What would be the next best method for calculating this? 回答1: 10.minutes.ago should give what you are looking for