Neues Modul: ESPEasy [war: ESPEasy ohne MQTT]

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

Vorheriges Thema - Nächstes Thema

feryy

Sorry, I wrote it wrong  :(
I have no problem with SVG. I have a problem with the interpretation put in SVG.

Zitat von: SusisStrolch am 28 September 2016, 12:49:21
To create your SVG:
define SVG_Teplomer_Obyvak_Teplomer SVG FileLog_ESPEasy_Teplomer_Obyvak_Teplomer:temp4hum4:CURRENT

Then, modify your layout with Plot Editor.

I tried to set it up but do not know how to edit the layout :( ad. attachment
The data is written good in the log file?

2016-09-29_06:37:40 ESPEasy_Teplomer_Obyvak_Teplomer Temperature: 18.00
2016-09-29_06:37:40 ESPEasy_Teplomer_Obyvak_Teplomer Hum:23.00 Tem:18.00
2016-09-29_06:37:40 ESPEasy_Teplomer_Obyvak_Teplomer Humidity: 24.00
2016-09-29_06:37:40 ESPEasy_Teplomer_Obyvak_Teplomer Hum:24.00 Tem:18.00
2016-09-29_06:43:41 ESPEasy_Teplomer_Obyvak_Teplomer Humidity: 23.00
2016-09-29_06:43:41 ESPEasy_Teplomer_Obyvak_Teplomer Hum:23.00 Tem:18.00
2016-09-29_06:43:41 ESPEasy_Teplomer_Obyvak_Teplomer Temperature: 19.00
2016-09-29_06:43:41 ESPEasy_Teplomer_Obyvak_Teplomer Hum:23.00 Tem:19.00



dev0

Zitat von: feryy am 29 September 2016, 06:46:15
The data is written good in the log file?


2016-09-29_06:37:40 ESPEasy_Teplomer_Obyvak_Teplomer Temperature: 18.00
2016-09-29_06:37:40 ESPEasy_Teplomer_Obyvak_Teplomer Hum:23.00 Tem:18.00
2016-09-29_06:37:40 ESPEasy_Teplomer_Obyvak_Teplomer Humidity: 24.00


Yes, the log file is fine. You may specify a range as [min:max] in svg editor so it looks better.
If there are more questions about SVG plots then feel free to open new post in a better fitting area. See: http://www.fhem.de/MAINTAINER.txt

Mitch

Hallo Zusammen,

bin über einen Tip aus dem sonoff Fred hier her gekommen.
Habe mir einen sonoff Steckdosenadapter geflash, hat auch alles funktioniert.
Dann die Bridge angelegt und in der ESP WebGUI mal zum Testen RSI unter Devices.
Das Device wurde in Fhem angelegt und die RSSI Werte kommen an.
Soweit alles gut.

Wie bekomme ich jetzt aber das Relai geschalten?
Was muss ich da in der WebGUI unter Device anlegen und was in Fhem??
FHEM im Proxmox Container

feryy

Zitat von: dev0 am 29 September 2016, 07:34:54
Yes, the log file is fine. You may specify a range as [min:max] in svg editor so it looks better.
If there are more questions about SVG plots then feel free to open new post in a better fitting area. See: http://www.fhem.de/MAINTAINER.txt

And maybe one last question :)
How to define for <ESP> (already measured temperature) switching GPIO?

I tried this but it does not work:

define ESPEasy_Teplomer_Obyvak_Teplomer ESPEasy 192.168.100.138 80 espBridge Teplomer_Obyvak_Teplomer
...
attr ESPEasy_Teplomer_Obyvak_Teplomer icon FS20.off
attr ESPEasy_Teplomer_Obyvak_Teplomer stateFormat GPIO0
attr ESPEasy_Teplomer_Obyvak_Teplomer eventMap /gpio 0 on:on/gpio 0 off:off/status gpio 0:check/
attr ESPEasy_Teplomer_Obyvak_Teplomer devStateIcon on:ios-on-green:off off:ios-off:on .*:ios-NACK:check
...


But this http://192.168.100.138/control?cmd=GPIO,0,1) works => Electrical wiring is correct.
If I would like to define a dummy device, and how?



JoWiemann

Hallo,

Du solltest zunächst die GPIO als Switch im ESPEasy definieren. Wenn Du über die ersten zwei bis vier Seiten des Thread gehst, findest Du Definitionen für Attribute, damit Du die GPIO mit Buttons Switches kannst.



Gesendet von iPad mit Tapatalk
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

Mitch

#185
Hab es hin bekommen, vielen Dank.
Jetzt muss ich nur noch das Fhem Device "aufhübschen".

Super Modul! Vielen Dank!

Noch eine Frage dazu: der Knopf am Gerät selber geht ja jetzt nicht mehr. Kann ich den auch wieder irgendwie "reinkonfigurieren"?
FHEM im Proxmox Container

feryy

Zitat von: Mitch am 29 September 2016, 09:55:18
Hoch eine Frage dazu: der Knopf am Gerät selber geht ja jetzt nicht mehr. Kann ich den auch wieder irgendwie "reinkonfigurieren"?
What you have defined the device in WebGUI? And how FHEM? You can make a screenshot, please?

Mitch

List of the fhem device:
Internals:
   .eventMapCmd on:noArg off:noArg check:noArg
   DEF        192.168.0.50 80 ESPBridge sonoff1
   ESPBridge_MSGCNT 28
   ESPBridge_TIME 2016-09-29 10:26:41
   HOST       192.168.0.50
   IDENT      sonoff1
   IODev      ESPBridge
   LASTInputDev ESPBridge
   MODULE_VERSION 0.4.4
   MSGCNT     28
   NAME       ESPEasy_sonoff1
   NR         973
   PORT       80
   STATE      off
   SUBTYPE    device
   TYPE       ESPEasy
   Readings:
     2016-09-29 10:22:39   GPIO12          off
     2016-09-29 10:22:39   GPIO12_mode     output
     2016-09-29 10:26:41   RSSI            -55.00
     2016-09-29 10:22:39   _lastAction     GPIO 12 Set to 0
     2016-09-29 10:23:16   presence        present
     2016-09-29 10:26:41   state           GPI:off GPI:output RSS:-55.00
   Helper:
     urlcmd     /control?cmd=
     Intat:
       1:
         FN         ESPEasy_statusRequest
         INTERVAL   302
         TRIGGERTIME 29.09.2016 10:28:17
Attributes:
   DbLogExclude .*
   IODev      ESPBridge
   devStateIcon on:ios-on-green:off off:ios-off:on absent:10px-kreis-rot:statusRequest .*:ios-NACK:check
   event-on-change-reading .*
   eventMap   /gpio 12 on:on/gpio 12 off:off/status gpio 12:check/
   group      ESPEasy Device
   stateFormat {ReadingsVal($name,"presence","") eq "absent" ? "absent" : ReadingsVal($name,"GPIO12","")}
   verbose    0


Screenshot of WebGUI attached.

If I push the physical button, I can see it in the WebGUI.
But I would like to have the same functionality like original, so if I push the button, the relais will toggle.
FHEM im Proxmox Container

oli82

Zitat von: Mitch am 29 September 2016, 09:55:18
Noch eine Frage dazu: der Knopf am Gerät selber geht ja jetzt nicht mehr. Kann ich den auch wieder irgendwie "reinkonfigurieren"?

Du Kannst in ESPEasy sog. Rules konfigurieren, also was soll passieren, wenn ein Event ausgelöst wird.
Ich hab meinen Sonoff leider gerade nicht online, hoffe aber, dass ich es noch richtig im Kopf habe:
on SW_1#Switch do
  if [SW_1#Switch]=0
    gpio,12,0
    gpio,13,1
  else
    gpio,12,1
    gpio,13,0
  endif
endon

feryy

Zitat von: oli82 am 29 September 2016, 10:46:56
Du Kannst in ESPEasy sog. Rules konfigurieren, also was soll passieren, wenn ein Event ausgelöst wird.
Ich hab meinen Sonoff leider gerade nicht online, hoffe aber, dass ich es noch richtig im Kopf habe:
on SW_1#Switch do
  if [SW_1#Switch]=0
    gpio,12,0
    gpio,13,1
  else
    gpio,12,1
    gpio,13,0
  endif
endon


Interesting.

It is possible to configure it through FHEM?
Click Button -> set state to FHEM -> defined notify detects status -> FHEM set GPIO's HIGHT
Because how else to read the status of the relay?

Zitat von: Mitch am 29 September 2016, 10:28:52
But I would like to have the same functionality like original, so if I push the button, the relais will toggle.

I think, the relay may not be right in WebGUI devices because it is output. See http://www.esp8266.nu/index.php/Relais

Mitch

Zitat von: oli82 am 29 September 2016, 10:46:56
Du Kannst in ESPEasy sog. Rules konfigurieren, also was soll passieren, wenn ein Event ausgelöst wird.
Ich hab meinen Sonoff leider gerade nicht online, hoffe aber, dass ich es noch richtig im Kopf habe:
on SW_1#Switch do
  if [SW_1#Switch]=0
    gpio,12,0
    gpio,13,1
  else
    gpio,12,1
    gpio,13,0
  endif
endon


Danke, aber irgendwie mag mein ESP die rules nicht, bzw. ignoriert sie einfach.

Habe zum Testen auch mal eine Rule angelegt, dass alles auf 0 geschalten wird beim Booten. Geht aber auch nicht?
FHEM im Proxmox Container

Mitch

So, habe das mit den Rules jetzt hinbekommen.

Leider merkt fhem nicht, dass ich manuell den Knopf gedrückt habe.
Kann/muss man da noch etwas einstellen? Oder ist das nicht möglich?
FHEM im Proxmox Container

JoWiemann

#192
Hm, hast Du in den Relais Devices "send status " aktiviert?



Gesendet von iPhone mit Tapatalk

PS: Mit ESPEasy, Fhem, und Sonoff als Suchbegriffe in einer Suchmaschine wären auch alle Fragen beantwortet worden....
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

Mitch

FHEM im Proxmox Container

JoWiemann

Wenn Du den Taster drückst, schaltet dann das Relais?

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