Unknown module GenShellSwitch

Begonnen von Chriss6n, 21 Mai 2016, 22:37:22

Vorheriges Thema - Nächstes Thema

Chriss6n

Halo ich habe gestern mal angefangen mich ein wenig mit FHEM und elro steckdosen , und no name funksteckdosen mich auseinander zusetzen .
also die Elro hab ich hinbekommen.

jetzt zu meinem prob
die noname Steckdosen haben keine dip schalter macht nichts die cods hab ich mit RNSniffer ausgelesen bekommen z.b code 11 und code 10 für die steckdose 3 zum ein und ausschaltern

über die console bekomm ich die auch mittels :

pi@raspberrypi:~/433Utils/RPi_utils $ sudo ./codesend 10
sending code[10]
pi@raspberrypi:~/433Utils/RPi_utils $ sudo ./codesend 11
sending code[11]
pi@raspberrypi:~/433Utils/RPi_utils $

hin

jetzt versuche ich das ganze ins FHEM einzubinden und bekomme es einfach nicht zum laufen wenn ich:

wenn ich was mit genshell eingebe bekomm ich immer eine fehlermeldung :
Unknown module GenShellSwitch

habe eingegeben :define Lampe /433Utils/RPi_utils/codesend 11


könnt ihr mir helfen bekomme die dinger einfach nicht ans laufen und die genshell funktioniert leider auch nicht hier nochmal ein auszug aus der FHEM.conf

attr global userattr cmdIcon devStateIcon devStateStyle icon sortby webCmd widgetOverride
attr global autoload_undefined_devices 1
attr global logfile ./log/fhem-%Y-%m.log
attr global modpath .
attr global motd SecurityCheck:\
\
WEB,WEBtablet has no associated allowed device with basicAuth.\
telnetPort has no associated allowed device with password/globalpassword.\
\
Restart FHEM for a new check if the problem is fixed,\
or set the global attribute motd to none to supress this message.\

attr global statefile ./log/fhem.save
attr global updateInBackground 1
attr global verbose 3

define telnetPort telnet 7072 global

define WEB FHEMWEB 8083 global
attr WEB editConfig 1
attr WEB stylesheetPrefix darktouchpad

define WEBphone FHEMWEB 8084 global
attr WEBphone stylesheetPrefix smallscreen
define allowed_WEBphone allowed
attr allowed_WEBphone basicAuth Y2hyaXNzNm46RGlldGVyMTUxMTg2
attr allowed_WEBphone validFor WEBphone

define WEBtablet FHEMWEB 8085 global
attr WEBtablet stylesheetPrefix touchpad

# Fake FileLog entry, to access the fhem log from FHEMWEB
define Logfile FileLog ./log/fhem-%Y-%m.log fakelog

define autocreate autocreate
attr autocreate filelog ./log/%NAME-%Y.log

define eventTypes eventTypes ./log/eventTypes.txt

# Disable this to avoid looking for new USB devices on startup
define initialUsbCheck notify global:INITIALIZED usb create

# ELRO Funksteckdosen 434Mhz
define LED1 dummy
attr LED1 setList on off
attr LED1 room Wohnzimmer
define off_LED1 notify LED1:off {system("/usr/bin/send 11111 1 0 &")}
define on_LED1 notify LED1:on { system("/usr/bin/send 11111 1 1 &")}

# ELRO Funksteckdosen 434Mh2z
define LED2 dummy
attr LED2 setList on off
attr LED2 room Wohnzimmer
define off_LED2 notify LED2:off {system("/usr/bin/send 11111 2 0 &")}
define on_LED2 notify LED2:on { system("/usr/bin/send 11111 2 1 &")}

# ELRO Funksteckdosen 434Mh3z
define Kugel dummy
attr Kugel setList on off
attr Kugel room Außen
define off_Kugel notify Kugel:off {system("/usr/bin/send 11111 3 0 &")}
define on_Kugel notify Kugel:on { system("/usr/bin/send 11111 3 1 &")}




Danke schonmal im Vorfeld

ernst1024

#1
hast du denn GenShellSwitch.pm geladen? Ist, meine ich kein Bestandteil von fhem, musst du extra aus dem Netz laden.
Was machst du denn da mit den notifys? So sieht das bei mir aus (raspberry-remote ist wie 433Utils)

define FSD1 GenShellSwitch /home/pi/raspberry-remote/send 10001 1 1 0
Gruß Ernst

Chriss6n

hab das manuell in die fhem ordner kopiert geht dennoch nicht

CoolTux

Hast Du auch ein reload "Moduldatei" gemacht
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

Chriss6n

ne wie mach ich das hab den pi nur neu gestartet

CoolTux

neustart geht auch dann sollte das Modul ohne hin geladen werden.
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

franky08

Rechte, Benutzer, Gruppe angepasst? Ist der Standartfehler
Debian Wheezy auf ZBOX nano/ Debian Bullseye auf 2.ter ZBOX nano F2F an 2x RaspiB
22Zoll ViewSonic als Infodislay (WVC)
3xHMLAN mit vccu ,fhem5.8, CCU2,
ECMD an AVR-NET-IO mit DAC u. ADC an Junkers Stetigregelung, Siemens LOGO!8, JeeLink uvm...

ernst1024

Zitat von: Chriss6n am 21 Mai 2016, 22:55:16
hab das manuell in die fhem ordner kopiert geht dennoch nicht

was heisst denn 'in die fhem ordner kopiert'? Wieviele hast du denn davon? 00_GenShellSwitch gehört in /opt/fhem/FHEM
Gruß Ernst

Chriss6n

shit jetzt hab ich mir mein ganzes FHEM zerschossen welche rechte hat normal der FHME ordner ? hatte es auf 777 gestellt  und jetzt komm ich nichtmehr über die web oberfläche drauf

Chriss6n

so das genshell prob hab ich gelöst also hatte die datei in den falschen ordner kopier naja jetzt geht das aber wie müsste mein code aussehen damit meine noname steckdose schaltet

ernst1024

wenn du wie du zuvor sagtest mit ./codesend 10 die Steckdose schalten kannst dann würde das so aussehen (Pfad natürlich anpassen)

define DEINE_STECKDOSE GenShellSwitch /home/pi/433Utils/RPi_utils/codesend 10


wobei mir der code doch reichlich suspekt vorkommt?
Gruß Ernst

Chriss6n

kommt das bei rum im log file

2016.05.22 00:18:27 1: PERL WARNING: Can't exec "/home/pi/433Utils/RPi_utils/codesend": Keine Berechtigung at ./FHEM/00_GenShellSwitch.pm line 131.

ernst1024

was sagt denn:


ls -l /opt/fhem/FHEM/00_Gen*


Gruß Ernst

Chriss6n

Sagt -rwxrw -rw -1 pi:pi

Gesendet von meinem SM-G900F mit Tapatalk


CoolTux

Und mit welchen Rechten läuft wohl Dein FHEM? Ich denke eher nicht als User pi


Grüße
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net