[SOLVED] HMIP-ASIR Homematic IP Siren Config & Rule Problems

Hello,
i`m running into strange Problems with my HMIP-ASIR Siren from Homematic.
With the help of this Forum in some other Threads i managed to get the Siren to work, but have trouble when i comes to change the behavior of it.
This is how my *.itms looks

//Alarmsirene
Switch   HomematicIPInnensirene0LOWBAT                   "Niedriger batteriestatus"   {channel="homematic:HmIP-ASIR:3014F711A0001F58A9A710DF:000AD709A59557:0#LOW_BAT"}
String   HomematicIPInnensirene3OPTICALALARMSELECTION    "Optical alarm selection"    {channel="homematic:HmIP-ASIR:3014F711A0001F58A9A710DF:000AD709A59557:3#OPTICAL_ALARM_SELECTION"}
Number   HomematicIPInnensirene3DURATIONVALUE            "Duration value"             {channel="homematic:HmIP-ASIR:3014F711A0001F58A9A710DF:000AD709A59557:3#DURATION_VALUE"}
String   HomematicIPInnensirene3DURATIONUNIT             "Duration unit"              {channel="homematic:HmIP-ASIR:3014F711A0001F58A9A710DF:000AD709A59557:3#DURATION_UNIT"}
String   HomematicIPInnensirene3ACOUSTICALARMSELECTION   "Acoustic alarm selection"   {channel="homematic:HmIP-ASIR:3014F711A0001F58A9A710DF:000AD709A59557:3#ACOUSTIC_ALARM_SELECTION"}

This are my rules (operated with 2 Dummy Switches)

rule "Alarm ANn"	
	when
		Item Testswitch changed to ON
	then
			sendCommand(HomematicIPInnensirene3OPTICALALARMSELECTION, "BLINKING_BOTH_REPEATING")
			sendCommand(HomematicIPInnensirene3ACOUSTICALARMSELECTION, "DISABLE_ACOUSTIC_SIGNAL")
			sendCommand(HomematicIPInnensirene3DURATIONVALUE, 30)
			sendCommand(HomematicIPInnensirene3DURATIONUNIT, "S")						
	end

  rule "Alarm ANn"	
	when
		Item Testswitch2 changed to ON
	then
			sendCommand(HomematicIPInnensirene3OPTICALALARMSELECTION, "BLINKING_BOTH_REPEATING")
			sendCommand(HomematicIPInnensirene3ACOUSTICALARMSELECTION, "FREQUENCY_ALTERNATING_LOW_HIGH")
			sendCommand(HomematicIPInnensirene3DURATIONVALUE, 10)
			sendCommand(HomematicIPInnensirene3DURATIONUNIT, "S")						
	end

When i start the first Rule - it works as it is supposed to - a Silent Blinking.
But the first Rule doesn`t work - i have to turn the switch a scond time on

Something from the Log:
trigger first Rule:

2019-10-07 13:59:11.297 [ome.event.ItemCommandEvent] - Item 'HomematicIPInnensirene3OPTICALALARMSELECTION' received command BLINKING_BOTH_REPEATING

2019-10-07 13:59:11.301 [ome.event.ItemCommandEvent] - Item 'HomematicIPInnensirene3ACOUSTICALARMSELECTION' received command DISABLE_ACOUSTIC_SIGNAL

2019-10-07 13:59:11.306 [ome.event.ItemCommandEvent] - Item 'HomematicIPInnensirene3DURATIONVALUE' received command 30

2019-10-07 13:59:11.311 [ome.event.ItemCommandEvent] - Item 'HomematicIPInnensirene3DURATIONUNIT' received command S

2019-10-07 13:59:11.314 [nt.ItemStatePredictedEvent] - HomematicIPInnensirene3OPTICALALARMSELECTION predicted to become BLINKING_BOTH_REPEATING

2019-10-07 13:59:11.316 [nt.ItemStatePredictedEvent] - HomematicIPInnensirene3ACOUSTICALARMSELECTION predicted to become DISABLE_ACOUSTIC_SIGNAL

2019-10-07 13:59:11.319 [nt.ItemStatePredictedEvent] - HomematicIPInnensirene3DURATIONVALUE predicted to become 30

2019-10-07 13:59:11.321 [nt.ItemStatePredictedEvent] - HomematicIPInnensirene3DURATIONUNIT predicted to become S

this worked as it should
Trigger second Rule:

Item 'Testswitch2' received command ON

2019-10-07 14:00:32.152 [vent.ItemStateChangedEvent] - Testswitch2 changed from OFF to ON

2019-10-07 14:00:32.155 [ome.event.ItemCommandEvent] - Item 'HomematicIPInnensirene3OPTICALALARMSELECTION' received command BLINKING_BOTH_REPEATING

2019-10-07 14:00:32.160 [ome.event.ItemCommandEvent] - Item 'HomematicIPInnensirene3ACOUSTICALARMSELECTION' received command FREQUENCY_ALTERNATING_LOW_HIGH

2019-10-07 14:00:32.164 [ome.event.ItemCommandEvent] - Item 'HomematicIPInnensirene3DURATIONVALUE' received command 10

2019-10-07 14:00:32.168 [ome.event.ItemCommandEvent] - Item 'HomematicIPInnensirene3DURATIONUNIT' received command S

2019-10-07 14:00:32.174 [nt.ItemStatePredictedEvent] - HomematicIPInnensirene3OPTICALALARMSELECTION predicted to become BLINKING_BOTH_REPEATING

2019-10-07 14:00:32.176 [nt.ItemStatePredictedEvent] - HomematicIPInnensirene3ACOUSTICALARMSELECTION predicted to become FREQUENCY_ALTERNATING_LOW_HIGH

2019-10-07 14:00:32.178 [nt.ItemStatePredictedEvent] - HomematicIPInnensirene3DURATIONVALUE predicted to become 10

2019-10-07 14:00:32.181 [nt.ItemStatePredictedEvent] - HomematicIPInnensirene3DURATIONUNIT predicted to become S

2019-10-07 14:00:32.184 [vent.ItemStateChangedEvent] - HomematicIPInnensirene3ACOUSTICALARMSELECTION changed from DISABLE_ACOUSTIC_SIGNAL to FREQUENCY_ALTERNATING_LOW_HIGH

2019-10-07 14:00:32.184 [vent.ItemStateChangedEvent] - HomematicIPInnensirene3DURATIONVALUE changed from 30 to 10

again the silent Mode-Alarm for 30s…but it should have been with Noise
trigger sceond Switch again:

Testswitch2 changed from ON to OFF

2019-10-07 14:01:34.088 [ome.event.ItemCommandEvent] - Item 'Testswitch2' received command ON

2019-10-07 14:01:34.093 [vent.ItemStateChangedEvent] - Testswitch2 changed from OFF to ON

2019-10-07 14:01:34.095 [ome.event.ItemCommandEvent] - Item 'HomematicIPInnensirene3OPTICALALARMSELECTION' received command BLINKING_BOTH_REPEATING

2019-10-07 14:01:34.099 [ome.event.ItemCommandEvent] - Item 'HomematicIPInnensirene3ACOUSTICALARMSELECTION' received command FREQUENCY_ALTERNATING_LOW_HIGH

2019-10-07 14:01:34.108 [ome.event.ItemCommandEvent] - Item 'HomematicIPInnensirene3DURATIONVALUE' received command 10

2019-10-07 14:01:34.115 [ome.event.ItemCommandEvent] - Item 'HomematicIPInnensirene3DURATIONUNIT' received command S

2019-10-07 14:01:34.121 [nt.ItemStatePredictedEvent] - HomematicIPInnensirene3OPTICALALARMSELECTION predicted to become BLINKING_BOTH_REPEATING

2019-10-07 14:01:34.131 [nt.ItemStatePredictedEvent] - HomematicIPInnensirene3ACOUSTICALARMSELECTION predicted to become FREQUENCY_ALTERNATING_LOW_HIGH

2019-10-07 14:01:34.134 [nt.ItemStatePredictedEvent] - HomematicIPInnensirene3DURATIONVALUE predicted to become 10

2019-10-07 14:01:34.136 [nt.ItemStatePredictedEvent] - HomematicIPInnensirene3DURATIONUNIT predicted to become S

now it works with noise…

Can pls someone help me with this ? I don`t really know what I´m doing wrong

Try it with some delay between the stream of commands that you send.

Also use the .sendCommand() syntax:

HomematicIPInnensirene3OPTICALALARMSELECTION.sendCommand("BLINKING_BOTH_REPEATING")

@vzorglub & @rossko57
Thank for your help - but still no effect :frowning:

rule "Alarmanlage scharf"	
	when
		Item Testswitch changed to ON
	then
			HomematicIPInnensirene3OPTICALALARMSELECTION.sendCommand("BLINKING_BOTH_REPEATING")
      Thread::sleep(3000)
			HomematicIPInnensirene3ACOUSTICALARMSELECTION.sendCommand("DISABLE_ACOUSTIC_SIGNAL")
      Thread::sleep(3000)
			HomematicIPInnensirene3DURATIONVALUE.sendCommand(30)
      Thread::sleep(3000)
			HomematicIPInnensirene3DURATIONUNIT.sendCommand("S")						
	end


  rule "Alarm AN"	
	when
		Item Testswitch2 changed to ON
	then
			HomematicIPInnensirene3OPTICALALARMSELECTION.sendCommand("BLINKING_BOTH_REPEATING")
      Thread::sleep(3000)
			HomematicIPInnensirene3ACOUSTICALARMSELECTION.sendCommand("FREQUENCY_ALTERNATING_LOW_HIGH")
      Thread::sleep(3000)
			HomematicIPInnensirene3DURATIONVALUE.sendCommand(10)
      Thread::sleep(3000)
			HomematicIPInnensirene3DURATIONUNIT.sendCommand("S")						
	end

This is how i changed the Rules - still the same behavior :frowning: - maybe i`m doing something wrong ?

This guide
https://h-ctrl.com/articles/hmip-asir-siren.html
sends DURATION_UNIT before DURATION_VALUE

changed this in my Rule - no effect :frowning:

@rossko57
Thank you for you Hint and the Link !
I managed it now and got it working…

The Order for the commands is really importan !

rule "Alarm LAUT"	
	when
		Item Testswitch2 changed to ON
	then
  		HomematicIPInnensirene3ACOUSTICALARMSELECTION.sendCommand("FREQUENCY_ALTERNATING_LOW_HIGH")
    Thread::sleep(3000)
    	HomematicIPInnensirene3OPTICALALARMSELECTION.sendCommand("BLINKING_BOTH_REPEATING")
      Thread::sleep(3000)
      HomematicIPInnensirene3DURATIONUNIT.sendCommand("S")	
     Thread::sleep(3000)
			HomematicIPInnensirene3DURATIONVALUE.sendCommand(10)						
	end

to turn it off i use

  rule "Alarm AUS"	
	when
		Item Testswitch3 changed to ON
	then
  		HomematicIPInnensirene3ACOUSTICALARMSELECTION.sendCommand("DISABLE_ACOUSTIC_SIGNAL")
      Thread::sleep(3000)
    	HomematicIPInnensirene3OPTICALALARMSELECTION.sendCommand("DISABLE_OPTICAL_SIGNAL")
      Thread::sleep(3000)
      HomematicIPInnensirene3DURATIONUNIT.sendCommand("S")	
      Thread::sleep(3000)
			HomematicIPInnensirene3DURATIONVALUE.sendCommand(10)						
	end

Maybe this will help someone who has the same Problems

1 Like