ich habe für ein bestehendes System OH 4.3.2 frisch installiert, Bindings installiert, die configuration geladen. Habe ein Problem mit dem Aufruf eines Python scripts, welches einen Temperatursensor über I2C ausliest.
Der script läuft in der Konsole:
Code: Alles auswählen
openhabian@openhabian:~ $ python meinbme280.py
{"BME280":{"Temperature": 20.24 ,"Pressure": 1000.5851855131036 ,"Humidity": 50.706432961952224 }}
Code: Alles auswählen
/usr/bin/python /home/openhabian/meinbme280.py
Code: Alles auswählen
UID: exec:command:InnenTempauslese
label: Innen Temperatur Auslese
thingTypeUID: exec:command
configuration:
transform:
- REGEX((.*))
interval: 900
autorun: false
command: /usr/bin/python /home/openhabian/meinbme280.py
timeout: 15
channels:
- id: output
channelTypeUID: exec:output
label: Rückgabewert
description: Rückgabewert der Befehlsausführung
configuration: {}
...
configuration: {}
Code: Alles auswählen
2025-01-26 12:43:20.481 [WARN ] [ofiles.JSonPathTransformationProfile] - Could not transform state '/usr/bin/python: can't open file '/home/openhabian/meinbme280.py': [Errno 13] Permission denied
/usr/bin/python: can't open file '/home/openhabian/meinbme280.py': [Errno 13] Permission denied' with function '$.BME280.Humidity' and format '%s'
2025-01-26 12:43:20.483 [WARN ] [ofiles.JSonPathTransformationProfile] - Could not transform state '/usr/bin/python: can't open file '/home/openhabian/meinbme280.py': [Errno 13] Permission denied
/usr/bin/python: can't open file '/home/openhabian/meinbme280.py': [Errno 13] Permission denied' with function '$.BME280.Temperature' and format '%s'
Was kann die Ursache sein?