1 wire für Neubau

Begonnen von Bamlee, 27 Mai 2017, 19:55:06

Vorheriges Thema - Nächstes Thema

ak323

Ersetz mal die IP Adresse in der letzten Zeile durch "localhost"
RaspberryPi 2 im 19" Rack mit 16x2 i2c LCD, FHEM, diverse HomeMatic, 1-Wire (8x DS18B20, 3x DS2408, 2x DS2413, 5x DS2401, DS2423 ATTiny) über DS9490R#, Waterkotte Ai1QE (WWPR) Wärmepumpe über Modbus, WH1080 über Signalduino, 433MHz Funksteckdosen, WiFi RGBWW via Tasmota, ...

Bamlee

#16
Habe ich auch schon probiert. Habe Jetzt das server: device = /dev/onewire in ttyUSB0 geändert. Wenn ich jetz owdir -s localhost:4304 eingebe in Putty bekomme ich folgendes angezeigt.
Es sind zwei DS18b20 angeschlossen.

/05.67C6697351FF
/10.3397DB020800
/28.FF914D551603
/bus.1
/bus.0
/uncached
/settings
/system
/statistics
/structure
/simultaneous
/alarm


enno

Moin Bam,

habe deinen Post zu spät gesehen. Hast du es schon mal mit dem Modul von Pah versucht. Damit läuft es bei mir ohne Probleme:

https://fhem.de/commandref.html#OWX

Ich habe den Busmaster am USB hängen.  Das einzige Problem, das ich hatte waren die Leserechte fuer /dev/ttyUSB1.

Gruss
Enno
Einfacher FHEM Anwender auf Intel®NUC

Bamlee

Hi enno,

es sieht so aus als würde es jetzt gehen durch deinen Tipp.
Vielen Dank

Bamlee

Leider hängt sich Fhem bei jedem Neustart auf jetzt.
Hat jemand ne Idee wie man das beheben kann?
Gruß
Bam

Frank_Huber


Bamlee

Kein Plan..bekomme nur noch mit mühe eine Verbindung zu Fhem und beim öffnen des Logfiles passiert nichts mehr.
Wenn ich aber das OWX Modul lösche geht wieder alles.

suppenesser

Die logfiles kannst du auch ohne fhem am laufen zu haben lesen!

Schau mal im fhem Verzeichnis danach.

Gesendet von meinem HUAWEI GRA-L09 mit Tapatalk

Raspberry PI B+ | HM-LAN-CFG | HM-LC-Sw1PBU-FM | HM-TC-WM-W-EU | DECT 200 | DHT22 | 1 Wire Temp.Sensoren

Bamlee

#23
Hab ich auch schon aber da steht nix zum heutigen Datum drin.
Wenn ich mit sudo service owserver stop und sudo service owserver start den owserver stoppe und starte geht Fhem wieder.
Aber wenn ich auf Logfiles gehe passiert nix mehr.

Bamlee

Hab jetzt den Logfile

2017.06.13 18:17:09 2: S7_connect: BamS7 Could not connect to PLC (-1)
No such device 192.168.1.23:5555
2017.06.13 18:17:13 1: PERL WARNING: Use of uninitialized value $apk[0] in sort at ./FHEM/98_FireTV.pm line 210, <$fh> line 64.
2017.06.13 18:17:13 1: PERL WARNING: Use of uninitialized value $apk[0] in join or string at ./FHEM/98_FireTV.pm line 211, <$fh> line 64.
2017.06.13 18:17:13 1: PERL WARNING: Use of uninitialized value $apk[0] in join or string at ./FHEM/98_FireTV.pm line 212, <$fh> line 64.
2017.06.13 18:17:13 3: [STV] You are using a deprecated MAC detection mechanism using ifconfig.
2017.06.13 18:17:13 3: [STV] Please install Pearl Modules libnet-address-ip-local-perl and libio-interface-perl
2017.06.13 18:17:13 3: Opening ZWDongle_0 device /dev/ttyACM0
2017.06.13 18:17:13 3: Setting ZWDongle_0 serial parameters to 115200,8,N,1
2017.06.13 18:17:14 3: ZWDongle_0 device opened
2017.06.13 18:17:15 3: ZWave: cannot load Crypt::Rijndael, SECURITY class disabled
2017.06.13 18:17:15 3: Opening TCM_ESP2_0 device /dev/ttyUSB0
2017.06.13 18:17:15 3: Setting TCM_ESP2_0 serial parameters to 9600,8,N,1
2017.06.13 18:17:15 3: TCM_ESP2_0 device opened
2017.06.13 18:17:15 3: Opening OWio1 device /dev/ttyUSB0
2017.06.13 18:17:15 3: Setting OWio1 serial parameters to 9600,8,N,1
2017.06.13 18:17:15 3: OWio1 device opened
2017.06.13 18:17:15 1: OWX: Serial device /dev/ttyUSB0 defined
2017.06.13 18:17:20 3: OWTHERM:  Device OWX_28_FFD043641603 defined.
2017.06.13 18:17:20 3: OWTHERM:  Device OWX_28_FFE834641603 defined.
2017.06.13 18:17:20 3: OWTHERM:  Device OWX_28_FF914D551603 defined.
2017.06.13 18:17:20 3: OWTHERM:  Device OWX_28_FFCD89631604 defined.
2017.06.13 18:17:20 3: OWTHERM:  Device OWX_28_FFAFAD631604 defined.
2017.06.13 19:09:58 1: OWID:     Device IButton_Sara defined.
2017.06.13 19:09:58 1: Including ./log/fhem.save
2017.06.13 19:09:58 1: OWX: 1-Wire bus OWio1: interface master DS2480 detected for the first time
2017.06.13 19:10:00 3: TCM set TCM_ESP2_0 reset
2017.06.13 19:15:40 1: /dev/ttyUSB0 disconnected, waiting to reappear (TCM_ESP2_0)
2017.06.13 19:15:40 2: TCM TCM_ESP2_0 No response data for get reset
2017.06.13 19:15:41 3: TCM get TCM_ESP2_0 baseID
2017.06.13 19:15:41 2: TCM TCM_ESP2_0 No FD
2017.06.13 19:15:41 2: TCM TCM_ESP2_0 initialized
2017.06.13 19:15:41 1: usb create starting
2017.06.13 19:15:41 3: Probing CUL device /dev/ttyAMA0
2017.06.13 19:15:41 3: Probing TCM_ESP3 device /dev/ttyAMA0
2017.06.13 19:15:42 3: Probing FRM device /dev/ttyAMA0
2017.06.13 19:15:47 1: usb create end
2017.06.13 19:15:47 2: SecurityCheck:  WEB,WEBphone,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.
2017.06.13 19:15:47 0: Featurelevel: 5.8
2017.06.13 19:15:47 0: Server started with 86 defined entities (fhem.pl:14348/2017-05-22 perl:5.020002 os:linux user:fhem pid:660)
2017.06.13 19:15:47 3: BamS7 is disconnected ? --> reconnect
2017.06.13 19:15:47 2: BamS7 S7 disconnected
2017.06.13 19:15:47 2: ZWDongle_ProcessSendStack: no ACK, resending message 0107000301020100f9
2017.06.13 19:15:47 3: TempPi S7_AWrite_Set: not connected to PLC
2017.06.13 19:15:47 3: a_temp_send: TempPi S7_AWrite_Set: not connected to PLC
2017.06.13 19:15:47 3: BamS7 S7_WriteBitToPLC: PLC is not connected
2017.06.13 19:15:47 1: PERL WARNING: Argument "BamS7 S7_WriteBitToPLC: PLC is not connected " isn't numeric in numeric eq (==) at ./FHEM/44_S7_DWrite.pm line 314.
2017.06.13 19:15:47 3: eval: {if(InternalIf('ZWDongle_0','STATE','') eq "Initialized"){fhem('set S7_Z_Wave_Status on')}else{fhem('set S7_Z_Wave_Status off')}}
2017.06.13 19:15:47 3: BamS7 S7_WriteBitToPLC: PLC is not connected
2017.06.13 19:15:47 3: Lumi S7_AWrite_Set: not connected to PLC
2017.06.13 19:15:47 3: a_Lumi: Lumi S7_AWrite_Set: not connected to PLC
2017.06.13 19:15:47 3: Bild S7_AWrite_Set: not connected to PLC
2017.06.13 19:15:47 3: Bild1 S7_AWrite_Set: not connected to PLC
2017.06.13 19:15:47 3: Bild2 S7_AWrite_Set: not connected to PLC
2017.06.13 19:15:47 3: Bild3 S7_AWrite_Set: not connected to PLC
2017.06.13 19:15:47 3: Bild4 S7_AWrite_Set: not connected to PLC
2017.06.13 19:15:47 3: Bild5 S7_AWrite_Set: not connected to PLC
2017.06.13 19:15:47 3: Bild6 S7_AWrite_Set: not connected to PLC
2017.06.13 19:15:47 3: Bild7 S7_AWrite_Set: not connected to PLC
2017.06.13 19:15:47 3: a_Bild: Bild S7_AWrite_Set: not connected to PLC
Bild1 S7_AWrite_Set: not connected to PLC
Bild2 S7_AWrite_Set: not connected to PLC
Bild3 S7_AWrite_Set: not connected to PLC
Bild4 S7_AWrite_Set: not connected to PLC
Bild5 S7_AWrite_Set: not connected to PLC
Bild6 S7_AWrite_Set: not connected to PLC
Bild7 S7_AWrite_Set: not connected to PLC
2017.06.13 19:15:47 3: Luftfeuchte S7_AWrite_Set: not connected to PLC
2017.06.13 19:15:47 3: a_Luftfeuchte: Luftfeuchte S7_AWrite_Set: not connected to PLC
2017.06.13 19:15:47 3: Temperatur S7_AWrite_Set: not connected to PLC
2017.06.13 19:15:47 3: Temperatur_max1 S7_AWrite_Set: not connected to PLC
2017.06.13 19:15:47 3: Temperatur_max2 S7_AWrite_Set: not connected to PLC
2017.06.13 19:15:47 3: Temperatur_max3 S7_AWrite_Set: not connected to PLC
2017.06.13 19:15:47 3: Temperatur_max4 S7_AWrite_Set: not connected to PLC
2017.06.13 19:15:47 3: Temperatur_max5 S7_AWrite_Set: not connected to PLC
2017.06.13 19:15:47 3: Temperatur_max6 S7_AWrite_Set: not connected to PLC
2017.06.13 19:15:47 3: Temperatur_max7 S7_AWrite_Set: not connected to PLC
2017.06.13 19:15:47 3: Temperatur_min1 S7_AWrite_Set: not connected to PLC
2017.06.13 19:15:47 3: Temperatur_min2 S7_AWrite_Set: not connected to PLC
2017.06.13 19:15:47 3: Temperatur_min3 S7_AWrite_Set: not connected to PLC
2017.06.13 19:15:47 3: Temperatur_min4 S7_AWrite_Set: not connected to PLC
2017.06.13 19:15:47 3: Temperatur_min5 S7_AWrite_Set: not connected to PLC
2017.06.13 19:15:47 3: Temperatur_min6 S7_AWrite_Set: not connected to PLC
2017.06.13 19:15:47 3: Temperatur_min7 S7_AWrite_Set: not connected to PLC
2017.06.13 19:15:47 3: a_Temperatur: Temperatur S7_AWrite_Set: not connected to PLC
Temperatur_max1 S7_AWrite_Set: not connected to PLC
Temperatur_max2 S7_AWrite_Set: not connected to PLC
Temperatur_max3 S7_AWrite_Set: not connected to PLC
Temperatur_max4 S7_AWrite_Set: not connected to PLC
Temperatur_max5 S7_AWrite_Set: not connected to PLC
Temperatur_max6 S7_AWrite_Set: not connected to PLC
Temperatur_max7 S7_AWrite_Set: not connected to PLC
Temperatur_min1 S7_AWrite_Set: not connected to PLC
Temperatur_min2 S7_AWrite_Set: not connected to PLC
Temperatur_min3 S7_AWrite_Set: not connected to PLC
Temperatur_min4 S7_AWrite_Set: not connected to PLC
Temperatur_min5 S7_AWrite_Set: not connected to PLC
Temperatur_min6 S7_AWrite_Set: not connected to PLC
Temperatur_min7 S7_AWrite_Set: not connected to PLC
2017.06.13 19:15:47 3: Windgeschwindigkeit S7_AWrite_Set: not connected to PLC
2017.06.13 19:15:47 3: a_Windgeschwindigkeit: Windgeschwindigkeit S7_AWrite_Set: not connected to PLC
2017.06.13 19:15:47 3: Sichtweite S7_AWrite_Set: not connected to PLC
2017.06.13 19:15:47 3: a_Sichtweite: Sichtweite S7_AWrite_Set: not connected to PLC
2017.06.13 19:15:56 1: OWX: 1-Wire devices found on bus OWio1 (OWX_28_FFD043641603,OWX_28_FFAFAD631604,IButton_Sara)
2017.06.13 19:16:00 3: TempPi S7_AWrite_Set: not connected to PLC
2017.06.13 19:16:00 3: a_temp_send: TempPi S7_AWrite_Set: not connected to PLC
2017.06.13 19:16:00 3: BamS7 S7_WriteBitToPLC: PLC is not connected
2017.06.13 19:16:00 3: BamS7 S7_WriteBitToPLC: PLC is not connected
2017.06.13 19:16:00 3: Lumi S7_AWrite_Set: not connected to PLC
2017.06.13 19:16:00 3: a_Lumi: Lumi S7_AWrite_Set: not connected to PLC
2017.06.13 19:16:00 3: Bild S7_AWrite_Set: not connected to PLC
2017.06.13 19:16:00 3: Bild1 S7_AWrite_Set: not connected to PLC
2017.06.13 19:16:00 3: Bild2 S7_AWrite_Set: not connected to PLC
2017.06.13 19:16:00 3: Bild3 S7_AWrite_Set: not connected to PLC
2017.06.13 19:16:00 3: Bild4 S7_AWrite_Set: not connected to PLC
2017.06.13 19:16:00 3: Bild5 S7_AWrite_Set: not connected to PLC
2017.06.13 19:16:00 3: Bild6 S7_AWrite_Set: not connected to PLC
2017.06.13 19:16:00 3: Bild7 S7_AWrite_Set: not connected to PLC
2017.06.13 19:16:00 3: a_Bild: Bild S7_AWrite_Set: not connected to PLC
Bild1 S7_AWrite_Set: not connected to PLC
Bild2 S7_AWrite_Set: not connected to PLC
Bild3 S7_AWrite_Set: not connected to PLC
Bild4 S7_AWrite_Set: not connected to PLC
Bild5 S7_AWrite_Set: not connected to PLC
Bild6 S7_AWrite_Set: not connected to PLC
Bild7 S7_AWrite_Set: not connected to PLC
2017.06.13 19:16:00 3: Luftfeuchte S7_AWrite_Set: not connected to PLC
2017.06.13 19:16:00 3: a_Luftfeuchte: Luftfeuchte S7_AWrite_Set: not connected to PLC
2017.06.13 19:16:00 3: Temperatur S7_AWrite_Set: not connected to PLC
2017.06.13 19:16:00 3: Temperatur_max1 S7_AWrite_Set: not connected to PLC
2017.06.13 19:16:00 3: Temperatur_max2 S7_AWrite_Set: not connected to PLC
2017.06.13 19:16:00 3: Temperatur_max3 S7_AWrite_Set: not connected to PLC
2017.06.13 19:16:00 3: Temperatur_max4 S7_AWrite_Set: not connected to PLC
2017.06.13 19:16:00 3: Temperatur_max5 S7_AWrite_Set: not connected to PLC
2017.06.13 19:16:00 3: Temperatur_max6 S7_AWrite_Set: not connected to PLC
2017.06.13 19:16:00 3: Temperatur_max7 S7_AWrite_Set: not connected to PLC
2017.06.13 19:16:00 3: Temperatur_min1 S7_AWrite_Set: not connected to PLC
2017.06.13 19:16:00 3: Temperatur_min2 S7_AWrite_Set: not connected to PLC
2017.06.13 19:16:00 3: Temperatur_min3 S7_AWrite_Set: not connected to PLC
2017.06.13 19:16:00 3: Temperatur_min4 S7_AWrite_Set: not connected to PLC
2017.06.13 19:16:00 3: Temperatur_min5 S7_AWrite_Set: not connected to PLC
2017.06.13 19:16:00 3: Temperatur_min6 S7_AWrite_Set: not connected to PLC
2017.06.13 19:16:00 3: Temperatur_min7 S7_AWrite_Set: not connected to PLC
2017.06.13 19:16:00 3: a_Temperatur: Temperatur S7_AWrite_Set: not connected to PLC
Temperatur_max1 S7_AWrite_Set: not connected to PLC
Temperatur_max2 S7_AWrite_Set: not connected to PLC
Temperatur_max3 S7_AWrite_Set: not connected to PLC
Temperatur_max4 S7_AWrite_Set: not connected to PLC
Temperatur_max5 S7_AWrite_Set: not connected to PLC
Temperatur_max6 S7_AWrite_Set: not connected to PLC
Temperatur_max7 S7_AWrite_Set: not connected to PLC
Temperatur_min1 S7_AWrite_Set: not connected to PLC
Temperatur_min2 S7_AWrite_Set: not connected to PLC
Temperatur_min3 S7_AWrite_Set: not connected to PLC
Temperatur_min4 S7_AWrite_Set: not connected to PLC
Temperatur_min5 S7_AWrite_Set: not connected to PLC
Temperatur_min6 S7_AWrite_Set: not connected to PLC
Temperatur_min7 S7_AWrite_Set: not connected to PLC
2017.06.13 19:16:00 3: Windgeschwindigkeit S7_AWrite_Set: not connected to PLC
2017.06.13 19:16:00 3: a_Windgeschwindigkeit: Windgeschwindigkeit S7_AWrite_Set: not connected to PLC
2017.06.13 19:16:00 3: Sichtweite S7_AWrite_Set: not connected to PLC
2017.06.13 19:16:00 3: a_Sichtweite: Sichtweite S7_AWrite_Set: not connected to PLC
2017.06.13 19:16:00 3: BamS7 S7_connect: connect to PLC with maxPDUlength=960
2017.06.13 19:16:02 3: ZWave got config for fibaro/fgwpe.xml from ./FHEM/lib/openzwave_deviceconfig.xml.gz
2017.06.13 19:16:02 3: ZWave set Funksteckdose off
2017.06.13 19:16:03 3: ZWave set Funksteckdose off
2017.06.13 19:16:04 3: ZWave set Funksteckdose off

enno

Hast du OWX und owserver beides laufen? Deaktiviere mal owserver. Ich nutze nur OWX. Das Modul bringt eigentlich alles mit, was man braucht.

Gruss
Enno
Einfacher FHEM Anwender auf Intel®NUC

Bamlee

Bleibt der deaktiviert mit dem Befehl sudo service owserver stop?

enno

Ich hatte das damals komplett entfernt. Kenne mich daher mit OWSERVER nicht aus. Ich würde aber vermuten, dass es über das Startscript beim Reboot wieder gestartet wird.

Fuer den Test sollte es aber reichen den owserver Service zu stoppen und FHEM "shutdown restart". Wenn es dann klappt, müsstest du das Startscript für owserver ändern oder löschen...
Einfacher FHEM Anwender auf Intel®NUC

Bamlee

Hab's getestet und scheint jetzt zu funktionieren.
Hab noch einen ibutton angeschlossen der nach Neustart jedes mal den zu vor eingestellten Interval von 1s wieder auf 300s stellt. Vielleicht gibt's dafür auch ne Lösung.
Gruß
Bam

enno

Set

    set <name> interval <value>

    sets the time period in seconds for "kicking" the 1-Wire bus (default is 300 seconds). This means:
        With 1-Wire bus interfaces that do not supply power to the 1-Wire bus (attr buspower parasitic), the 1-Wire bus is reset at these intervals.
        With 1-Wire bus interfaces that supply power to the 1-Wire bus (attr buspower = real), all temperature measurement devices on the bus receive the command to start a temperature conversion (saves a lot of time when reading)
        With 1-Wire bus interfaces that contain a busmaster chip, the response to a reset pulse contains information about alarms.


Bei mir habe ich:
attr OWX buspower real
attr OWX interval 150


damit bleibt es immer auf 150. Ob 1s sinnvoll ist, glaube ich nicht. Die Devices müssen doch alle der reihe nach abgfragt werden, dass wird vermutlich nicht in 1 Sekunde erledigt sein...
Einfacher FHEM Anwender auf Intel®NUC