define GPIO23 RPI_GPIO 23
attr GPIO23 active_low yes
attr GPIO23 direction input
attr GPIO23 interrupt both
sudo adduser fhem gpio
pinctrl 23 eingebe, kommt 23: ip ::| hi // GPIO23 = input
Internals:
DEF 23
FUUID 66350568-f33f-3e5d-30cd-14f1361c0e7b4308
GPIO_Basedir /sys/class/gpio
GPIO_Nr 23
NAME GPIO23
NR 43
STATE ???
TYPE RPI_GPIO
WiringPi_gpio
eventCount 1
filehandle
READINGS:
Pinlevel:
TIME 2024-05-03 19:12:27
VAL
fhem:
interfaces switch
Attributes:
active_low yes
direction input
interrupt both
2024.05.03 18:54:43 0: Featurelevel: 6.3
2024.05.03 18:54:43 0: Server started with 8 defined entities (fhem.pl:28666/2024-03-16 perl:5.036000 os:linux user:fhem pid:688)
2024.05.03 18:54:47 1: Can't open file: GPIO23, value
2024.05.03 18:54:47 1: GPIO23 GetFn: readout of Pinvalue fail
2024.05.03 18:54:47 1: PERL WARNING: Use of uninitialized value $zustand in concatenation (.) or string at ./FHEM/51_RPI_GPIO.pm line 198.
2024.05.03 18:54:53 1: Can't open file: GPIO23, value
2024.05.03 18:54:53 1: GPIO23 GetFn: readout of Pinvalue fail
2024.05.03 18:54:56 1: Can't open file: GPIO23, value
2024.05.03 18:54:56 1: GPIO23: readout of Pinvalue fail
2024.05.03 18:54:56 1: Can't open file: GPIO23, value
2024.05.03 18:54:56 1: GPIO23 GetFn: readout of Pinvalue fail
2024.05.03 18:55:02 1: Can't open file: GPIO23, value
2024.05.03 18:55:02 1: GPIO23 GetFn: readout of Pinvalue fail
Zitat"capabilities":{"headlights":false,"workAreas":false,"position":false,"stayOutZones":false}
defmod mycounter dummy
attr mycounter stateFormat Garagentor Anzahl Auf: AnzahlAuf -- Anzahl Zu: AnzahlZu
attr mycounter userReadings AnzahlAuf:eventAuf.* {ReadingsNum($name,'AnzahlAuf',0)+1;;},\
AnzahlZu:eventZu.* {ReadingsNum($name,'AnzahlZu',0)+1;;}
attr mycounter webCmd eventAuf:eventZu