Erweiterung UNIRoll-Modul

Begonnen von C_Herrmann, 29 Januar 2014, 21:13:34

Vorheriges Thema - Nächstes Thema

marco_owl

so....nun wird alles auf der Startseite angezeigt....danke erst mal für die Tips..schaut mal das angehängte Bild an...so soll es doch sein, oder?

C_Herrmann

OK, das sieht gut aus. Jetzt musst Du das Rollo noch anlernen. Dazu musst Du den Anlernknopf am Funkmodul kurz drücken und innerhalb von 5 Sekunden einen auf- oder ab-Befehl aus Fhem senden. Die LED im Funkmodul blinkt 3x zur Bestätigung. Das war's.
FHEM auf RPi, CUL868, FHT, UNIRoll, verschiedene FS20 Komponenten, IT, Zigbee zum Testen

marco_owl

ok...vielen Dank...dumme frage, wie sende ich manuel den Befehl?

marco_owl

muss ich einfach auf oder ab anklicken?

Olly

Zitat von: marco_owl am 28 Februar 2014, 21:46:14
muss ich einfach auf oder ab anklicken?
ja, das reicht.

Gruß

    Olly
BananaPi 1GB;NetCSM 868MHz, miniCUL 433MHz, LaCrosseGateway, 2x SignalESP; FHEM 6.2

marco_owl

huhu, da bin ich wieder...habe heute das erste Funkmodul eingebaut, den kleinen Taster betätigt und dann im FHEM auf und ab gedrückt....doch leider ist nichts passiert.

Kann es sein, dass meine CUL noch irgendwelche falschen Einstellungen hat? Anbei mal die Daten.

marco_owl

ach ja, die Fritzbox steht 2,5 m entfernt mit Sichtverbindung, an die CUL habe ich die ca. 40 cm lange Antenne von Busware angeschlossen ::)

Olly

Hi,

eigentlich sieht das gut aus.
Wichtig ist, nach drücken des Tasters am Empfänger schnell genug den Befehl in FHEM zu senden (Max. 2 Sec).

Gruß

      Olly
BananaPi 1GB;NetCSM 868MHz, miniCUL 433MHz, LaCrosseGateway, 2x SignalESP; FHEM 6.2

marco_owl

#23
hmmm....das steht im logfile:
2014.03.01 16:52:42 2: UNIRoll set uniroll_ku down
2014.03.01 16:52:42 2: CUL_0: unknown message LOVF
2014.03.01 16:52:42 2: CUL_0: unknown message LOVF

in der Anleitung zum funkmodul steht, taster kurz drücken...
Habe das uniroll auch schon auf man gestellt, den taster länger gedrückt, bis die LED blinken...aber es scheint so, als wenn die beiden keine Verbindung schaffen
was muss denn bei bandwidth stehen?

Ich weiss, wir haben an der cul rumprobiert, als wir versucht haben, die elro Steckdosen in Betrieb zu nehmen...aber da waren wir auch kläglich gescheitert

Olly

Das bedeutet glaube ich, dass Du bereits zu viel gesendet hast. Stichwort 1% Regel
BananaPi 1GB;NetCSM 868MHz, miniCUL 433MHz, LaCrosseGateway, 2x SignalESP; FHEM 6.2

marco_owl

d.h, ich muss warten? oder sollte ich FHEM neu starten?
Interessant auch gerade, dass meine Icons von gestern heute wieder weg waren...

marco_owl

#26
done...aber von reload steht nix im log

16:52:42 2: UNIRoll set uniroll_ku down
2014.03.01 16:52:42 2: CUL_0: unknown message LOVF
2014.03.01 16:52:42 2: CUL_0: unknown message LOVF
2014.03.01 17:26:33 0: Server shutdown
2014.03.01 17:26:37 1: Including fhem.cfg
2014.03.01 17:26:38 3: telnetPort: port 7072 opened
2014.03.01 17:26:39 3: WEB: port 8083 opened
2014.03.01 17:26:39 3: WEBphone: port 8084 opened
2014.03.01 17:26:39 3: WEBtablet: port 8085 opened
2014.03.01 17:26:40 3: Opening fbaha device localhost:2002
2014.03.01 17:26:40 3: Can't connect to localhost:2002: Connection refused
2014.03.01 17:26:40 2: eventTypes: loaded 5 events from ./log/eventTypes.txt
2014.03.01 17:26:40 3: Opening CUL_0 device /dev/ttyACM0
2014.03.01 17:26:41 3: Setting CUL_0 baudrate to 9600
2014.03.01 17:26:41 3: CUL_0 device opened
2014.03.01 17:26:41 3: CUL_0: Possible commands: BCFiAZEGMRTVWXefmltux
2014.03.01 17:26:41 3: No I/O device found for uniroll_ku
2014.03.01 17:26:41 1: Including ./log/fhem.save
2014.03.01 17:26:41 1: usb create starting
2014.03.01 17:26:41 3: Probing CUL device /dev/ttyACM1
2014.03.01 17:26:41 3: Can't open /dev/ttyACM1: Invalid argument
2014.03.01 17:26:41 3: Probing TCM310 device /dev/ttyUSB0
2014.03.01 17:26:41 3: Can't open /dev/ttyUSB0: No such device
2014.03.01 17:26:41 3: Probing TCM310 device /dev/ttyUSB1
2014.03.01 17:26:41 3: Can't open /dev/ttyUSB1: No such device
2014.03.01 17:26:41 1: usb create end
2014.03.01 17:26:41 2: SecurityCheck:  WEB,WEBphone,WEBtablet has no basicAuth attribute. telnetPort has no password/globalpassword attribute. Running with root privileges. Restart fhem for a new check if the problem is fixed, or set the global attribute motd to none to supress this message.
2014.03.01 17:26:41 0: Server started with 15 defined entities (version $Id: fhem.pl 4935 2014-02-15 08:34:09Z rudolfkoenig $, os linux, user unknown, pid 6070)


und 2 weitere versuche ohne erfolg
2014.03.01 17:32:12 2: UNIRoll set uniroll_ku down
2014.03.01 17:32:23 2: UNIRoll set uniroll_ku up


und gerade im NAS geschaut, die 10_Uniroll PM ist noch da

C_Herrmann

Hallo,

Zitat
2014.03.01 17:26:40 3: Opening CUL_0 device /dev/ttyACM0
2014.03.01 17:26:41 3: Setting CUL_0 baudrate to 9600
2014.03.01 17:26:41 3: CUL_0 device opened
2014.03.01 17:26:41 3: CUL_0: Possible commands: BCFiAZEGMRTVWXefmltux
2014.03.01 17:26:41 3: No I/O device found for uniroll_ku
Das ist in Ordnung.

Zitat
2014.03.01 17:26:41 1: Including ./log/fhem.save
2014.03.01 17:26:41 1: usb create starting
2014.03.01 17:26:41 3: Probing CUL device /dev/ttyACM1
2014.03.01 17:26:41 3: Can't open /dev/ttyACM1: Invalid argument
2014.03.01 17:26:41 3: Probing TCM310 device /dev/ttyUSB0
2014.03.01 17:26:41 3: Can't open /dev/ttyUSB0: No such device
2014.03.01 17:26:41 3: Probing TCM310 device /dev/ttyUSB1
2014.03.01 17:26:41 3: Can't open /dev/ttyUSB1: No such device
2014.03.01 17:26:41 1: usb create end

Hier soll wohl ein 2. CUL geladen werden, der nicht vorhanden ist. Es müsste bei Dir ein notify initialUsbCheck geben. Setze das mal auf disabled, damit beim Start nicht ständig ein CUL gesucht wird.

Lösche alle nicht vorhandenen Geräte aus der Konfiguration.

Mein CUL ist mit /dev/ttyACM0@38400 definiert. Das sollte aber keinen Unterschied machen.

Gruß,
Christian
FHEM auf RPi, CUL868, FHT, UNIRoll, verschiedene FS20 Komponenten, IT, Zigbee zum Testen

marco_owl

FHEM cfg:
attr global autoload_undefined_devices 1
attr global logfile ./log/fhem-%Y-%m.log
attr global modpath .
attr global motd SecurityCheck:\
\
WEB,WEBphone,WEBtablet has no basicAuth attribute.\
telnetPort has no password/globalpassword attribute.\
Running with root privileges.\
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 sendStatistics onUpdate
attr global statefile ./log/fhem.save
attr global uniqueID ./FHEM/FhemUtils/uniqueID
attr global updateInBackground 1
attr global userattr devStateIcon devStateStyle icon sortby webCmd
attr global verbose 3

define telnetPort telnet 7072 global

define WEB FHEMWEB 8083 global
attr WEB stylesheetPrefix bright

define WEBphone FHEMWEB 8084 global
attr WEBphone stylesheetPrefix smallscreen

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 autosave 1
attr autocreate device_room %TYPE
attr autocreate filelog ./log/%NAME-%Y.log
attr autocreate room Unsorted
attr autocreate weblink 1
attr autocreate weblink_room Plots


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


# If the above notify did not helped, then you probably have to enable some of
# the following lines.  Verify first that /dev/xxx ist correct.

#define FHZ FHZ /dev/USB0
#define CUL CUL /dev/ttyACM0@9600 1234
#attr CUL rfmode HomeMatic

#define EUL TCM 310 /dev/ttyACM0@57600
#define BscBor TCM 120 /dev/ttyUSB0@9600
#define BscSmartConnect TCM 310 /dev/ttyUSB0@57600

define fbaha FBAHA localhost:2002
define eventTypes eventTypes ./log/eventTypes.txt
define CUL_0 CUL /dev/ttyACM0@9600 1034
attr CUL_0 icon cul_cul


define uniroll_ku UNIRoll 1234 5
attr uniroll_ku IODev CUL_0
attr uniroll_ku comment Rolladen Wohnzimmer
attr uniroll_ku eventMap /down 11:Ab80/down:Ab/up:Auf/stop:Stop/
attr uniroll_ku icon fts_shutter_updown
attr uniroll_ku model R_23700
attr uniroll_ku webCmd Auf:Stop:Ab80:Ab

define FileLog_uniroll_ku FileLog ./log/uniroll_ku-%Y.log uniroll_ku
attr FileLog_uniroll_ku logtype text
define Rollo_wz_runter at *{sunset()} set rollo_wz Ab
attr Rollo_wz_runter icon weather_sunset
define Rollo_wz_rauf at *{sunrise()} set rollo_wz down
attr Rollo_wz_rauf icon weather_sunrise

muss ich da noch was löschen?

C_Herrmann

Hallo,

beim notify initialUsbCheck muss disabled auf 1 gesetzt werden, damit es deaktiviert wird. Der Rest dürfte nicht stören.

Du hast at's für uniroll_wz definiert aber kein entsprechendes Gerät angelegt.

Funktioniert Dein Rollo denn jetzt?

Gruß,
Christian
FHEM auf RPi, CUL868, FHT, UNIRoll, verschiedene FS20 Komponenten, IT, Zigbee zum Testen