Im DOIF im Millisekundenbereich Befehle schalten

Begonnen von JMW, 11 November 2016, 22:29:08

Vorheriges Thema - Nächstes Thema

JMW

Hallo,
ich möchte im DOIF kurz hintereinander zwei Befehle schalten. Ich habe dies so gemacht

define di_HueAlarm DOIF ([22:09]) ( set HUEGroup0 rgb ff0000 , set HUEGroup0 on , sleep 0.5 , set HUEGroup0 off )
attr di_HueAlarm repeatcmd 1
attr di_HueAlarm repeatsame 10
attr di_HueAlarm do always


aber dann kommt die Meldung:

2016.11.11 22:09:00 1: WARNING: sleep without additional commands is deprecated and blocks FHEM
2016.11.11 22:09:02 1: WARNING: sleep without additional commands is deprecated and blocks FHEM
2016.11.11 22:09:04 1: WARNING: sleep without additional commands is deprecated and blocks FHEM
2016.11.11 22:09:07 1: WARNING: sleep without additional commands is deprecated and blocks FHEM
2016.11.11 22:09:09 1: WARNING: sleep without additional commands is deprecated and blocks FHEM
2016.11.11 22:09:11 1: WARNING: sleep without additional commands is deprecated and blocks FHEM
2016.11.11 22:09:14 1: WARNING: sleep without additional commands is deprecated and blocks FHEM
2016.11.11 22:09:16 1: WARNING: sleep without additional commands is deprecated and blocks FHEM
2016.11.11 22:09:18 1: WARNING: sleep without additional commands is deprecated and blocks FHEM
2016.11.11 22:09:21 1: WARNING: sleep without additional commands is deprecated and blocks FHEM


Wie macht man das im DOIF?

RaspiCOC

Mach es so:

define di_HueAlarm DOIF ([22:09]) (set HUEGroup0 rgb ff0000)(set HUEGroup0 on)(set HUEGroup0 off)
attr di_HueAlarm wait 0,0.5,0.5


Ich meine, da gibt es aber auch so was wie "blink" - schau da mal in die Commandref.

Das WAIT führt den ersten Befehl sofort aus, wartet dann 0,5 Sek und führt den nächsten aus.

igami

Pi3 mit fhem.cfg + DbLog/logProxy
Komm vorbei zum FHEM Treffen im Kreis Gütersloh! Das nächste Mal im April 2020.

MAINTAINER: archetype, LuftdatenInfo, monitoring, msgDialog, Nmap, powerMap
ToDo: AVScene, FluxLED