Hi,
I receive a string from Tasker (Android) with the seconds till the alarm starts…
How can I show the alarm time ?
I tried something like this:
var int zeit = (heiz_wecker_joerg_timer.state as DecimalType).intValue
val alarmDT = new DateTime(now.plusSeconds(zeit))
heiz_wecker_joerg.sendCommand(alarmDT)
But the Designer gives me an error:
Type mismatch: cannot convert from DateTime to String
How can I solve this ?
Regards
Jörg