Hi,
I am trying to define things and items in config files, but I receive an error when storing the items file.
I added the AVM binding using PaperUI.
The things file is working fine. It is stored in \openhab\openHAB-conf\things.
Bridge avmfritz:fritzbox:1 "FRITZ!Box" [ ipAddress="192.168.178.1", password="password", pollingInterval="5" ] {
Thing HAN_FUN_CONTACT Christian_Fenster_R "Christian_Fenster_R" [ ain="1234" ]
Thing HAN_FUN_CONTACT Christian_Fenster_L "Christian_Fenster_L" [ ain="1234" ]
Thing HAN_FUN_CONTACT Christian_BWM "Christian_BWM" [ ain="1234" ]
}
The things are displayed in Paper UI and the log says:
2019-12-21 10:48:41.331 [hingStatusInfoChangedEvent] - ‘avmfritz:fritzbox:1’ changed from ONLINE: Established FRITZ!Box connection with SID 1d12989a548f366a to ONLINE
2019-12-21 10:48:41.329 [hingStatusInfoChangedEvent] - ‘avmfritz:HAN_FUN_CONTACT:1:Christian_BWM’ changed from UNKNOWN to ONLINE
2019-12-21 10:48:41.321 [hingStatusInfoChangedEvent] - ‘avmfritz:HAN_FUN_CONTACT:1:Christian_Fenster_R’ changed from UNKNOWN to ONLINE
2019-12-21 10:48:41.326 [hingStatusInfoChangedEvent] - ‘avmfritz:HAN_FUN_CONTACT:1:Christian_Fenster_L’ changed from UNKNOWN to ONLINE
Then I wanted to define items in a file in the same directoy (\openhab\openHAB-conf\things).
Contact Christian_Fenster_R "Christian_Fenster_R"
I also tried
Contact Christian_Fenster_R "Status [%s]" { channel="avmfritz:HAN_FUN_CONTACT:1:Christian_Fenster_R:contact_state" }
Where I copied the channel from the item in Paper GUI.
But I get this error in the log:
2019-12-21 11:05:29.998 [WARN ] [me.core.service.AbstractWatchService] - Error while opening file during update: /etc/openhab2/items/fritzbox.items
If I define the thing (link the channel) in Paper GUI, everything is working. But I want to do it in config files.
Environment:
- Fritzbox 6590 Cable
- Fritz!OS 07.12
- Openhabian
- Openhab 2.5.0
What am I doing wrong?