Nun versuche ich eine Rule mit inline script zu erstellen und scheitere.
Der Code sieht wie folgt aus:
Code: Alles auswählen
onfiguration: {}
triggers:
- id: "1"
configuration:
itemName: Schaltsteckdose_Pumpe_Leistung
type: core.ItemStateChangeTrigger
conditions: []
actions:
- inputs: {}
id: "3"
configuration:
type: application/vnd.openhab.dsl.rule
script: |-
rule "FB_DECT210_Pumpe_Power changed"
when
item Schaltsteckdose_Pumpe_Leistung changed
then
logInfo("Schaltsteckdose_Pumpe_Leistung", "changed")
end
type: script.ScriptAction
Code: Alles auswählen
1. The method or field rule is undefined; line 1, column 0, length 4
2. The method or field when is undefined; line 2, column 40, length 4
3. The method or field item is undefined; line 3, column 49, length 4
4. The method or field changed is undefined; line 3, column 85, length 7
5. The method or field then is undefined; line 4, column 95, length 4
6. The method or field end is undefined; line 6, column 159, length 3
7. This expression is not allowed in this context, since it doesn't cause any side effects.; line 1, column 5, length 32
8. This expression is not allowed in this context, since it doesn't cause any side effects.; line 3, column 54, length 30