Neues Modul: ESPEasy [war: ESPEasy ohne MQTT]

Begonnen von dev0, 18 Juli 2016, 11:53:28

Vorheriges Thema - Nächstes Thema

dev0

Dieser PoC ist auch nicht für den produktiven Betrieb gedacht.
Du steckst bestimmt auch USB Sticks in deinen Rechner, die Du auf der Straße findest?  ;) ;)

max333

Zitat von: dev0 am 04 September 2016, 19:21:21
Du steckst bestimmt auch USB Sticks in deinen Rechner, die Du auf der Straße findest?  ;) ;)

Nein natürlich nicht, erst an den Firmenrechner! ;) ;)

Zitat von: dev0 am 04 September 2016, 19:21:21
Dieser PoC ist auch nicht für den produktiven Betrieb gedacht.

Zum Testen habe ich einen 2. Odroid mit Fhem.

kroonen

Hi

I tested R126 and the new plugin 0.4.1

I have a bug I think. I got a temp/humidity sensor. I have set 1 decimal, and in the interface of espeasy I get 22.9, in fhem I get 22.89. With humidity it works fine.

regards Richard





max333

Zitat von: dev0 am 04 September 2016, 18:29:36
Habe gerade gesehen, dass seit der R120 die mitgelieferte ArduinoJson Lib neu genug ist um float_with_n_digits() nutzen zu können. Kann ich mir aber erst im Laufe der nächsten Woche ansehen.

Das Problem mit der wissenschaftlichen Notation scheint bekannt zu sein. Ich habe mit deiner _C009.ino noch mal "gespielt" und schreibe die Werte der Sensoren erst in eine String-Variable und übergebe diese dann an Json. Bei mir werden dann alle Werte wie gewünscht dargestellt.

dev0

#139
Die Probleme bzgl. Nachkommastellen und Ungenauigkeiten durch die wissenschaftliche Notation sollten gefixed sein. Dazu wird die aktuelle Version des _C009.ino Plugin benötigt. Update: Das Plugin ist jetzt mit R128 vefügbar. Der Pull Request wartet z.Z. auf die Übernahme in die ESPEasy Distribution (R128?). Vorab gibt es die Version hier.

Tipp: Achtet beim Compilieren darauf, dass die ArduinoJson Library aktuell ist, sonst werden alle Werte zu "1". Die ArduinoJson Version, die der ESPEasy Version R120 beiliegt, reicht aber aus.

Weiterhin habe ich die Konvertierung (0,1 zu on,off) beim Device Typ "Switch" in das Modul verlagert. Diese Umwandlung kann nun mit dem neuen Attribut "readingSwitchText 0" abgeschaltet werden. Ohne das Attribut ändert sich nichts.

Das aktualisierte Modul liegt hier: https://github.com/ddtlabs/ESPEasy
Zitat
v 0.4.2
- more unique dispatch separator
- moved on|off translation for device type "SWITCH" from  ESPEasy Software to this module.
- new attribute readingSwitchText

@kroonen: Do you need some translation?

JoWiemann

Hallo,

zunächst einmal vielen Dank für die hervorragende Arbeit. Alles in allem bisher für mich der beste Ansatz für ESP... und Fhem. Eine Wunsch hätte ich noch. Aus Gründen der Sicherheit würde ich es gut finden, wenn die "on/off for timer" Funktion der FS20 Aktoren in espeasy integriert würde. Hierdurch wäre sicher gestellt, dass nach x Sekunden, sofern nicht ein neuer Trigger gesetzt wird, der adressierte GPIO auf low geht.

In meinem Anwendungsfall sieht das so aus:

Fenster- und Türsensor, sowie Thermostat schalten einen elektrischen Heizkörper ein/aus. Durch "on for timer" im FS20 Aktor wird sicher gestellt, dass bei fehlendem "Aus" die Heizung auf jeden Fall nach 120 Sekunden ausgeschaltet wird.

Grüße Jörg
Jörg Wiemann

Slave: RPi B+ mit 512 MB, COC (868 MHz), CUL V3 (433.92MHz SlowRF); FHEMduino, Aktuelles FHEM

Master: CubieTruck; Debian; Aktuelles FHEM

JoWiemann

Hallo,

habe mir nun die aktuelle Version des Fhem-Moduls auf mein Testsystem gezogen und bekomme beim Starten von Fhem folgende Log-Einträge:


[Tue Sep  6 11:54:40 2016] fhem.pl: Use of uninitialized value $ident:: in concatenation (.) or string at /opt/fhem/FHEM/34_ESPEasy.pm line 867.
[Tue Sep  6 11:54:40 2016] fhem.pl: Use of uninitialized value $host:: in concatenation (.) or string at /opt/fhem/FHEM/34_ESPEasy.pm line 867.
[Tue Sep  6 11:54:40 2016] fhem.pl: Use of uninitialized value $ac:: in concatenation (.) or string at /opt/fhem/FHEM/34_ESPEasy.pm line 867.
[Tue Sep  6 11:54:40 2016] fhem.pl: Use of uninitialized value $as:: in concatenation (.) or string at /opt/fhem/FHEM/34_ESPEasy.pm line 867.
[Tue Sep  6 11:54:40 2016] fhem.pl: Use of uninitialized value $v in split at /opt/fhem/FHEM/34_ESPEasy.pm line 893.
[Tue Sep  6 11:54:40 2016] fhem.pl: Use of uninitialized value $ac in string eq at /opt/fhem/FHEM/34_ESPEasy.pm line 905.
[Tue Sep  6 11:54:40 2016] fhem.pl: Use of uninitialized value $ip in hash element at /opt/fhem/FHEM/34_ESPEasy.pm line 910.
[Tue Sep  6 11:54:40 2016] fhem.pl: Use of uninitialized value in string ne at /opt/fhem/FHEM/34_ESPEasy.pm line 910.
2016.09.06 11:54:40 2: ESPEasy ESPBridge: autocreate is disabled (ident: deletereading||GPIO.*||undef||0)
[Tue Sep  6 11:54:40 2016] fhem.pl: Use of uninitialized value $ip in hash element at /opt/fhem/FHEM/34_ESPEasy.pm line 912.
[Tue Sep  6 11:54:40 2016] fhem.pl: Use of uninitialized value $ident:: in concatenation (.) or string at /opt/fhem/FHEM/34_ESPEasy.pm line 867.
[Tue Sep  6 11:54:40 2016] fhem.pl: Use of uninitialized value $host:: in concatenation (.) or string at /opt/fhem/FHEM/34_ESPEasy.pm line 867.
[Tue Sep  6 11:54:40 2016] fhem.pl: Use of uninitialized value $ac:: in concatenation (.) or string at /opt/fhem/FHEM/34_ESPEasy.pm line 867.
[Tue Sep  6 11:54:40 2016] fhem.pl: Use of uninitialized value $as:: in concatenation (.) or string at /opt/fhem/FHEM/34_ESPEasy.pm line 867.
[Tue Sep  6 11:54:40 2016] fhem.pl: Use of uninitialized value $v in split at /opt/fhem/FHEM/34_ESPEasy.pm line 893.
[Tue Sep  6 11:54:40 2016] fhem.pl: Use of uninitialized value $ac in string eq at /opt/fhem/FHEM/34_ESPEasy.pm line 905.
[Tue Sep  6 11:54:40 2016] fhem.pl: Use of uninitialized value $ip in hash element at /opt/fhem/FHEM/34_ESPEasy.pm line 910.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value in string ne at /opt/fhem/FHEM/34_ESPEasy.pm line 910.
2016.09.06 11:54:41 2: ESPEasy ESPBridge: autocreate is disabled (ident: setreading||presence||absent||0)
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $ip in hash element at /opt/fhem/FHEM/34_ESPEasy.pm line 912.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $ident:: in concatenation (.) or string at /opt/fhem/FHEM/34_ESPEasy.pm line 867.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $host:: in concatenation (.) or string at /opt/fhem/FHEM/34_ESPEasy.pm line 867.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $ac:: in concatenation (.) or string at /opt/fhem/FHEM/34_ESPEasy.pm line 867.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $as:: in concatenation (.) or string at /opt/fhem/FHEM/34_ESPEasy.pm line 867.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $v in split at /opt/fhem/FHEM/34_ESPEasy.pm line 893.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $ac in string eq at /opt/fhem/FHEM/34_ESPEasy.pm line 905.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $ip in hash element at /opt/fhem/FHEM/34_ESPEasy.pm line 910.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $ip in hash element at /opt/fhem/FHEM/34_ESPEasy.pm line 912.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $ident:: in concatenation (.) or string at /opt/fhem/FHEM/34_ESPEasy.pm line 867.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $host:: in concatenation (.) or string at /opt/fhem/FHEM/34_ESPEasy.pm line 867.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $ac:: in concatenation (.) or string at /opt/fhem/FHEM/34_ESPEasy.pm line 867.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $as:: in concatenation (.) or string at /opt/fhem/FHEM/34_ESPEasy.pm line 867.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $v in split at /opt/fhem/FHEM/34_ESPEasy.pm line 893.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $ac in string eq at /opt/fhem/FHEM/34_ESPEasy.pm line 905.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $ip in hash element at /opt/fhem/FHEM/34_ESPEasy.pm line 910.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $ip in hash element at /opt/fhem/FHEM/34_ESPEasy.pm line 912.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $ident:: in concatenation (.) or string at /opt/fhem/FHEM/34_ESPEasy.pm line 867.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $host:: in concatenation (.) or string at /opt/fhem/FHEM/34_ESPEasy.pm line 867.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $ac:: in concatenation (.) or string at /opt/fhem/FHEM/34_ESPEasy.pm line 867.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $as:: in concatenation (.) or string at /opt/fhem/FHEM/34_ESPEasy.pm line 867.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $v in split at /opt/fhem/FHEM/34_ESPEasy.pm line 893.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $ac in string eq at /opt/fhem/FHEM/34_ESPEasy.pm line 905.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $ip in hash element at /opt/fhem/FHEM/34_ESPEasy.pm line 910.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $ip in hash element at /opt/fhem/FHEM/34_ESPEasy.pm line 912.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $ident:: in concatenation (.) or string at /opt/fhem/FHEM/34_ESPEasy.pm line 867.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $host:: in concatenation (.) or string at /opt/fhem/FHEM/34_ESPEasy.pm line 867.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $ac:: in concatenation (.) or string at /opt/fhem/FHEM/34_ESPEasy.pm line 867.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $as:: in concatenation (.) or string at /opt/fhem/FHEM/34_ESPEasy.pm line 867.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $v in split at /opt/fhem/FHEM/34_ESPEasy.pm line 893.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $ac in string eq at /opt/fhem/FHEM/34_ESPEasy.pm line 905.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $ip in hash element at /opt/fhem/FHEM/34_ESPEasy.pm line 910.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $ip in hash element at /opt/fhem/FHEM/34_ESPEasy.pm line 912.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $ident:: in concatenation (.) or string at /opt/fhem/FHEM/34_ESPEasy.pm line 867.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $host:: in concatenation (.) or string at /opt/fhem/FHEM/34_ESPEasy.pm line 867.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $ac:: in concatenation (.) or string at /opt/fhem/FHEM/34_ESPEasy.pm line 867.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $as:: in concatenation (.) or string at /opt/fhem/FHEM/34_ESPEasy.pm line 867.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $v in split at /opt/fhem/FHEM/34_ESPEasy.pm line 893.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $ac in string eq at /opt/fhem/FHEM/34_ESPEasy.pm line 905.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $ip in hash element at /opt/fhem/FHEM/34_ESPEasy.pm line 910.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $ip in hash element at /opt/fhem/FHEM/34_ESPEasy.pm line 912.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $ident:: in concatenation (.) or string at /opt/fhem/FHEM/34_ESPEasy.pm line 867.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $host:: in concatenation (.) or string at /opt/fhem/FHEM/34_ESPEasy.pm line 867.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $ac:: in concatenation (.) or string at /opt/fhem/FHEM/34_ESPEasy.pm line 867.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $as:: in concatenation (.) or string at /opt/fhem/FHEM/34_ESPEasy.pm line 867.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $v in split at /opt/fhem/FHEM/34_ESPEasy.pm line 893.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $ac in string eq at /opt/fhem/FHEM/34_ESPEasy.pm line 905.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $ip in hash element at /opt/fhem/FHEM/34_ESPEasy.pm line 910.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $ip in hash element at /opt/fhem/FHEM/34_ESPEasy.pm line 912.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $ident:: in concatenation (.) or string at /opt/fhem/FHEM/34_ESPEasy.pm line 867.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $host:: in concatenation (.) or string at /opt/fhem/FHEM/34_ESPEasy.pm line 867.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $ac:: in concatenation (.) or string at /opt/fhem/FHEM/34_ESPEasy.pm line 867.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $as:: in concatenation (.) or string at /opt/fhem/FHEM/34_ESPEasy.pm line 867.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $v in split at /opt/fhem/FHEM/34_ESPEasy.pm line 893.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $ac in string eq at /opt/fhem/FHEM/34_ESPEasy.pm line 905.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $ip in hash element at /opt/fhem/FHEM/34_ESPEasy.pm line 910.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $ip in hash element at /opt/fhem/FHEM/34_ESPEasy.pm line 912.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $ident:: in concatenation (.) or string at /opt/fhem/FHEM/34_ESPEasy.pm line 867.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $host:: in concatenation (.) or string at /opt/fhem/FHEM/34_ESPEasy.pm line 867.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $ac:: in concatenation (.) or string at /opt/fhem/FHEM/34_ESPEasy.pm line 867.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $as:: in concatenation (.) or string at /opt/fhem/FHEM/34_ESPEasy.pm line 867.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $v in split at /opt/fhem/FHEM/34_ESPEasy.pm line 893.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $ac in string eq at /opt/fhem/FHEM/34_ESPEasy.pm line 905.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $ip in hash element at /opt/fhem/FHEM/34_ESPEasy.pm line 910.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $ip in hash element at /opt/fhem/FHEM/34_ESPEasy.pm line 912.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $ident:: in concatenation (.) or string at /opt/fhem/FHEM/34_ESPEasy.pm line 867.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $host:: in concatenation (.) or string at /opt/fhem/FHEM/34_ESPEasy.pm line 867.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $ac:: in concatenation (.) or string at /opt/fhem/FHEM/34_ESPEasy.pm line 867.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $as:: in concatenation (.) or string at /opt/fhem/FHEM/34_ESPEasy.pm line 867.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $v in split at /opt/fhem/FHEM/34_ESPEasy.pm line 893.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $ac in string eq at /opt/fhem/FHEM/34_ESPEasy.pm line 905.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $ip in hash element at /opt/fhem/FHEM/34_ESPEasy.pm line 910.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $ip in hash element at /opt/fhem/FHEM/34_ESPEasy.pm line 912.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $ident:: in concatenation (.) or string at /opt/fhem/FHEM/34_ESPEasy.pm line 867.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $host:: in concatenation (.) or string at /opt/fhem/FHEM/34_ESPEasy.pm line 867.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $ac:: in concatenation (.) or string at /opt/fhem/FHEM/34_ESPEasy.pm line 867.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $as:: in concatenation (.) or string at /opt/fhem/FHEM/34_ESPEasy.pm line 867.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $v in split at /opt/fhem/FHEM/34_ESPEasy.pm line 893.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $ac in string eq at /opt/fhem/FHEM/34_ESPEasy.pm line 905.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $ip in hash element at /opt/fhem/FHEM/34_ESPEasy.pm line 910.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $ip in hash element at /opt/fhem/FHEM/34_ESPEasy.pm line 912.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $ident:: in concatenation (.) or string at /opt/fhem/FHEM/34_ESPEasy.pm line 867.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $host:: in concatenation (.) or string at /opt/fhem/FHEM/34_ESPEasy.pm line 867.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $ac:: in concatenation (.) or string at /opt/fhem/FHEM/34_ESPEasy.pm line 867.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $as:: in concatenation (.) or string at /opt/fhem/FHEM/34_ESPEasy.pm line 867.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $v in split at /opt/fhem/FHEM/34_ESPEasy.pm line 893.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $ac in string eq at /opt/fhem/FHEM/34_ESPEasy.pm line 905.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $ip in hash element at /opt/fhem/FHEM/34_ESPEasy.pm line 910.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $ip in hash element at /opt/fhem/FHEM/34_ESPEasy.pm line 912.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $ident:: in concatenation (.) or string at /opt/fhem/FHEM/34_ESPEasy.pm line 867.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $host:: in concatenation (.) or string at /opt/fhem/FHEM/34_ESPEasy.pm line 867.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $ac:: in concatenation (.) or string at /opt/fhem/FHEM/34_ESPEasy.pm line 867.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $as:: in concatenation (.) or string at /opt/fhem/FHEM/34_ESPEasy.pm line 867.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $v in split at /opt/fhem/FHEM/34_ESPEasy.pm line 893.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $ac in string eq at /opt/fhem/FHEM/34_ESPEasy.pm line 905.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $ip in hash element at /opt/fhem/FHEM/34_ESPEasy.pm line 910.
[Tue Sep  6 11:54:41 2016] fhem.pl: Use of uninitialized value $ip in hash element at /opt/fhem/FHEM/34_ESPEasy.pm line 912.


Ein reload liefert allerdings keine Einträge. Komisch...

Grüße Jörg

PS: Das Testsystem ist immer eine aktueller Abzug vom Fhem Repository
Jörg Wiemann

Slave: RPi B+ mit 512 MB, COC (868 MHz), CUL V3 (433.92MHz SlowRF); FHEMduino, Aktuelles FHEM

Master: CubieTruck; Debian; Aktuelles FHEM

dev0

(on|off)-for-timer ist bereits implementiert und heißt "pulse" bzw. "longpulse". Die Syntax könnte man auch mit dem Attribut eventMap anpassen.

out-of-the-box:

set <ESP> longpulse 15 on 2    #=>switch gpio15 on for 2 secsonds


mit eventMap z.B. so:

attr GPIO15 eventMap /longpulse 15 on:on-for-timer/longpulse 15 off:off-for-timer/
set GPIO15 on-for-timer 3   #=> switch gpio15 on for 3 seconds


Wie robust die Implementierung im ESPEasy ist kann ich nicht sagen. Da bin ich raus.

dev0

#143
Zitat von: JoWiemann am 06 September 2016, 12:02:34
habe mir nun die aktuelle Version des Fhem-Moduls auf mein Testsystem gezogen und bekomme beim Starten von Fhem folgende

FHEM hattest Du nach dem Update neu gestartet?
Kann ich im Moment leider noch nicht nachvollziehen. Bitte setze die Bridge auf verbose 5 und poste dann das Log.

dev0

#144
Könntest Du diese Modul Version einmal testen? Ich habe die Vermutung, dass sich Deine Perl Version etwas anders verhält als ich es erwartet habe ;(
Welche Perl Version verwendest Du ?

Edit: Link zur Testversion entfernt

JoWiemann

Hallo,

Perl ist (Wheezy): This is perl 5, version 14, subversion 2 (v5.14.2) built for arm-linux-gnueabihf-thread-multi-64int

Und die Modulversion läuft :-)

Grüße Jörg
Jörg Wiemann

Slave: RPi B+ mit 512 MB, COC (868 MHz), CUL V3 (433.92MHz SlowRF); FHEMduino, Aktuelles FHEM

Master: CubieTruck; Debian; Aktuelles FHEM

JoWiemann

Zitat von: dev0 am 06 September 2016, 12:03:01
(on|off)-for-timer ist bereits implementiert und heißt "pulse" bzw. "longpulse". Die Syntax könnte man auch mit dem Attribut eventMap anpassen.

out-of-the-box:

set <ESP> longpulse 15 on 2    #=>switch gpio15 on for 2 secsonds


mit eventMap z.B. so:

attr GPIO15 eventMap /longpulse 15 on:on-for-timer/longpulse 15 off:off-for-timer/
set GPIO15 on-for-timer 3   #=> switch gpio15 on for 3 seconds


Wie robust die Implementierung im ESPEasy ist kann ich nicht sagen. Da bin ich raus.

Danke für die Info, habe ich einfach in EspEasy übersehen.

Grüße Jörg
Jörg Wiemann

Slave: RPi B+ mit 512 MB, COC (868 MHz), CUL V3 (433.92MHz SlowRF); FHEMduino, Aktuelles FHEM

Master: CubieTruck; Debian; Aktuelles FHEM

dev0

Zitat von: JoWiemann am 06 September 2016, 13:01:55
Und die Modulversion läuft :-)

Danke für's Testen!

Habe die korrigierte Version in den master branch eingecheckt.

carlos

Hallo,
Ich hätte mal eine Frage und zwar warum werden die Readings Namen im State auf 3 Zeichen gekürzt?
Sieht bei mir so aus:


DeviceOverview
ESPEasy_Sonoff1_SysInfo                   VCC:-1 Fre:22500 Rss:-45 Upt:1780


Readings
VCC            -1                                                      2016-09-06 13:56:30
freeRAM        22300                                                   2016-09-06 13:57:31
presence       present                                                 2016-09-06 13:56:30
rssi           -44                                                     2016-09-06 13:57:32
state          VCC:-1 Fre:22300 Rss:-44 Upt:1780                       2016-09-06 13:57:32
uptime         1780                                                    2016-09-06 13:56:22

Könnte man da nicht den vollen Namen nehmen?

Gruß
Carlos
FHEM svn auf Intel NUC mit proxmox, 3 Raspberry Pi, signalduino, nanoCUL,  toom Baumarkt Funksteckdosen, einige sonoffs, hue, shelly

dev0

Zitat von: carlos am 06 September 2016, 14:05:42
Könnte man da nicht den vollen Namen nehmen?
Je nach Länge der Readingnamen und Anzahl wird das sehr unschön. Typisch für FHEM wäre sogar nur der Anfangsbuchstabe des Readings.
Ich kann mir aber vorstellen die Länge über ein Attribut konfigurierbar zu machen.