Folgende Frage zu Sonoff/Tasmota und MQTT2_Device

Begonnen von moonsorrox, 13 Dezember 2018, 16:27:05

Vorheriges Thema - Nächstes Thema

Invers

Sorry, hatte
attr MQTT2_DVES_9C6846 setStateList on off toggle
gelöscht.

List sieht aktuell so aus:

Internals:
   CID        DVES_9C6846
   DEF        DVES_9C6846
   DEVICETOPIC MQTT2_DVES_9C6846
   IODev      MQTT2_Server
   LASTInputDev MQTT2_Server
   MQTT2_Server_MSGCNT 82
   MQTT2_Server_TIME 2019-01-05 14:17:23
   MSGCNT     82
   NAME       MQTT2_DVES_9C6846
   NR         2323
   STATE      POWER1
   TYPE       MQTT2_DEVICE
   OLDREADINGS:
   READINGS:
     2019-01-05 13:47:15   FallbackTopic   cmnd/DVES_9C6846_fb/
     2019-01-05 13:47:15   GroupTopic      sonoffs
     2019-01-05 13:47:15   Hostname        sonoff3-2118
     2019-01-05 13:47:15   IPAddress       192.168.178.37
     2019-01-05 13:47:14   LWT             Online
     2019-01-05 14:17:23   LoadAvg         19
     2019-01-05 13:47:15   Module          Sonoff S2X
     2019-01-05 14:17:23   POWER           ON
     2019-01-05 13:47:15   RestartReason   Power on
     2019-01-05 14:17:23   Sleep           50
     2019-01-05 14:17:23   SleepMode       Dynamic
     2019-01-05 14:17:23   Time            2019-01-05T14:17:23
     2019-01-05 14:17:23   Uptime          0T00:30:14
     2019-01-05 14:17:23   Vcc             3.522
     2019-01-05 13:47:15   Version         6.4.1(sonoff)
     2019-01-05 13:47:15   WebServerMode   Admin
     2019-01-05 14:11:13   state           on
Attributes:
   IODev      MQTT2_Server
   autocreate 0
   eventMap   { dev=>{'^(.*)POWER(.?): OFF$'=>'$1POWER$2: off', '^(.*)POWER(.?): ON$'=>'$1POWER$2: on'} }
   model      A_01a_tasmota_basic_state_power1
   readingList tele/sonoff3/LWT:.* LWT
  tele/sonoff3/STATE:.* { json2nameValue($EVENT) }
  tele/sonoff3/SENSOR:.* { json2nameValue($EVENT) }
  tele/sonoff3/INFO.:.* { json2nameValue($EVENT) }
  stat/sonoff3/RESULT:.* { json2nameValue($EVENT) }
   room       MQTT2_DEVICE
   setList    off:noArg    cmnd/sonoff3/POWER1 0
  on:noArg     cmnd/sonoff3/POWER1 1
  toggle:noArg cmnd/sonoff3/POWER1 2
   stateFormat POWER1
Pi3B+ mit SSD/ Bullseye | FB7590 AX | 12 x Dect200 | CUL433+868 | SDuino | HM-LAN | 3 x Heizung FHT + FKontakte | KeyMatic + 4 FB | HM Wandtaster 2-fach m. LED | 6 x Türkont. TFK-TI | HM-Bew.-Melder innen | 3 x Smoked. HM-SEC-SD-2

Beta-User

stateFormat ändern wie bereits vermutet. Dann könntest du das andere m.E. sogar wieder rein nehmen...
Server: HP-elitedesk@Debian 12, aktuelles FHEM@ConfigDB | CUL_HM (VCCU) | MQTT2: MiLight@ESP-GW, BT@OpenMQTTGw | MySensors: seriell, v.a. 2.3.1@RS485 | ZWave | ZigBee@deCONZ | SIGNALduino | MapleCUN | RHASSPY
svn: u.a MySensors, Weekday-&RandomTimer, Twilight,  div. attrTemplate-files

Invers

Ich habe noch einmal alles weggeworfen und neu anlegen lassen/angelegt.

sieht nun nach autoCreate so aus:
Internals:
   CID        DVES_9C6846
   DEF        DVES_9C6846
   DEVICETOPIC MQTT2_DVES_9C6846
   IODev      MQTT2_Server
   LASTInputDev MQTT2_Server
   MQTT2_Server_MSGCNT 6
   MQTT2_Server_TIME 2019-01-05 14:33:35
   MSGCNT     6
   NAME       MQTT2_DVES_9C6846
   NR         540
   STATE      ???
   TYPE       MQTT2_DEVICE
   READINGS:
     2019-01-05 14:31:31   LWT             Online
     2019-01-05 14:33:35   POWER           ON
     2019-01-05 14:33:35   RESULT_POWER    ON
     2019-01-05 14:32:30   STATE_LoadAvg   19
     2019-01-05 14:32:30   STATE_POWER     ON
     2019-01-05 14:32:30   STATE_Sleep     50
     2019-01-05 14:32:30   STATE_SleepMode Dynamic
     2019-01-05 14:32:30   STATE_Time      2019-01-05T14:32:30
     2019-01-05 14:32:30   STATE_Uptime    0T00:45:21
     2019-01-05 14:32:30   STATE_Vcc       3.538
Attributes:
   IODev      MQTT2_Server
   readingList DVES_9C6846:tele/sonoff3/LWT:.* LWT
DVES_9C6846:cmnd/sonoff3/POWER:.* POWER
DVES_9C6846:tele/sonoff3/STATE:.* { json2nameValue($EVENT, 'STATE_', $JSONMAP) }
DVES_9C6846:stat/sonoff3/RESULT:.* { json2nameValue($EVENT, 'RESULT_', $JSONMAP) }
DVES_9C6846:stat/sonoff3/POWER:.* POWER
   room       MQTT2_DEVICE


Nach dem Anwenden des Templates und der Änderung von setList sieht es dann so aus:


Internals:
   CID        DVES_9C6846
   DEF        DVES_9C6846
   DEVICETOPIC MQTT2_DVES_9C6846
   IODev      MQTT2_Server
   LASTInputDev MQTT2_Server
   MQTT2_Server_MSGCNT 14
   MQTT2_Server_TIME 2019-01-05 14:39:26
   MSGCNT     14
   NAME       MQTT2_DVES_9C6846
   NR         540
   STATE      ON
   TYPE       MQTT2_DEVICE
   OLDREADINGS:
   READINGS:
     2019-01-05 14:37:30   LoadAvg         19
     2019-01-05 14:39:26   POWER           ON
     2019-01-05 14:37:30   Sleep           50
     2019-01-05 14:37:30   SleepMode       Dynamic
     2019-01-05 14:37:30   Time            2019-01-05T14:37:30
     2019-01-05 14:37:30   Uptime          0T00:50:21
     2019-01-05 14:37:30   Vcc             3.538
     2019-01-05 14:39:26   state           set_on
Attributes:
   IODev      MQTT2_Server
   autocreate 0
   eventMap   { dev=>{'^(.*)POWER(.?): OFF$'=>'$1POWER$2: off', '^(.*)POWER(.?): ON$'=>'$1POWER$2: on'} }
   model      A_01_tasmota_basic
   readingList tele/sonoff3/LWT:.* LWT
  tele/sonoff3/STATE:.* { json2nameValue($EVENT) }
  tele/sonoff3/SENSOR:.* { json2nameValue($EVENT) }
  tele/sonoff3/INFO.:.* { json2nameValue($EVENT) }
  stat/sonoff3/RESULT:.* { json2nameValue($EVENT) }
   room       MQTT2_DEVICE
   setList    off:noArg    cmnd/sonoff3/POWER 0
  on:noArg     cmnd/sonoff3/POWER 1
  toggle:noArg cmnd/sonoff3/POWER 2
   setStateList on off toggle
   stateFormat POWER



nun ist das Icon da und ich kann auch schalten.
Die Schreibweise von POWER On on OFF off ignoriere ich einfach.
Bleibt nur noch die Frage, ob es so gewollt ist, dass sich state nicht verändert, wenn man am Taster der Dose schaltet.
Beim Schalten per set - Befehl wird state geändert.

stateFormat  ändern kann ich probieren. Aber was soll das ändern? Dann steht da halt nur off, statt set_off, oder sehe ich da was nicht richtig?
Pi3B+ mit SSD/ Bullseye | FB7590 AX | 12 x Dect200 | CUL433+868 | SDuino | HM-LAN | 3 x Heizung FHT + FKontakte | KeyMatic + 4 FB | HM Wandtaster 2-fach m. LED | 6 x Türkont. TFK-TI | HM-Bew.-Melder innen | 3 x Smoked. HM-SEC-SD-2

Beta-User

Hmmm,

das mit dem Schalter kann ich ohne Hardware nicht nachvollziehen.

Lösche mal das autocreate-Attribut und schalte dann. Gibt es irgendein neues Reading (Browser-refresh machen)? Wird irgendwas vorhandenes aktualisiert?

Im Zweifel mußt du mal mitlesen, was beim Schalten über den Schalter an Verkehr in MQTT stattfindet, das sieht mir nicht nach einem Problem des templates aus, sondern eher danach, dass der ESP irgendwas nicht liefert...
Server: HP-elitedesk@Debian 12, aktuelles FHEM@ConfigDB | CUL_HM (VCCU) | MQTT2: MiLight@ESP-GW, BT@OpenMQTTGw | MySensors: seriell, v.a. 2.3.1@RS485 | ZWave | ZigBee@deCONZ | SIGNALduino | MapleCUN | RHASSPY
svn: u.a MySensors, Weekday-&RandomTimer, Twilight,  div. attrTemplate-files

Invers

#139
Das ist sicher kein Problem des Templates. Ich hatte ja dieses Problem bereits, bevor du sagtest, ich soll ein Template nutzen. Also bestand das Problem schon nach dem Autocreate.
Änderungen konnte ich nicht bemerken.

Womit soll ich den Verkehr denn loggen? Mosquitto habe ich deinstalliert. Vielleicht die Konsole der Steckdose?

Steckdose Konsole:

manuell
16:35:50 MQT: stat/sonoff3/RESULT = {"POWER":"ON"}
16:35:50 MQT: stat/sonoff3/POWER = ON
16:35:53 MQT: stat/sonoff3/RESULT = {"POWER":"OFF"}
16:35:53 MQT: stat/sonoff3/POWER = OFF

per Set
16:36:42 MQT: stat/sonoff3/RESULT = {"POWER":"ON"}
16:36:42 MQT: stat/sonoff3/POWER = ON
16:36:43 MQT: stat/sonoff3/RESULT = {"POWER":"OFF"}
16:36:43 MQT: stat/sonoff3/POWER = OFF


und noch verbose5 Server und Device

2019.01.05 16:44:15 5: PINGREQ:
2019.01.05 16:44:15 4: MQTT2_Server_192.168.178.33_49189 DVES_6ADBE6 PINGREQ
2019.01.05 16:44:17 5: PINGREQ:
2019.01.05 16:44:17 4: MQTT2_Server_192.168.178.27_49185 DVES_24C4E2 PINGREQ
2019.01.05 16:44:18 5: PUBLISH: (0)(19)stat/sonoff3/RESULT{"POWER":"ON"}
2019.01.05 16:44:18 4: MQTT2_Server_192.168.178.37_49157 DVES_9C6846 PUBLISH stat/sonoff3/RESULT:{"POWER":"ON"}
2019.01.05 16:44:18 5: MQTT2_Server: dispatch autocreate:DVES_9C6846:stat/sonoff3/RESULT:{"POWER":"ON"}
2019.01.05 16:44:18 4: MQTT2_DEVICE_Parse: MQTT2_DVES_9C6846 stat/sonoff3/RESULT => { json2nameValue($EVENT) }
2019.01.05 16:44:18 5: PUBLISH: (0)(18)stat/sonoff3/POWERON
2019.01.05 16:44:18 4: MQTT2_Server_192.168.178.37_49157 DVES_9C6846 PUBLISH stat/sonoff3/POWER:ON
2019.01.05 16:44:18 5: MQTT2_Server: dispatch autocreate:DVES_9C6846:stat/sonoff3/POWER:ON
2019.01.05 16:44:18 4: MQTT2_DEVICE_Parse: MQTT2_DVES_9C6846 stat/sonoff3/POWER => POWER
Pi3B+ mit SSD/ Bullseye | FB7590 AX | 12 x Dect200 | CUL433+868 | SDuino | HM-LAN | 3 x Heizung FHT + FKontakte | KeyMatic + 4 FB | HM Wandtaster 2-fach m. LED | 6 x Türkont. TFK-TI | HM-Bew.-Melder innen | 3 x Smoked. HM-SEC-SD-2

Beta-User

Also:
1. Ist autocreate wieder aktiv am Device? Wenn nein: Bitte wieder einschalten (=Attribut löschen).
2. Mitlesen kann man z.B. so: https://wiki.fhem.de/wiki/MQTT2-Module_-_Praxisbeispiele#MQTT2_SERVER_nutzen
oder mosquitto_sub an einer Konsole nutzen (man muß dazu nicht auch die mosquitto-server-Komponente installieren, es reicht das Paket mosquitto-clients).

Uns interessiert eigentlich _nur_ das, was über MQTT kommt. Alles, was im Web-IF oder auf der seriellen Konsole rauskommt kann allenfalls eine Art Indikator dafür dienen, ob auf dem Teil irgendwas ganz schief läuft (aber es schaltet ja...).

Wenn du Vorschläge hast, wie man den verlinkten Wiki-Artikel verbessern kann, insbesondere im Tasmota-Abschnitt: Her damit....
Server: HP-elitedesk@Debian 12, aktuelles FHEM@ConfigDB | CUL_HM (VCCU) | MQTT2: MiLight@ESP-GW, BT@OpenMQTTGw | MySensors: seriell, v.a. 2.3.1@RS485 | ZWave | ZigBee@deCONZ | SIGNALduino | MapleCUN | RHASSPY
svn: u.a MySensors, Weekday-&RandomTimer, Twilight,  div. attrTemplate-files

Invers

#141
Ich weiss nicht, ob der Mittschnitt so ausreichend ist. Falls nicht, kann ich nachliefern.

attr MQTT2_Server rawEvents DVES_9C6846

an aus an aus am Taster

019.01.05 17:00:28 5: PINGREQ:
2019.01.05 17:00:28 4: MQTT2_Server_192.168.178.27_49185 DVES_24C4E2 PINGREQ
2019.01.05 17:00:29 5: PINGREQ:
2019.01.05 17:00:29 4: MQTT2_Server_192.168.178.33_49189 DVES_6ADBE6 PINGREQ
2019.01.05 17:00:32 5: PINGREQ:
2019.01.05 17:00:32 4: MQTT2_Server_192.168.178.37_49157 DVES_9C6846 PINGREQ
2019.01.05 17:00:36 5: PUBLISH: (0)(19)stat/sonoff3/RESULT{"POWER":"OFF"}
2019.01.05 17:00:36 4: MQTT2_Server_192.168.178.37_49157 DVES_9C6846 PUBLISH stat/sonoff3/RESULT:{"POWER":"OFF"}
2019.01.05 17:00:36 5: MQTT2_Server: dispatch autocreate:DVES_9C6846:stat/sonoff3/RESULT:{"POWER":"OFF"}
2019.01.05 17:00:37 4: MQTT2_DEVICE_Parse: MQTT2_DVES_9C6846 stat/sonoff3/RESULT => { json2nameValue($EVENT) }
2019.01.05 17:00:37 5: PUBLISH: (0)(18)stat/sonoff3/POWEROFF
2019.01.05 17:00:37 4: MQTT2_Server_192.168.178.37_49157 DVES_9C6846 PUBLISH stat/sonoff3/POWER:OFF
2019.01.05 17:00:37 5: MQTT2_Server: dispatch autocreate:DVES_9C6846:stat/sonoff3/POWER:OFF
2019.01.05 17:00:37 4: MQTT2_DEVICE_Parse: MQTT2_DVES_9C6846 stat/sonoff3/POWER => POWER
2019.01.05 17:00:38 5: PUBLISH: (0)(19)stat/sonoff3/RESULT{"POWER":"ON"}
2019.01.05 17:00:38 4: MQTT2_Server_192.168.178.37_49157 DVES_9C6846 PUBLISH stat/sonoff3/RESULT:{"POWER":"ON"}
2019.01.05 17:00:38 5: MQTT2_Server: dispatch autocreate:DVES_9C6846:stat/sonoff3/RESULT:{"POWER":"ON"}
2019.01.05 17:00:38 4: MQTT2_DEVICE_Parse: MQTT2_DVES_9C6846 stat/sonoff3/RESULT => { json2nameValue($EVENT) }
2019.01.05 17:00:38 5: PUBLISH: (0)(18)stat/sonoff3/POWERON
2019.01.05 17:00:38 4: MQTT2_Server_192.168.178.37_49157 DVES_9C6846 PUBLISH stat/sonoff3/POWER:ON
2019.01.05 17:00:38 5: MQTT2_Server: dispatch autocreate:DVES_9C6846:stat/sonoff3/POWER:ON
2019.01.05 17:00:38 4: MQTT2_DEVICE_Parse: MQTT2_DVES_9C6846 stat/sonoff3/POWER => POWER
2019.01.05 17:00:38 5: PINGREQ:
2019.01.05 17:00:38 4: MQTT2_Server_192.168.178.27_49185 DVES_24C4E2 PINGREQ
2019.01.05 17:00:39 5: PINGREQ:
2019.01.05 17:00:39 4: MQTT2_Server_192.168.178.33_49189 DVES_6ADBE6 PINGREQ
2019.01.05 17:00:40 5: PUBLISH: (0)(19)stat/sonoff3/RESULT{"POWER":"OFF"}
2019.01.05 17:00:40 4: MQTT2_Server_192.168.178.37_49157 DVES_9C6846 PUBLISH stat/sonoff3/RESULT:{"POWER":"OFF"}
2019.01.05 17:00:40 5: MQTT2_Server: dispatch autocreate:DVES_9C6846:stat/sonoff3/RESULT:{"POWER":"OFF"}
2019.01.05 17:00:40 4: MQTT2_DEVICE_Parse: MQTT2_DVES_9C6846 stat/sonoff3/RESULT => { json2nameValue($EVENT) }
2019.01.05 17:00:40 5: PUBLISH: (0)(18)stat/sonoff3/POWEROFF
2019.01.05 17:00:40 4: MQTT2_Server_192.168.178.37_49157 DVES_9C6846 PUBLISH stat/sonoff3/POWER:OFF
2019.01.05 17:00:40 5: MQTT2_Server: dispatch autocreate:DVES_9C6846:stat/sonoff3/POWER:OFF
2019.01.05 17:00:40 4: MQTT2_DEVICE_Parse: MQTT2_DVES_9C6846 stat/sonoff3/POWER => POWER
2019.01.05 17:00:41 5: PUBLISH: (0)(19)stat/sonoff3/RESULT{"POWER":"ON"}
2019.01.05 17:00:41 4: MQTT2_Server_192.168.178.37_49157 DVES_9C6846 PUBLISH stat/sonoff3/RESULT:{"POWER":"ON"}
2019.01.05 17:00:41 5: MQTT2_Server: dispatch autocreate:DVES_9C6846:stat/sonoff3/RESULT:{"POWER":"ON"}
2019.01.05 17:00:41 4: MQTT2_DEVICE_Parse: MQTT2_DVES_9C6846 stat/sonoff3/RESULT => { json2nameValue($EVENT) }
2019.01.05 17:00:41 5: PUBLISH: (0)(18)stat/sonoff3/POWERON
2019.01.05 17:00:41 4: MQTT2_Server_192.168.178.37_49157 DVES_9C6846 PUBLISH stat/sonoff3/POWER:ON
2019.01.05 17:00:41 5: MQTT2_Server: dispatch autocreate:DVES_9C6846:stat/sonoff3/POWER:ON
2019.01.05 17:00:41 4: MQTT2_DEVICE_Parse: MQTT2_DVES_9C6846 stat/sonoff3/POWER => POWER
2019.01.05 17:00:42 5: PUBLISH: (0)(18)tele/sonoff3/STATE{"Time":"2019-01-05T17:00:41","Uptime":"0T01:10:20","Vcc":3.538,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":29,"POWER":"ON","Wifi":{"AP":1,"SSId":"HachMichHart","BSSId":"08:96:D7:16:26:89","Channel":11,"RSSI":100}}
2019.01.05 17:00:42 4: MQTT2_Server_192.168.178.37_49157 DVES_9C6846 PUBLISH tele/sonoff3/STATE:{"Time":"2019-01-05T17:00:41","Uptime":"0T01:10:20","Vcc":3.538,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":29,"POWER":"ON","Wifi":{"AP":1,"SSId":"HachMichHart","BSSId":"08:96:D7:16:26:89","Channel":11,"RSSI":100}}
2019.01.05 17:00:42 5: MQTT2_Server: dispatch autocreate:DVES_9C6846:tele/sonoff3/STATE:{"Time":"2019-01-05T17:00:41","Uptime":"0T01:10:20","Vcc":3.538,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":29,"POWER":"ON","Wifi":{"AP":1,"SSId":"HachMichHart","BSSId":"08:96:D7:16:26:89","Channel":11,"RSSI":100}}
2019.01.05 17:00:42 4: MQTT2_DEVICE_Parse: MQTT2_DVES_9C6846 tele/sonoff3/STATE => { json2nameValue($EVENT) }
2019.01.05 17:00:42 5: PINGREQ:
2019.01.05 17:00:42 4: MQTT2_Server_192.168.178.37_49157 DVES_9C6846 PINGREQ


an aus an aus per set

2019.01.05 17:01:35 1: Logfile gelöscht
2019.01.05 17:01:39 5: PINGREQ:
2019.01.05 17:01:39 4: MQTT2_Server_192.168.178.27_49185 DVES_24C4E2 PINGREQ
2019.01.05 17:01:39 5: PINGREQ:
2019.01.05 17:01:39 4: MQTT2_Server_192.168.178.33_49189 DVES_6ADBE6 PINGREQ
2019.01.05 17:01:42 5: PINGREQ:
2019.01.05 17:01:42 4: MQTT2_Server_192.168.178.37_49157 DVES_9C6846 PINGREQ
2019.01.05 17:01:43 5: MQTT2_Server: PUBLISH cmnd/DEVNAME/POWER 1
2019.01.05 17:01:44 5: PUBLISH: (0)(18)tele/sonoff1/STATE{"Time":"2019-01-05T17:01:44","Uptime":"0T11:16:32","Vcc":3.543,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"POWER":"ON","Wifi":{"AP":1,"SSId":"HachMichHart","BSSId":"08:96:D7:16:26:89","Channel":11,"RSSI":90}}
2019.01.05 17:01:44 4: MQTT2_Server_192.168.178.33_49189 DVES_6ADBE6 PUBLISH tele/sonoff1/STATE:{"Time":"2019-01-05T17:01:44","Uptime":"0T11:16:32","Vcc":3.543,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"POWER":"ON","Wifi":{"AP":1,"SSId":"HachMichHart","BSSId":"08:96:D7:16:26:89","Channel":11,"RSSI":90}}
2019.01.05 17:01:44 5: MQTT2_Server: dispatch autocreate:DVES_6ADBE6:tele/sonoff1/STATE:{"Time":"2019-01-05T17:01:44","Uptime":"0T11:16:32","Vcc":3.543,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"POWER":"ON","Wifi":{"AP":1,"SSId":"HachMichHart","BSSId":"08:96:D7:16:26:89","Channel":11,"RSSI":90}}
2019.01.05 17:01:45 5: MQTT2_Server: PUBLISH cmnd/DEVNAME/POWER 0
2019.01.05 17:01:46 5: MQTT2_Server: PUBLISH cmnd/DEVNAME/POWER 1
2019.01.05 17:01:48 5: MQTT2_Server: PUBLISH cmnd/DEVNAME/POWER 0
2019.01.05 17:01:49 5: PINGREQ:
2019.01.05 17:01:49 4: MQTT2_Server_192.168.178.27_49185 DVES_24C4E2 PINGREQ
2019.01.05 17:01:49 5: PINGREQ:
2019.01.05 17:01:49 4: MQTT2_Server_192.168.178.33_49189 DVES_6ADBE6 PINGREQ
2019.01.05 17:01:52 5: PINGREQ:
2019.01.05 17:01:52 4: MQTT2_Server_192.168.178.37_49157 DVES_9C6846 PINGREQ
2019.01.05 17:01:59 5: PINGREQ:
2019.01.05 17:01:59 4: MQTT2_Server_192.168.178.27_49185 DVES_24C4E2 PINGREQ



WLAN-Daten geändert!!! Falls da Fehler drinnen sind, ignorieren.
Pi3B+ mit SSD/ Bullseye | FB7590 AX | 12 x Dect200 | CUL433+868 | SDuino | HM-LAN | 3 x Heizung FHT + FKontakte | KeyMatic + 4 FB | HM Wandtaster 2-fach m. LED | 6 x Türkont. TFK-TI | HM-Bew.-Melder innen | 3 x Smoked. HM-SEC-SD-2

Beta-User

Ansonsten sollte doch eigentlich das reading POWER auch beim Drücken des Tasters aktualisiert worden sein, oder verstehe ich den Traffic nicht?
Aber was ganz anderes: wo kommt denn jetzt wieder "DEVNAME" her?!?
Hast du das template aus dem svn genommen oder das fehlerhafte wieder angewendet? Oder FHEM ohne save neu gestartet?
Es macht keinen großen Sinn, ständig woanders aufzusetzen und alle Variablen wieder zu ändern. Dann ist es frustrierende Raterei.

Dann wäre noch interessant, welche Tasmota-Version das ist: https://forum.fhem.de/index.php/topic,95360.0.htmlScheint aber noch nicht die ganz letzte zu sein, das Reading POWER kommt ja rein.


Server: HP-elitedesk@Debian 12, aktuelles FHEM@ConfigDB | CUL_HM (VCCU) | MQTT2: MiLight@ESP-GW, BT@OpenMQTTGw | MySensors: seriell, v.a. 2.3.1@RS485 | ZWave | ZigBee@deCONZ | SIGNALduino | MapleCUN | RHASSPY
svn: u.a MySensors, Weekday-&RandomTimer, Twilight,  div. attrTemplate-files

Invers

Ja, ich stehe heute wohl etwas neben mir. Ich hatte das Device neu angelegt, weil ich selber noch rumprobiert hatte und habe dabei vergessen, erneut die Änderung vorzunehmen. Bitte entschuldige. Asche auf mein Haupt.
Hier der richtige Mitschnitt.




aus an aus an per Knopf und dann aus an aus an per set
2019.01.05 17:38:10 5: PUBLISH: (0)(19)stat/sonoff3/RESULT{"POWER":"OFF"}
2019.01.05 17:38:10 4: MQTT2_Server_192.168.178.37_49153 DVES_9C6846 PUBLISH stat/sonoff3/RESULT:{"POWER":"OFF"}
2019.01.05 17:38:10 5: MQTT2_Server: dispatch autocreate:DVES_9C6846:stat/sonoff3/RESULT:{"POWER":"OFF"}
2019.01.05 17:38:10 4: MQTT2_DEVICE_Parse: MQTT2_DVES_9C6846 stat/sonoff3/RESULT => { json2nameValue($EVENT) }
2019.01.05 17:38:10 5: PUBLISH: (0)(18)stat/sonoff3/POWEROFF
2019.01.05 17:38:10 4: MQTT2_Server_192.168.178.37_49153 DVES_9C6846 PUBLISH stat/sonoff3/POWER:OFF
2019.01.05 17:38:10 5: MQTT2_Server: dispatch autocreate:DVES_9C6846:stat/sonoff3/POWER:OFF
2019.01.05 17:38:10 4: MQTT2_DEVICE_Parse: MQTT2_DVES_9C6846 stat/sonoff3/POWER => POWER
2019.01.05 17:38:10 5: PINGREQ:
2019.01.05 17:38:10 4: MQTT2_Server_192.168.178.33_49202 DVES_6ADBE6 PINGREQ
2019.01.05 17:38:11 5: PINGREQ:
2019.01.05 17:38:11 4: MQTT2_Server_192.168.178.27_49185 DVES_24C4E2 PINGREQ
2019.01.05 17:38:12 5: PUBLISH: (0)(19)stat/sonoff3/RESULT{"POWER":"ON"}
2019.01.05 17:38:12 4: MQTT2_Server_192.168.178.37_49153 DVES_9C6846 PUBLISH stat/sonoff3/RESULT:{"POWER":"ON"}
2019.01.05 17:38:12 5: MQTT2_Server: dispatch autocreate:DVES_9C6846:stat/sonoff3/RESULT:{"POWER":"ON"}
2019.01.05 17:38:12 4: MQTT2_DEVICE_Parse: MQTT2_DVES_9C6846 stat/sonoff3/RESULT => { json2nameValue($EVENT) }
2019.01.05 17:38:12 5: PUBLISH: (0)(18)stat/sonoff3/POWERON
2019.01.05 17:38:12 4: MQTT2_Server_192.168.178.37_49153 DVES_9C6846 PUBLISH stat/sonoff3/POWER:ON
2019.01.05 17:38:12 5: MQTT2_Server: dispatch autocreate:DVES_9C6846:stat/sonoff3/POWER:ON
2019.01.05 17:38:12 4: MQTT2_DEVICE_Parse: MQTT2_DVES_9C6846 stat/sonoff3/POWER => POWER
2019.01.05 17:38:13 5: PINGREQ:
2019.01.05 17:38:13 4: MQTT2_Server_192.168.178.37_49153 DVES_9C6846 PINGREQ
2019.01.05 17:38:14 5: PUBLISH: (0)(19)stat/sonoff3/RESULT{"POWER":"OFF"}
2019.01.05 17:38:14 4: MQTT2_Server_192.168.178.37_49153 DVES_9C6846 PUBLISH stat/sonoff3/RESULT:{"POWER":"OFF"}
2019.01.05 17:38:14 5: MQTT2_Server: dispatch autocreate:DVES_9C6846:stat/sonoff3/RESULT:{"POWER":"OFF"}
2019.01.05 17:38:14 4: MQTT2_DEVICE_Parse: MQTT2_DVES_9C6846 stat/sonoff3/RESULT => { json2nameValue($EVENT) }
2019.01.05 17:38:15 5: PUBLISH: (0)(18)stat/sonoff3/POWEROFF
2019.01.05 17:38:15 4: MQTT2_Server_192.168.178.37_49153 DVES_9C6846 PUBLISH stat/sonoff3/POWER:OFF
2019.01.05 17:38:15 5: MQTT2_Server: dispatch autocreate:DVES_9C6846:stat/sonoff3/POWER:OFF
2019.01.05 17:38:15 4: MQTT2_DEVICE_Parse: MQTT2_DVES_9C6846 stat/sonoff3/POWER => POWER
2019.01.05 17:38:17 5: PUBLISH: (0)(19)stat/sonoff3/RESULT{"POWER":"ON"}
2019.01.05 17:38:17 4: MQTT2_Server_192.168.178.37_49153 DVES_9C6846 PUBLISH stat/sonoff3/RESULT:{"POWER":"ON"}
2019.01.05 17:38:17 5: MQTT2_Server: dispatch autocreate:DVES_9C6846:stat/sonoff3/RESULT:{"POWER":"ON"}
2019.01.05 17:38:17 4: MQTT2_DEVICE_Parse: MQTT2_DVES_9C6846 stat/sonoff3/RESULT => { json2nameValue($EVENT) }
2019.01.05 17:38:17 5: PUBLISH: (0)(18)stat/sonoff3/POWERON
2019.01.05 17:38:17 4: MQTT2_Server_192.168.178.37_49153 DVES_9C6846 PUBLISH stat/sonoff3/POWER:ON
2019.01.05 17:38:17 5: MQTT2_Server: dispatch autocreate:DVES_9C6846:stat/sonoff3/POWER:ON
2019.01.05 17:38:17 4: MQTT2_DEVICE_Parse: MQTT2_DVES_9C6846 stat/sonoff3/POWER => POWER
2019.01.05 17:38:21 5: PINGREQ:
2019.01.05 17:38:21 4: MQTT2_Server_192.168.178.33_49202 DVES_6ADBE6 PINGREQ
2019.01.05 17:38:21 5: PINGREQ:
2019.01.05 17:38:21 4: MQTT2_Server_192.168.178.27_49185 DVES_24C4E2 PINGREQ
2019.01.05 17:38:24 5: PINGREQ:
2019.01.05 17:38:24 4: MQTT2_Server_192.168.178.37_49153 DVES_9C6846 PINGREQ
2019.01.05 17:38:30 5: PINGREQ:
2019.01.05 17:38:30 4: MQTT2_Server_192.168.178.33_49202 DVES_6ADBE6 PINGREQ
2019.01.05 17:38:31 5: PINGREQ:
2019.01.05 17:38:31 4: MQTT2_Server_192.168.178.27_49185 DVES_24C4E2 PINGREQ
2019.01.05 17:38:34 5: PINGREQ:
2019.01.05 17:38:34 4: MQTT2_Server_192.168.178.37_49153 DVES_9C6846 PINGREQ
2019.01.05 17:38:40 5: PINGREQ:
2019.01.05 17:38:40 4: MQTT2_Server_192.168.178.33_49202 DVES_6ADBE6 PINGREQ
2019.01.05 17:38:41 5: PINGREQ:
2019.01.05 17:38:41 4: MQTT2_Server_192.168.178.27_49185 DVES_24C4E2 PINGREQ
2019.01.05 17:38:44 5: PINGREQ:
2019.01.05 17:38:44 4: MQTT2_Server_192.168.178.37_49153 DVES_9C6846 PINGREQ
2019.01.05 17:38:45 5: MQTT2_Server: PUBLISH cmnd/sonoff3/POWER 0
2019.01.05 17:38:45 5: MQTT2_Server_192.168.178.37_49153 DVES_9C6846 => cmnd/sonoff3/POWER:0
2019.01.05 17:38:45 5: PUBLISH: (0)(19)stat/sonoff3/RESULT{"POWER":"OFF"}
2019.01.05 17:38:45 4: MQTT2_Server_192.168.178.37_49153 DVES_9C6846 PUBLISH stat/sonoff3/RESULT:{"POWER":"OFF"}
2019.01.05 17:38:45 5: MQTT2_Server: dispatch autocreate:DVES_9C6846:stat/sonoff3/RESULT:{"POWER":"OFF"}
2019.01.05 17:38:45 4: MQTT2_DEVICE_Parse: MQTT2_DVES_9C6846 stat/sonoff3/RESULT => { json2nameValue($EVENT) }
2019.01.05 17:38:45 5: PUBLISH: (0)(18)stat/sonoff3/POWEROFF
2019.01.05 17:38:45 4: MQTT2_Server_192.168.178.37_49153 DVES_9C6846 PUBLISH stat/sonoff3/POWER:OFF
2019.01.05 17:38:45 5: MQTT2_Server: dispatch autocreate:DVES_9C6846:stat/sonoff3/POWER:OFF
2019.01.05 17:38:45 4: MQTT2_DEVICE_Parse: MQTT2_DVES_9C6846 stat/sonoff3/POWER => POWER
2019.01.05 17:38:46 5: MQTT2_Server: PUBLISH cmnd/sonoff3/POWER 1
2019.01.05 17:38:46 5: MQTT2_Server_192.168.178.37_49153 DVES_9C6846 => cmnd/sonoff3/POWER:1
2019.01.05 17:38:47 5: PUBLISH: (0)(19)stat/sonoff3/RESULT{"POWER":"ON"}
2019.01.05 17:38:47 4: MQTT2_Server_192.168.178.37_49153 DVES_9C6846 PUBLISH stat/sonoff3/RESULT:{"POWER":"ON"}
2019.01.05 17:38:47 5: MQTT2_Server: dispatch autocreate:DVES_9C6846:stat/sonoff3/RESULT:{"POWER":"ON"}
2019.01.05 17:38:47 4: MQTT2_DEVICE_Parse: MQTT2_DVES_9C6846 stat/sonoff3/RESULT => { json2nameValue($EVENT) }
2019.01.05 17:38:47 5: PUBLISH: (0)(18)stat/sonoff3/POWERON
2019.01.05 17:38:47 4: MQTT2_Server_192.168.178.37_49153 DVES_9C6846 PUBLISH stat/sonoff3/POWER:ON
2019.01.05 17:38:47 5: MQTT2_Server: dispatch autocreate:DVES_9C6846:stat/sonoff3/POWER:ON
2019.01.05 17:38:47 4: MQTT2_DEVICE_Parse: MQTT2_DVES_9C6846 stat/sonoff3/POWER => POWER
2019.01.05 17:38:48 5: MQTT2_Server: PUBLISH cmnd/sonoff3/POWER 0
2019.01.05 17:38:48 5: MQTT2_Server_192.168.178.37_49153 DVES_9C6846 => cmnd/sonoff3/POWER:0
2019.01.05 17:38:48 5: PUBLISH: (0)(19)stat/sonoff3/RESULT{"POWER":"OFF"}
2019.01.05 17:38:48 4: MQTT2_Server_192.168.178.37_49153 DVES_9C6846 PUBLISH stat/sonoff3/RESULT:{"POWER":"OFF"}
2019.01.05 17:38:48 5: MQTT2_Server: dispatch autocreate:DVES_9C6846:stat/sonoff3/RESULT:{"POWER":"OFF"}
2019.01.05 17:38:48 4: MQTT2_DEVICE_Parse: MQTT2_DVES_9C6846 stat/sonoff3/RESULT => { json2nameValue($EVENT) }
2019.01.05 17:38:48 5: PUBLISH: (0)(18)stat/sonoff3/POWEROFF
2019.01.05 17:38:48 4: MQTT2_Server_192.168.178.37_49153 DVES_9C6846 PUBLISH stat/sonoff3/POWER:OFF
2019.01.05 17:38:48 5: MQTT2_Server: dispatch autocreate:DVES_9C6846:stat/sonoff3/POWER:OFF
2019.01.05 17:38:48 4: MQTT2_DEVICE_Parse: MQTT2_DVES_9C6846 stat/sonoff3/POWER => POWER
2019.01.05 17:38:49 5: MQTT2_Server: PUBLISH cmnd/sonoff3/POWER 1
2019.01.05 17:38:49 5: MQTT2_Server_192.168.178.37_49153 DVES_9C6846 => cmnd/sonoff3/POWER:1
2019.01.05 17:38:49 5: PUBLISH: (0)(19)stat/sonoff3/RESULT{"POWER":"ON"}
2019.01.05 17:38:49 4: MQTT2_Server_192.168.178.37_49153 DVES_9C6846 PUBLISH stat/sonoff3/RESULT:{"POWER":"ON"}
2019.01.05 17:38:49 5: MQTT2_Server: dispatch autocreate:DVES_9C6846:stat/sonoff3/RESULT:{"POWER":"ON"}
2019.01.05 17:38:49 4: MQTT2_DEVICE_Parse: MQTT2_DVES_9C6846 stat/sonoff3/RESULT => { json2nameValue($EVENT) }
2019.01.05 17:38:49 5: PUBLISH: (0)(18)stat/sonoff3/POWERON
2019.01.05 17:38:49 4: MQTT2_Server_192.168.178.37_49153 DVES_9C6846 PUBLISH stat/sonoff3/POWER:ON
2019.01.05 17:38:49 5: MQTT2_Server: dispatch autocreate:DVES_9C6846:stat/sonoff3/POWER:ON
2019.01.05 17:38:49 4: MQTT2_DEVICE_Parse: MQTT2_DVES_9C6846 stat/sonoff3/POWER => POWER
2019.01.05 17:38:50 5: PINGREQ:
2019.01.05 17:38:50 4: MQTT2_Server_192.168.178.33_49202 DVES_6ADBE6 PINGREQ
2019.01.05 17:38:51 5: PINGREQ:
2019.01.05 17:38:51 4: MQTT2_Server_192.168.178.27_49185 DVES_24C4E2 PINGREQ

jump to the top

Pi3B+ mit SSD/ Bullseye | FB7590 AX | 12 x Dect200 | CUL433+868 | SDuino | HM-LAN | 3 x Heizung FHT + FKontakte | KeyMatic + 4 FB | HM Wandtaster 2-fach m. LED | 6 x Türkont. TFK-TI | HM-Bew.-Melder innen | 3 x Smoked. HM-SEC-SD-2

Beta-User

Ich glaube, wir sollten das heute lassen und warten, bis du wieder fitter bist. Soweit ich das aus dem log ablese, wird MQTT-seitig was gesendet und dann auch POWER aktualisiert, wenn du am Gerät ein- und ausschaltest.
Geh dann nochmal diesen Teil des Threads durch, das müßte lösbar sein.
Server: HP-elitedesk@Debian 12, aktuelles FHEM@ConfigDB | CUL_HM (VCCU) | MQTT2: MiLight@ESP-GW, BT@OpenMQTTGw | MySensors: seriell, v.a. 2.3.1@RS485 | ZWave | ZigBee@deCONZ | SIGNALduino | MapleCUN | RHASSPY
svn: u.a MySensors, Weekday-&RandomTimer, Twilight,  div. attrTemplate-files

Invers

Ja, vertagen wir uns.

Aber zu Sicherheit noch die Klarstellung:
POWER wird immer aktualisiert, habe ich auch immer gesagt. Nur "state" nicht.
"state" wird nicht aktualisert, wenn man per Taster schaltet.
"state" wird immer aktualisert, wenn man per set schaltet.

Natürlich kann ich das Problem umgehen, wenn ich POWER in meinen Routingen abfrage.
Aber wozu ist dann  "state" noch nützlich? devStateIcon ist dann auch nicht richtig nutzbar, denke ich.

Vielen Dank für die Geduld und schönes WE.
Pi3B+ mit SSD/ Bullseye | FB7590 AX | 12 x Dect200 | CUL433+868 | SDuino | HM-LAN | 3 x Heizung FHT + FKontakte | KeyMatic + 4 FB | HM Wandtaster 2-fach m. LED | 6 x Türkont. TFK-TI | HM-Bew.-Melder innen | 3 x Smoked. HM-SEC-SD-2

moonsorrox

Zitat von: Invers am 05 Januar 2019, 18:04:14
Aber wozu ist dann  "state" noch nützlich? devStateIcon ist dann auch nicht richtig nutzbar, denke ich.
das ist ja genau das was ich auch immer geschrieben habe, du bekommst kein devStateIcon mehr hin, dass mußt du dann anders lösen.

Ich habe da dann bei einem Basic herum konfiguriert und irgendwo hier im Thread steht auch etwas von mir.
Ich habe gerade gestern erst mit dem 4-Kanal Schalter erhebliche Probleme gehabt weil sich dort die States immer von Kleinschreibung auf Großschreibung ändern. Mein Dank geht da an den User "sinus61" der mir geholfen hat.  :D

Bei Bedarf kann ich dir lists schicken von meinen Geräten damit du siehst wie das mit dem devStateIcon gemacht wurde.
Ich habe Basics, Dual, S20 und den 4-Kanalschalter alle mit Tasmota am laufen. Shelly1 habe ich schon 4 Stück aber noch nicht im Einsatz und ich bekomme die Tage noch Sonoff Touch 2 und 3
Intel-NUC i5: FHEM-Server 6.1 :: Perl v5.18.2

Homematic: HM-USB-CFG2,HM-CFG-LAN Adapter, HM-LC-BL1-FM, HM-LC-Sw1PBU-FM, HM-LC-Sw1-PI-2, HM-WDS10-TH-O, HM-CC-TC, HM-LC-SW2-FM

rudolfkoenig

Zitatdas ist ja genau das was ich auch immer geschrieben habe, du bekommst kein devStateIcon mehr hin, dass mußt du dann anders lösen.
Siehe https://forum.fhem.de/index.php/topic,95360.msg882041.html#msg882041

osr

generell noch was.

Bei Tasmota lässt sich der on, off, toggle und hold Text konfigurieren. Standardmäßig ist das alles in Großbuchstaben. Bei set/cmnd Befehlen unterscheidet tasmota nicht zwischen Groß/Kleinschreibung. Es geht also nur um das zurückmelden.

Man könnte hier einfach SetText1 off, SetText2 on, SetText3 toggle und SetText4 hold per cmnd setzen und ein Tasmota Gerät meldet so zurück wie es FHEM intern überall erwartet. Keine eventmap mehr und keine Probleme mit ON/on etc.

Ich verwende das seit circa einem halben Jahr so und es macht die Sache viel einfacher und einheitlicher. Ob man sowas in die Templates einbauen sollte? Nur mal so als Denkanstoß.

moonsorrox

Zitat von: osr am 06 Januar 2019, 20:39:30
Man könnte hier einfach SetText1 off, SetText2 on, SetText3 toggle und SetText4 hold per cmnd setzen und ein Tasmota Gerät meldet so zurück wie es FHEM intern überall erwartet. Keine eventmap mehr und keine Probleme mit ON/on etc.

Ich verwende das seit circa einem halben Jahr so und es macht die Sache viel einfacher und einheitlicher. Ob man sowas in die Templates einbauen sollte? Nur mal so als Denkanstoß.
mich interessiert das habe da aktuell gar keine Vorstellung
Könntest du das mal an einem Beispiel hier zeigen, da kann ich das evtl. mal bei mir probieren oder einsetzen.
Intel-NUC i5: FHEM-Server 6.1 :: Perl v5.18.2

Homematic: HM-USB-CFG2,HM-CFG-LAN Adapter, HM-LC-BL1-FM, HM-LC-Sw1PBU-FM, HM-LC-Sw1-PI-2, HM-WDS10-TH-O, HM-CC-TC, HM-LC-SW2-FM