rule "Rule11"
when
Item HM_Funkschalter1 received update OFF
then
z=z+1
logInfo(“lichtschalter”, "Rule11 : " + z )
end
EventLog:
2018-02-26 18:52:39.883 [vent.ItemStateChangedEvent] - HM_Funkschalter1 changed from ON to OFF
2018-02-26 18:52:39.890 [vent.ItemStateChangedEvent] - homematic_HG_HM_LC_Sw1PBU_FM_CCU_OEQ0625787_1_STATE changed from ON to OFF
The first event is on itemname "HM_Funkschalter1 "
the second event is on the channelname “homematic_HG_HM_LC_Sw1PBU_FM_CCU_OEQ0625787_1_STATE”
you can see that the rule is fireing twice, because the counter z was raising from 3 to 4
2018-02-26 20:04:47.402 [vent.ItemStateChangedEvent] - HM_Funkschalter1 changed from ON to OFF
2018-02-26 20:04:47.411 [INFO ] [smarthome.model.script.lichtschalter] - Rule11 : 3
2018-02-26 20:04:47.411 [vent.ItemStateChangedEvent] - homematic_HG_HM_LC_Sw1PBU_FM_CCU_OEQ0625787_1_STATE changed from ON to OFF
2018-02-26 20:04:47.441 [INFO ] [smarthome.model.script.lichtschalter] - Rule11 : 4
I’m not familar with homematic but can it be, that you have defined two items. One in text file and one in paperui?
Both report ItemStateChangeEvent.
EventLog:
2018-02-26 18:52:39.883 [vent.ItemStateChangedEvent] - HM_Funkschalter1 changed from ON to OFF
2018-02-26 18:52:39.890 [vent.ItemStateChangedEvent] -
homematic_HG_HM_LC_Sw1PBU_FM_CCU_OEQ0625787_1_STATE changed from ON to
OFF
The matter is, when i turn the switch on;
3 events are fired
Log: Item ‘HM_Funkschalter1’ received command ON
==>Trigger:received update ON
Log: HM_Funkschalter1 changed from OFF to ON
==> Trigger:changed from OFF to ON
and again : Trigger: received update ON
Go to items in PaperUI and type something like in the filter text box:
homematic:HG-HM-LC-Sw1PBU
It should list all items which either have this as a part of their name or the channel they are linked to.
You easily should find yours and then you can delete it by clicking on the trash icon.
If i delete it there, should it be available in the file ".items"
Switch HM_Funkschalter1 “KücheSteckboard” {channel=“homematic:HG-HM-LC-Sw1PBU-FM:CCU:OEQ0625787:1#STATE”
If you remove the thing itself, you would have to pair it again.
If you are only removing the items which are associated with the thing, you do not need to repair them.
By the way, when you go to the thing in PaperUI you should see for the channel selected also all items that are associated with it (even when they purely are configured within an items file):
e.g.