FHEMSync (Alternative zu FHEM2FHEM/RFHEM)

Begonnen von dominik, 18 März 2020, 21:55:46

Vorheriges Thema - Nächstes Thema

Maista

Hallo Dominik,

leider Negativ :(

Ich habe fünf Devices + Firmata im Master gelöscht.
Shutdown von FHEM gemacht, npm install -g fhemsync ausgeführt.
Zitatroot@rpi0:~# npm install -g fhemsync
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
/usr/bin/fhemsync -> /usr/lib/node_modules/fhemsync/fhemsync.js
+ fhemsync@2.3.0
updated 1 package in 7.531s
FHEM via Bash gestartet, aber ich sehe kein GET im Device.

Muss ich den nach jedem npm install die Device löschen oder werden/sollte das GET dann automatisch erscheinen?
Irgendwie was runterfahren oder falsche Reihenfolge installiert?

Du schreibst leider immer noch nicht die Version-Nummer in die Module ;)

Gruss Gerd

PS: Hab die Woche Kurzarbeit, kann also auch zwischendurch testen....

dominik

Ok...muss ich mir morgen nochmals genauer anschauen.
Loeschen der Devices ist nicht mehr notwendig, das war nur in der 1. GET Testversion.

Kannst du mir bitte das Log mit verbose=5 (beim FHEMSYNC Device) per PN zukommen lassen? Danke!

Aja, das WARN beim Installieren ist ok. Das liegt nur daran, dass das 'request' Modul nun nicht mehr weiter supported wird. Da muss ich noch auf ein anderes Modul umstellen - geht gerade einigen so.

Version Nummer ist im Log zu finden, bau ich nun auch im FHEMSYNC Device unter Internals als VERSION ein. In den FHEMSYNC_DEVICEs kann ich es nicht einfuegen, da dort die Version durchaus auch vom Remote Device kommen kann.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Maista

Hallo Dominik,

Verbose 5 habe ich gemacht.

Ein Device habe ich gelöscht und danach ein restart ausgelöst.

List vom gelöschten Device
Internals:
   ALARM      0
   ASYNC      0
   CFGFN     
   DEF        OWTHERM KH_28_FFA45D811604
   ERRCOUNT   0
   FUUID      5e8af07e-f33f-d1a8-16d8-a48a5771e24db898
   INTERVAL   300
   NAME       KH_28_FFA45D811604
   NOTIFYDEV  global
   NR         9709
   NTFY_ORDER 50-KH_28_FFA45D811604
   OW_FAMILY  28
   OW_ID      FFA45D811604
   PRESENT    1
   REMOTENAME KH_28_FFA45D811604
   REMOTETYPE OWTHERM
   ROM_ID     28.FFA45D811604.CF
   STATE      T: 26.88 °C
   TYPE       FHEMSYNC_DEVICE
   owg_temp   26.875
   owg_th     75
   owg_tl     -25
   READINGS:
     2020-04-06 11:04:00   state           T: 26.88 °C
     2020-04-06 11:04:00   temperature     26.875
   helper:
     getlist   
     setlist    interval tempHigh tempLow
   json:
     Name       KH_28_FFA45D811604
     PossibleAttrs alias comment:textField-long eventMap:textField-long group room suppressReading userReadings:textField-long verbose:0,1,2,3,4,5 IODev model:DS1820,DS18B20,DS1822 stateAL stateAH tempOffset tempUnit:Celsius,Fahrenheit,Kelvin tempConv:onkick,onread tempLow tempHigh resolution:9,10,11,12 interval event-aggregator event-min-interval event-on-change-reading event-on-update-reading oldreadings stateFormat:textField-long timestamp-on-change-reading cmdIcon devStateIcon devStateIcon:textField-long devStateStyle icon sortby webCmd webCmdLabel:textField-long widgetOverride userattr
     PossibleSets interval tempHigh tempLow
     Attributes:
       IODev      OWio6
       alias      Kaltwasser
       comment    D_Kaltwasser
       group      Heizung
       icon       sani_water_cold
       model      DS18B20
       room       FHEMSync,Keller,OWX
       tempHigh   75
       tempLow    -25
     Internals:
       ALARM      0
       ASYNC      0
       CFGFN      /opt/fhem/FHEM/Keller_Heizung.cfg
       DEF        DS18B20 FFA45D811604 300
       ERRCOUNT   0
       FUUID      5c4ab7dc-f33f-7a7a-27ba-27e17fa0160df822
       INTERVAL   300
       NAME       KH_28_FFA45D811604
       NOTIFYDEV  global
       NR         612
       NTFY_ORDER 50-KH_28_FFA45D811604
       OW_FAMILY  28
       OW_ID      FFA45D811604
       PRESENT    1
       ROM_ID     28.FFA45D811604.CF
       STATE      T: 26.88 �C
       TYPE       OWTHERM
       owg_temp   26.875
       owg_th     75
       owg_tl     -25
     Readings:
       state:
         Time       2020-04-06 11:02:43
         Value      T: 26.88 �C
       temperature:
         Time       2020-04-06 11:02:43
         Value      26.875
Attributes:
   alias      Kaltwasser
   comment    D_Kaltwasser
   group      Heizung
   icon       sani_water_cold
   model      DS18B20
   room       FHEMSync
   tempHigh   75
   tempLow    -25
   userattr   comment icon model tempHigh tempLow


Wo hin soll ich das Log schicken? Per Forum geht das ja nicht.

Gruss Gerd

PS: Bin nun im Carport Kabel für Steckdose legen ;) Schau sporadisch rein und  wenn ich deine Email hab schick ich dir das Log.

Newbie

Hallo dominik,

nach Update auf 2.3.0 hab ich das im FHEM-Log:

2020.04.06 12:12:32.207 0: syntax error at ./FHEM/10_FHEMSYNC_DEVICE.pm line 124, near "else if"
Can't use global $@ in "my" at ./FHEM/10_FHEMSYNC_DEVICE.pm line 126, near "($@"
Global symbol "$hash" requires explicit package name (did you forget to declare "my $hash"?) at ./FHEM/10_FHEMSYNC_DEVICE.pm line 129.
Global symbol "$hash" requires explicit package name (did you forget to declare "my $hash"?) at ./FHEM/10_FHEMSYNC_DEVICE.pm line 129.
Global symbol "$hash" requires explicit package name (did you forget to declare "my $hash"?) at ./FHEM/10_FHEMSYNC_DEVICE.pm line 131.
Global symbol "$hash" requires explicit package name (did you forget to declare "my $hash"?) at ./FHEM/10_FHEMSYNC_DEVICE.pm line 135.
Global symbol "$hash" requires explicit package name (did you forget to declare "my $hash"?) at ./FHEM/10_FHEMSYNC_DEVICE.pm line 135.
Global symbol "$hash" requires explicit package name (did you forget to declare "my $hash"?) at ./FHEM/10_FHEMSYNC_DEVICE.pm line 138.
Global symbol "$hash" requires explicit package name (did you forget to declare "my $hash"?) at ./FHEM/10_FHEMSYNC_DEVICE.pm line 139.
Global symbol "$hash" requires explicit package name (did you forget to declare "my $hash"?) at ./FHEM/10_FHEMSYNC_DEVICE.pm line 140.
Global symbol "$hash" requires explicit package name (did you forget to declare "my $hash"?) at ./FHEM/10_FHEMSYNC_DEVICE.pm line 140.
Global symbol "$hash" requires explicit package name (did you forget to declare "my $hash"?) at ./FHEM/10_FHEMSYNC_DEVICE.pm line 142.
Global symbol "$hash" requires explicit package name (did you forget to declare "my $hash"?) at ./FHEM/10_FHEMSYNC_DEVICE.pm line 145.
Global symbol "$hash" requires explicit package name (did you forget to declare "my $hash"?) at ./FHEM/10_FHEMSYNC_DEVICE.pm line 147.
Global symbol "$hash" requires explicit package name (did you forget to declare "my $hash"?) at ./FHEM/10_FHEMSYNC_DEVICE.pm line 153.
Global symbol "$hash" requires explicit package name (did you forget to declare "my $hash"?) at ./FHEM/10_FHEMSYNC_DEVICE.pm line 158.
Global symbol "$hash" requires explicit package name (did you forget to declare "my $hash"?) at ./FHEM/10_FHEMSYNC_DEVICE.pm line 162.
Global symbol "$hash" requires explicit package name (did you forget to declare "my $hash"?) at ./FHEM/10_FHEMSYNC_DEVICE.pm line 163.
Global symbol "$hash" requires explicit package name (did you forget to declare "my $hash"?) at ./FHEM/10_FHEMSYNC_DEVICE.pm line 165.
Global symbol "$hash" requires explicit package name (did you forget to declare "my $hash"?) at ./FHEM/10_FHEMSYNC_DEVICE.pm line 165.
Global symbol "$hash" requires explicit package name (did you forget to declare "my $hash"?) at ./FHEM/10_FHEMSYNC_DEVICE.pm line 169.
Global symbol "$hash" requires explicit package name (did you forget to declare "my $hash"?) at ./FHEM/10_FHEMSYNC_DEVICE.pm line 174.
Global symbol "$name" requires explicit package name (did you forget to declare "my $name"?) at ./FHEM/10_FHEMSYNC_DEVICE.pm line 180.
syntax error at ./FHEM/10_FHEMSYNC_DEVICE.pm line 185, near "}"
./FHEM/10_FHEMSYNC_DEVICE.pm has too many errors.


vg Jens
fhem-6.1 (configDB+DbLog)  auf ODROID-XU4

dominik

Danke für den Hinweis, schau ich mir am Abend an, genauso wie das Get.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

dominik

Zitat von: Newbie am 06 April 2020, 12:15:36
Hallo dominik,

nach Update auf 2.3.0 hab ich das im FHEM-Log:

2020.04.06 12:12:32.207 0: syntax error at ./FHEM/10_FHEMSYNC_DEVICE.pm line 124, near "else if"
Can't use global $@ in "my" at ./FHEM/10_FHEMSYNC_DEVICE.pm line 126, near "($@"
Global symbol "$hash" requires explicit package name (did you forget to declare "my $hash"?) at ./FHEM/10_FHEMSYNC_DEVICE.pm line 129.
Global symbol "$hash" requires explicit package name (did you forget to declare "my $hash"?) at ./FHEM/10_FHEMSYNC_DEVICE.pm line 129.
Global symbol "$hash" requires explicit package name (did you forget to declare "my $hash"?) at ./FHEM/10_FHEMSYNC_DEVICE.pm line 131.
Global symbol "$hash" requires explicit package name (did you forget to declare "my $hash"?) at ./FHEM/10_FHEMSYNC_DEVICE.pm line 135.
Global symbol "$hash" requires explicit package name (did you forget to declare "my $hash"?) at ./FHEM/10_FHEMSYNC_DEVICE.pm line 135.
Global symbol "$hash" requires explicit package name (did you forget to declare "my $hash"?) at ./FHEM/10_FHEMSYNC_DEVICE.pm line 138.
Global symbol "$hash" requires explicit package name (did you forget to declare "my $hash"?) at ./FHEM/10_FHEMSYNC_DEVICE.pm line 139.
Global symbol "$hash" requires explicit package name (did you forget to declare "my $hash"?) at ./FHEM/10_FHEMSYNC_DEVICE.pm line 140.
Global symbol "$hash" requires explicit package name (did you forget to declare "my $hash"?) at ./FHEM/10_FHEMSYNC_DEVICE.pm line 140.
Global symbol "$hash" requires explicit package name (did you forget to declare "my $hash"?) at ./FHEM/10_FHEMSYNC_DEVICE.pm line 142.
Global symbol "$hash" requires explicit package name (did you forget to declare "my $hash"?) at ./FHEM/10_FHEMSYNC_DEVICE.pm line 145.
Global symbol "$hash" requires explicit package name (did you forget to declare "my $hash"?) at ./FHEM/10_FHEMSYNC_DEVICE.pm line 147.
Global symbol "$hash" requires explicit package name (did you forget to declare "my $hash"?) at ./FHEM/10_FHEMSYNC_DEVICE.pm line 153.
Global symbol "$hash" requires explicit package name (did you forget to declare "my $hash"?) at ./FHEM/10_FHEMSYNC_DEVICE.pm line 158.
Global symbol "$hash" requires explicit package name (did you forget to declare "my $hash"?) at ./FHEM/10_FHEMSYNC_DEVICE.pm line 162.
Global symbol "$hash" requires explicit package name (did you forget to declare "my $hash"?) at ./FHEM/10_FHEMSYNC_DEVICE.pm line 163.
Global symbol "$hash" requires explicit package name (did you forget to declare "my $hash"?) at ./FHEM/10_FHEMSYNC_DEVICE.pm line 165.
Global symbol "$hash" requires explicit package name (did you forget to declare "my $hash"?) at ./FHEM/10_FHEMSYNC_DEVICE.pm line 165.
Global symbol "$hash" requires explicit package name (did you forget to declare "my $hash"?) at ./FHEM/10_FHEMSYNC_DEVICE.pm line 169.
Global symbol "$hash" requires explicit package name (did you forget to declare "my $hash"?) at ./FHEM/10_FHEMSYNC_DEVICE.pm line 174.
Global symbol "$name" requires explicit package name (did you forget to declare "my $name"?) at ./FHEM/10_FHEMSYNC_DEVICE.pm line 180.
syntax error at ./FHEM/10_FHEMSYNC_DEVICE.pm line 185, near "}"
./FHEM/10_FHEMSYNC_DEVICE.pm has too many errors.


vg Jens

Fixed im 1. Post.

@Gerd, bitte per PN und einfach copy&paste einfuegen.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Maista

@dominik
OK. Wenn das alles rein passt.
Bin aber noch beschäftigt

Newbie

fhem-6.1 (configDB+DbLog)  auf ODROID-XU4

Maista

#158
@dominik
das sind 700kb. Ich hänge das hier als ZIP an.

Wenn Du es hast, lösche ich den Anhang wieder.
Anhang gelöscht

Gruss
Gerd

dominik

Danke, ist heruntergeladen und kann geloescht werden.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

dominik

Fehler gefunden, bitte mit fhemsync 2.4.0 testen dann sollten wir wieder einen Schritt weiter sein.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Maista

Hallo Dominik,

Ergebnis leider Negativ :(

-FHEM gestoppt
-Update in der Bash
-Auf dem Master wieder das Device gelöscht, (Kaltwasser)

Aber GET taucht nicht auf.

Anbei das Aktuelle ZIP

Gruss Gerd

dominik

Hi,
im Log ist leider noch Version 2.3.0. Pruefe bitte nochmals ob 2.4.0 installiert wurde:
fhemsync -V
in der Linux Console.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Maista

Ach..hattest du die Module auch neu?
Schau noch kitchen Impossible

Danach schau ich

Gruß

dominik

Nein, eigentlich nur fhemsync. Die Module hatte ich nicht aktualisiert.

Wahrscheinlich ist das Update nicht ganz durch gegangen:
sudo npm install -g fhemsync
fhemsync -V

Da sollte dann 2.4.0 angezeigt werden.

Alles klar, schon mal Danke fuers Testen!
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik