[Xiaomi Smart Home] Das Modul

Begonnen von torte, 24 Oktober 2017, 10:08:47

Vorheriges Thema - Nächstes Thema

Tedious

Danke für die Infos. Ich muss da noch mal drüber nachdenken wie ich das am geschicktesten löse. Mein Ansatz war ob ich in der Dokumentation irgendwas übersehen habe, dass man ein Attribut setzt das aus "Click" ein On:Off im state macht.

Ist übrigens der eckige Schalter, der kann auch doubleclick. Da der Schalter aber zentral eine Alarmanlage steuern soll(te) ist das schlecht, da ist der WAF schlecht (click an, doppelklick aus). Ggf. schau ich denn doch mal Richtung Selbstbau mit ESP oder irgendwas mit einer Batterie (Intertechno o.ä.). Einen Workaround mit zig Schleifen und DOIFs wollte ich da eher vermeiden.
FHEM auf Proxmox-VM (Intel NUC) mit 4xMapleCUN (433,3x868) und Jeelink, HUE, MiLight, Max!, SonOff, Zigbee, Alexa, uvm...

Tedious

#136
Ich muss leider noch mal nachhaken... die Xiaomi-Schalter triggern scheinbar immer doppelt:

Ich habe ein notify gebastelt welches auf den Schalter "hört" und einen Dummy triggert:

defmod XMI_158d0002044021_notify_1 notify XMI_158d0002044021:click IF ([Alarm_An_Aus:state] eq "off") (set Alarm_An_Aus on) ELSE (set Alarm_An_Aus off)

So weit, so gut - aber die Meldungen kommen immer doppelt an, d.h. er schaltet an und direkt wieder aus....

2019-04-19 11:40:47 dummy Alarm_An_Aus off
2019-04-19 11:40:47 XiaomiSmartHome_Device XMI_158d0002044021 click
2019-04-19 11:40:47 dummy Alarm_An_Aus on
2019-04-19 11:40:47 XiaomiSmartHome_Device XMI_158d0002044021 click
2019-04-19 11:40:49 XiaomiSmartHome MiGateway heartbeat: 7c49ebb0e0d0
2019-04-19 11:40:49 XiaomiSmartHome MiGateway token: vBVbGLUWLtJrgXJU
2019-04-19 11:40:49 XiaomiSmartHome MiGateway heartbeat: 7c49ebb0e0d0
2019-04-19 11:40:49 XiaomiSmartHome MiGateway token: vBVbGLUWLtJrgXJU


Ich drücke explizit nur 1x auf den Button, aber er generiert 2 Events. Jemand eine Idee wie ich das abfangen kann? Ein Sleep funktioniert nicht, da die Signale offensichtlich +/- zeitgleich anzukommen scheinen.

EDIT: habs gelöst, disableaftertrigger im Notify war die Lösung - falls nach mir noch einaml jemand das Problem bekommen sollte.
FHEM auf Proxmox-VM (Intel NUC) mit 4xMapleCUN (433,3x868) und Jeelink, HUE, MiLight, Max!, SonOff, Zigbee, Alexa, uvm...

Typ1er

Ich brauche mal einen Tip.

Ich habe an einem Fenster 2 Kontaktsensoren. Nach einem Neustart von FHEM habe ich ein seltsames Verhalten, ich muss ,,alle" Aqara Sensoren erst einmal auslösen, damit die Jalousien fahren, warum wird vom zweiten Sensor das Reading nicht angenommen?

Wird Sensor1 geöffnet fährt die Jalousie auf 24%
wird Sensor2 geöffnet fährt die Jalousie auf 80%
Beide "zu" Jalousie off

Hier mein doif
define Rollladen_Ba_DOIF DOIF ([Rollladen_Ba:DayTime] eq "Nacht" and [Kontakt_Ba_tilt]eq "close" and [Kontakt_Ba_open]eq "close")
(set Rollladen_Ba off)
DOELSEIF([Rollladen_Ba:DayTime] eq "Nacht" and [Kontakt_Ba_tilt]eq "open" and [Kontakt_Ba_open]eq "close")
(set Rollladen_Ba dim 24)
DOELSEIF([Rollladen_Ba:DayTime] eq "Nacht" and [Kontakt_Ba_tilt]eq "open" and [Kontakt_Ba_open]eq "close" )
(set Rollladen_Ba dim 80)

Typ1er

Zitat von: Tedious am 19 April 2019, 11:43:10
Ich muss leider noch mal nachhaken... die Xiaomi-Schalter triggern scheinbar immer doppelt:

Ich habe ein notify gebastelt welches auf den Schalter "hört" und einen Dummy triggert:

defmod XMI_158d0002044021_notify_1 notify XMI_158d0002044021:click IF ([Alarm_An_Aus:state] eq "off") (set Alarm_An_Aus on) ELSE (set Alarm_An_Aus off)

So weit, so gut - aber die Meldungen kommen immer doppelt an, d.h. er schaltet an und direkt wieder aus....

2019-04-19 11:40:47 dummy Alarm_An_Aus off
2019-04-19 11:40:47 XiaomiSmartHome_Device XMI_158d0002044021 click
2019-04-19 11:40:47 dummy Alarm_An_Aus on
2019-04-19 11:40:47 XiaomiSmartHome_Device XMI_158d0002044021 click
2019-04-19 11:40:49 XiaomiSmartHome MiGateway heartbeat: 7c49ebb0e0d0
2019-04-19 11:40:49 XiaomiSmartHome MiGateway token: vBVbGLUWLtJrgXJU
2019-04-19 11:40:49 XiaomiSmartHome MiGateway heartbeat: 7c49ebb0e0d0
2019-04-19 11:40:49 XiaomiSmartHome MiGateway token: vBVbGLUWLtJrgXJU


Ich drücke explizit nur 1x auf den Button, aber er generiert 2 Events. Jemand eine Idee wie ich das abfangen kann? Ein Sleep funktioniert nicht, da die Signale offensichtlich +/- zeitgleich anzukommen scheinen.

EDIT: habs gelöst, disableaftertrigger im Notify war die Lösung - falls nach mir noch einaml jemand das Problem bekommen sollte.
Diesen Effekt habe ich auch, das Alle Events Doppelt kommen.

2019.04.30 22:27:43 3 : MiGateway_Kueche: DEV_Read> Name: XMI_158d0002b84b38 SID: 158d0002b84b38 Type: sensor_motion.aq2 Illuminance: 36
2019.04.30 22:27:43 3 : MiGateway_Kueche: DEV_Read> Name: XMI_158d0002b84b38 SID: 158d0002b84b38 Type: sensor_motion.aq2 Illuminance: 36
2019.04.30 22:27:43 3 : MiGateway_Kueche: DEV_Read> Name: XMI_158d0002b84b38 SID: 158d0002b84b38 Type: sensor_motion.aq2 Status: motion
2019.04.30 22:27:43 3 : MiGateway_Kueche: DEV_Read> Name: XMI_158d0002b84b38 SID: 158d0002b84b38 Type: sensor_motion.aq2 Status: motion
2019.04.30 22:27:45 3 : MiGateway_Kueche: Unknown code {"cmd":"report","model":"vibration","sid":"158d0002a92534","short_id":50447,"data":"{\"coordination\":\"0,0,1215\"}"}, help me!
2019.04.30 22:27:45 3 : MiGateway_Kueche: Unknown code {"cmd":"report","model":"vibration","sid":"158d0002a92534","short_id":50447,"data":"{\"coordination\":\"0,0,1215\"}"}, help me!
2019.04.30 22:27:45 3 : MiGateway_Kueche: Unknown code {"cmd":"heartbeat","model":"vibration","sid":"158d0002a92534","short_id":50447,"data":"{\"voltage\":3015}"}, help me!
2019.04.30 22:27:45 3 : MiGateway_Kueche: Unknown code {"cmd":"heartbeat","model":"vibration","sid":"158d0002a92534","short_id":50447,"data":"{\"voltage\":3015}"}, help me!
2019.04.30 22:27:48 3 : MiGateway_Kueche: DEV_Timeout> SID: 158d0002b84b38 Type: sensor_motion.aq2 Status: off
2019.04.30 22:28:20 3 : MiGateway_Kueche: DEV_Read> Name: XMI_158d0002b6fe89 SID: 158d0002b6fe89 Type: sensor_motion.aq2 Illuminance: 8
2019.04.30 22:28:20 3 : MiGateway_Kueche: DEV_Read> Name: XMI_158d0002b6fe89 SID: 158d0002b6fe89 Type: sensor_motion.aq2 Illuminance: 8
2019.04.30 22:28:20 3 : MiGateway_Kueche: DEV_Read> Name: XMI_158d0002b6fe89 SID: 158d0002b6fe89 Type: sensor_motion.aq2 Status: motion
2019.04.30 22:28:20 3 : MiGateway_Kueche: DEV_Read> Name: XMI_158d0002b6fe89 SID: 158d0002b6fe89 Type: sensor_motion.aq2 Status: motion

torte

Moin,
Welche Version hast Du installiert?

Grüße
Torte

Gesendet mit Tapatalk


Typ1er


torte

Zitat von: Typ1er am 02 Mai 2019, 10:57:50
Version 1.30

dann guck mal in den Changelog #1

Grüße
Torte

Typ1er

ich habe das Update installiert. Jetzt sieht es schon besser aus, Danke.

Typ1er

#143
ein paar doppelte tauchen nach wie vor auf, zb beim Type=weather.v1
Version ist 1.402019.05.02 15:28:04 3: MiGateway_Flur: DEV_Read> Name: Kontakt_Sz_Li_open SID: 158d00022bd647 Type: sensor_magnet.aq2 Status: close
2019.05.02 15:29:14 3: MiGateway_Flur: DEV_Read> Name: XMI_158d0001ab75e1 SID: 158d0001ab75e1 Type: weather.v1 Temperature: 14.610 Round: 3
2019.05.02 15:29:14 3: MiGateway_Flur: DEV_Read> Name: XMI_158d0001ab75e1 SID: 158d0001ab75e1 Type: weather.v1 Humidity: 65.160 Round: 3
2019.05.02 15:29:14 3: MiGateway_Flur: DEV_Read> Name: XMI_158d0001ab75e1 SID: 158d0001ab75e1 Type: weather.v1 Pressure: 99.690 Round: 3
2019.05.02 15:29:48 3: MiGateway_Kueche: Reading> SID: 7811dc64e48e Type: Gateway RGB: 0
2019.05.02 15:29:48 3: MiGateway_Kueche: Reading> SID: 7811dc64e48e Type: Gateway Illumination: 1292
2019.05.02 15:29:50 3: MiGateway_Flur: DEV_Read> Name: XMI_158d0001f52d2e SID: 158d0001f52d2e Type: weather.v1 Temperature: 16.43 Round: 2
2019.05.02 15:29:50 3: MiGateway_Flur: DEV_Read> Name: XMI_158d0001f52d2e SID: 158d0001f52d2e Type: weather.v1 Humidity: 68.65 Round: 2
2019.05.02 15:29:50 3: MiGateway_Flur: DEV_Read> Name: XMI_158d0001f52d2e SID: 158d0001f52d2e Type: weather.v1 Pressure: 99.73 Round: 2
2019.05.02 15:29:50 3: MiGateway_Flur: DEV_Read> Name: XMI_158d0001f52d2e SID: 158d0001f52d2e Type: weather.v1 Temperature: 16.43 Round: 2
2019.05.02 15:29:50 3: MiGateway_Flur: DEV_Read> Name: XMI_158d0001f52d2e SID: 158d0001f52d2e Type: weather.v1 Humidity: 68.65 Round: 2
2019.05.02 15:29:50 3: MiGateway_Flur: DEV_Read> Name: XMI_158d0001f52d2e SID: 158d0001f52d2e Type: weather.v1 Pressure: 99.73 Round: 2
2019.05.02 15:30:40 3: MiGateway_Flur: Reading> SID: 7811dcb1ef2f Type: Gateway RGB: 0
2019.05.02 15:30:40 3: MiGateway_Flur: Reading> SID: 7811dcb1ef2f Type: Gateway Illumination: 1260
2019.05.02 15:32:36 3: MiGateway_Flur: Reading> SID: 7811dcb1ef2f Type: Gateway RGB: 0
2019.05.02 15:32:36 3: MiGateway_Flur: Reading> SID: 7811dcb1ef2f Type: Gateway Illumination: 1272
2019.05.02 15:33:18 3: MiGateway_Flur: Reading> SID: 7811dcb1ef2f Type: Gateway RGB: 0
2019.05.02 15:33:18 3: MiGateway_Flur: Reading> SID: 7811dcb1ef2f Type: Gateway Illumination: 1151
2019.05.02 15:33:45 3: MiGateway_Kueche: DEV_Read> Name: XMI_158d0001fa70bb SID: 158d0001fa70bb Type: weather.v1 Temperature: 23.26 Round: 2
2019.05.02 15:33:45 3: MiGateway_Kueche: DEV_Read> Name: XMI_158d0001fa70bb SID: 158d0001fa70bb Type: weather.v1 Humidity: 60.80 Round: 2
2019.05.02 15:33:45 3: MiGateway_Kueche: DEV_Read> Name: XMI_158d0001fa70bb SID: 158d0001fa70bb Type: weather.v1 Pressure: 99.69 Round: 2
2019.05.02 15:36:03 3: MiGateway_Flur: DEV_Read> Name: XMI_158d0001dbd568 SID: 158d0001dbd568 Type: weather.v1 Temperature: 16.750 Round: 3
2019.05.02 15:36:03 3: MiGateway_Flur: DEV_Read> Name: XMI_158d0001dbd568 SID: 158d0001dbd568 Type: weather.v1 Humidity: 59.490 Round: 3
2019.05.02 15:36:03 3: MiGateway_Flur: DEV_Read> Name: XMI_158d0001dbd568 SID: 158d0001dbd568 Type: weather.v1 Pressure: 99.720 Round: 3
2019.05.02 15:36:03 3: MiGateway_Flur: DEV_Read> Name: XMI_158d0001dbd568 SID: 158d0001dbd568 Type: weather.v1 Temperature: 16.750 Round: 3
2019.05.02 15:36:03 3: MiGateway_Flur: DEV_Read> Name: XMI_158d0001dbd568 SID: 158d0001dbd568 Type: weather.v1 Humidity: 59.490 Round: 3
2019.05.02 15:36:03 3: MiGateway_Flur: DEV_Read> Name: XMI_158d0001dbd568 SID: 158d0001dbd568 Type: weather.v1 Pressure: 99.720 Round: 3
2019.05.02 15:36:48 3: MiGateway_Flur: Reading> SID: 7811dcb1ef2f Type: Gateway RGB: 0
2019.05.02 15:36:48 3: MiGateway_Flur: Reading> SID: 7811dcb1ef2f Type: Gateway Illumination: 1275
2019.05.02 15:36:50 3: MiGateway_Flur: Reading> SID: 7811dcb1ef2f Type: Gateway RGB: 0
2019.05.02 15:36:50 3: MiGateway_Flur: Reading> SID: 7811dcb1ef2f Type: Gateway Illumination: 1234
2019.05.02 15:37:02 3: MiGateway_Flur: Reading> SID: 7811dcb1ef2f Type: Gateway RGB: 0
2019.05.02 15:37:02 3: MiGateway_Flur: Reading> SID: 7811dcb1ef2f Type: Gateway Illumination: 1115
2019.05.02 15:37:06 3: MiGateway_Flur: Reading> SID: 7811dcb1ef2f Type: Gateway RGB: 0
2019.05.02 15:37:06 3: MiGateway_Flur: Reading> SID: 7811dcb1ef2f Type: Gateway Illumination: 1136
2019.05.02 15:37:22 3: MiGateway_Kueche: DEV_Read> Name: XMI_158d0002a92534 SID: 158d0002a92534 Type: vibration Status: vibrate
2019.05.02 15:38:03 3: MiGateway_Flur: DEV_Read> Name: WZ_Schrank SID: 158d0002270fff Type: weather.v1 Temperature: 23.650 Round: 3
2019.05.02 15:38:03 3: MiGateway_Flur: DEV_Read> Name: WZ_Schrank SID: 158d0002270fff Type: weather.v1 Humidity: 59.420 Round: 3
2019.05.02 15:38:03 3: MiGateway_Flur: DEV_Read> Name: WZ_Schrank SID: 158d0002270fff Type: weather.v1 Pressure: 99.710 Round: 3
2019.05.02 15:38:32 3: MiGateway_Kueche: DEV_Read> Name: XMI_158d0002a92534 SID: 158d0002a92534 Type: vibration Status: vibrate
2019.05.02 15:38:34 3: MiGateway_Kueche: DEV_Read> Name: XMI_158d0002b84b38 SID: 158d0002b84b38 Type: sensor_motion.aq2 Status: motion
2019.05.02 15:38:39 3: MiGateway_Kueche: DEV_Timeout> SID: 158d0002b84b38 Type: sensor_motion.aq2 Status: off
2019.05.02 15:38:50 3: MiGateway_Flur: DEV_Read> Name: Kontakt_Ki_rechts_tilt SID: 158d0001fd5296 Type: sensor_magnet.aq2 Status: close
2019.05.02 15:39:01 3: MiGateway_Flur: DEV_Read> Name: XMI_158d0002b5f12e SID: 158d0002b5f12e Type: sensor_motion.aq2 Illuminance: 119
2019.05.02 15:39:01 3: MiGateway_Flur: DEV_Read> Name: XMI_158d0002b5f12e SID: 158d0002b5f12e Type: sensor_motion.aq2 Status: motion
2019.05.02 15:39:02 3: MiGateway_Flur: DEV_Timeout> SID: 158d0002b5f12e Type: sensor_motion.aq2 Status: off
2019.05.02 15:39:40 3: MiGateway_Kueche: DEV_Read> Name: XMI_158d0002b84b38 SID: 158d0002b84b38 Type: sensor_motion.aq2 Illuminance: 102
2019.05.02 15:39:40 3: MiGateway_Kueche: DEV_Read> Name: XMI_158d0002b84b38 SID: 158d0002b84b38 Type: sensor_motion.aq2 Status: motion
2019.05.02 15:39:45 3: MiGateway_Kueche: DEV_Timeout> SID: 158d0002b84b38 Type: sensor_motion.aq2 Status: off
2019.05.02 15:40:29 3: MiGateway_Flur: DEV_Read> Name: XMI_158d0001ab75e1 SID: 158d0001ab75e1 Type: weather.v1 Temperature: 14.800 Round: 3
2019.05.02 15:40:29 3: MiGateway_Flur: DEV_Read> Name: XMI_158d0001ab75e1 SID: 158d0001ab75e1 Type: weather.v1 Humidity: 64.620 Round: 3
2019.05.02 15:40:29 3: MiGateway_Flur: DEV_Read> Name: XMI_158d0001ab75e1 SID: 158d0001ab75e1 Type: weather.v1 Pressure: 99.684 Round: 3
2019.05.02 15:40:29 3: MiGateway_Flur: DEV_Read> Name: XMI_158d0001ab75e1 SID: 158d0001ab75e1 Type: weather.v1 Temperature: 14.800 Round: 3
2019.05.02 15:40:29 3: MiGateway_Flur: DEV_Read> Name: XMI_158d0001ab75e1 SID: 158d0001ab75e1 Type: weather.v1 Humidity: 64.620 Round: 3
2019.05.02 15:40:29 3: MiGateway_Flur: DEV_Read> Name: XMI_158d0001ab75e1 SID: 158d0001ab75e1 Type: weather.v1 Pressure: 99.684 Round: 3
2019.05.02 15:41:24 3: MiGateway_Kueche: DEV_Read> Name: XMI_158d0002a92534 SID: 158d0002a92534 Type: vibration Coordination: -1,0,1211
2019.05.02 15:42:12 3: MiGateway_Flur: DEV_Read> Name: Kontakt_Sz_Li_tilt SID: 158d0002046772 Type: sensor_magnet.aq2 Status: open
2019.05.02 15:42:16 3: MiGateway_Flur: DEV_Read> Name: XMI_158d0001dbd568 SID: 158d0001dbd568 Type: weather.v1 Temperature: 16.770 Round: 3
2019.05.02 15:42:16 3: MiGateway_Flur: DEV_Read> Name: XMI_158d0001dbd568 SID: 158d0001dbd568 Type: weather.v1 Humidity: 59.420 Round: 3
2019.05.02 15:42:16 3: MiGateway_Flur: DEV_Read> Name: XMI_158d0001dbd568 SID: 158d0001dbd568 Type: weather.v1 Pressure: 99.710 Round: 3
2019.05.02 15:42:43 3: MiGateway_Flur: DEV_Read> Name: XMI_158d0001f52d2e SID: 158d0001f52d2e Type: weather.v1 Temperature: 16.42 Round: 2
2019.05.02 15:42:43 3: MiGateway_Flur: DEV_Read> Name: XMI_158d0001f52d2e SID: 158d0001f52d2e Type: weather.v1 Humidity: 68.58 Round: 2
2019.05.02 15:42:43 3: MiGateway_Flur: DEV_Read> Name: XMI_158d0001f52d2e SID: 158d0001f52d2e Type: weather.v1 Pressure: 99.71 Round: 2
2019.05.02 15:42:49 3: MiGateway_Flur: DEV_Read> Name: XMI_158d0002b5f12e SID: 158d0002b5f12e Type: sensor_motion.aq2 Illuminance: 110
2019.05.02 15:42:49 3: MiGateway_Flur: DEV_Read> Name: XMI_158d0002b5f12e SID: 158d0002b5f12e Type: sensor_motion.aq2 Status: motion
2019.05.02 15:42:50 3: MiGateway_Flur: DEV_Timeout> SID: 158d0002b5f12e Type: sensor_motion.aq2 Status: off
2019.05.02 15:44:13 3: MiGateway_Flur: Reading> SID: 7811dcb1ef2f Type: Gateway RGB: 0
2019.05.02 15:44:13 3: MiGateway_Flur: Reading> SID: 7811dcb1ef2f Type: Gateway Illumination: 1268
2019.05.02 15:44:24 3: MiGateway_Flur: Reading> SID: 7811dcb1ef2f Type: Gateway RGB: 0
2019.05.02 15:44:24 3: MiGateway_Flur: Reading> SID: 7811dcb1ef2f Type: Gateway Illumination: 1210
2019.05.02 15:44:33 3: MiGateway_Kueche: DEV_Read> Name: XMI_158d0002b6fe89 SID: 158d0002b6fe89 Type: sensor_motion.aq2 Illuminance: 1000
2019.05.02 15:44:33 3: MiGateway_Kueche: DEV_Read> Name: XMI_158d0002b6fe89 SID: 158d0002b6fe89 Type: sensor_motion.aq2 Status: motion
2019.05.02 15:45:00 3: MiGateway_Kueche: DEV_Read> Name: XMI_158d000208f86a SID: 158d000208f86a Type: sensor_magnet.aq2 Status: close
2019.05.02 15:45:19 3: MiGateway_Flur: DEV_Read> Name: XMI_158d000201dcc3 SID: 158d000201dcc3 Type: sensor_magnet.aq2 Status: open
2019.05.02 15:45:32 3: MiGateway_Flur: DEV_Read> Name: XMI_158d00022709e4 SID: 158d00022709e4 Type: weather.v1 Temperature: 15.33 Round: 2
2019.05.02 15:45:32 3: MiGateway_Flur: DEV_Read> Name: XMI_158d00022709e4 SID: 158d00022709e4 Type: weather.v1 Humidity: 73.99 Round: 2
2019.05.02 15:45:32 3: MiGateway_Flur: DEV_Read> Name: XMI_158d00022709e4 SID: 158d00022709e4 Type: weather.v1 Pressure: 99.75 Round: 2
2019.05.02 15:46:02 3: MiGateway_Flur: DEV_Read> Name: XMI_158d0001ab75e1 SID: 158d0001ab75e1 Type: weather.v1 Temperature: 14.950 Round: 3
2019.05.02 15:46:02 3: MiGateway_Flur: DEV_Read> Name: XMI_158d0001ab75e1 SID: 158d0001ab75e1 Type: weather.v1 Humidity: 64.220 Round: 3
2019.05.02 15:46:02 3: MiGateway_Flur: DEV_Read> Name: XMI_158d0001ab75e1 SID: 158d0001ab75e1 Type: weather.v1 Pressure: 99.660 Round: 3
2019.05.02 15:46:17 3: MiGateway_Flur: DEV_Read> Name: Kontakt_Ba_open SID: 158d000201de06 Type: sensor_magnet.aq2 Status: close
2019.05.02 15:46:30 3: MiGateway_Flur: Reading> SID: 7811dcb1ef2f Type: Gateway RGB: 0
2019.05.02 15:46:30 3: MiGateway_Flur: Reading> SID: 7811dcb1ef2f Type: Gateway Illumination: 1274
2019.05.02 15:46:33 3: MiGateway_Flur: Reading> SID: 7811dcb1ef2f Type: Gateway RGB: 0
2019.05.02 15:46:33 3: MiGateway_Flur: Reading> SID: 7811dcb1ef2f Type: Gateway Illumination: 1264
2019.05.02 15:47:01 1: Timeout for XiaomiBTLESens::ExecGatttool_Run reached, terminated process 23799
2019.05.02 15:47:11 3: MiGateway_Flur: DEV_Read> Name: XMI_158d0001f26114 SID: 158d0001f26114 Type: weather.v1 Temperature: 23.61 Round: 2
2019.05.02 15:47:11 3: MiGateway_Flur: DEV_Read> Name: XMI_158d0001f26114 SID: 158d0001f26114 Type: weather.v1 Pressure: 99.70 Round: 2
2019.05.02 15:48:23 3: MiGateway_Flur: DEV_Read> Name: XMI_158d00022709e4 SID: 158d00022709e4 Type: weather.v1 Temperature: 15.29 Round: 2
2019.05.02 15:48:23 3: MiGateway_Flur: DEV_Read> Name: XMI_158d00022709e4 SID: 158d00022709e4 Type: weather.v1 Humidity: 73.93 Round: 2
2019.05.02 15:48:23 3: MiGateway_Flur: DEV_Read> Name: XMI_158d00022709e4 SID: 158d00022709e4 Type: weather.v1 Pressure: 99.76 Round: 2
2019.05.02 15:48:23 3: MiGateway_Flur: DEV_Read> Name: XMI_158d00022709e4 SID: 158d00022709e4 Type: weather.v1 Temperature: 15.29 Round: 2
2019.05.02 15:48:23 3: MiGateway_Flur: DEV_Read> Name: XMI_158d00022709e4 SID: 158d00022709e4 Type: weather.v1 Humidity: 73.93 Round: 2
2019.05.02 15:48:23 3: MiGateway_Flur: DEV_Read> Name: XMI_158d00022709e4 SID: 158d00022709e4 Type: weather.v1 Pressure: 99.76 Round: 2
2019.05.02 15:49:39 3: MiGateway_Flur: Reading> SID: 7811dcb1ef2f Type: Gateway RGB: 0
2019.05.02 15:49:39 3: MiGateway_Flur: Reading> SID: 7811dcb1ef2f Type: Gateway Illumination: 1280
2019.05.02 15:49:40 3: MiGateway_Flur: Reading> SID: 7811dcb1ef2f Type: Gateway RGB: 0
2019.05.02 15:49:40 3: MiGateway_Flur: Reading> SID: 7811dcb1ef2f Type: Gateway Illumination: 1262
2019.05.02 15:49:46 3: MiGateway_Flur: DEV_Read> Name: Kontakt_Bu_Li_tilt SID: 158d0001e46303 Type: sensor_magnet.aq2 Status: close
2019.05.02 15:49:47 3: MiGateway_Flur: Reading> SID: 7811dcb1ef2f Type: Gateway RGB: 0
2019.05.02 15:49:47 3: MiGateway_Flur: Reading> SID: 7811dcb1ef2f Type: Gateway Illumination: 1163
2019.05.02 15:49:52 3: MiGateway_Flur: Reading> SID: 7811dcb1ef2f Type: Gateway RGB: 0
2019.05.02 15:49:52 3: MiGateway_Flur: Reading> SID: 7811dcb1ef2f Type: Gateway Illumination: 1127
2019.05.02 15:49:54 3: MiGateway_Flur: Reading> SID: 7811dcb1ef2f Type: Gateway RGB: 0
2019.05.02 15:49:54 3: MiGateway_Flur: Reading> SID: 7811dcb1ef2f Type: Gateway Illumination: 1137
2019.05.02 15:49:55 3: MiGateway_Flur: Reading> SID: 7811dcb1ef2f Type: Gateway RGB: 0
2019.05.02 15:49:55 3: MiGateway_Flur: Reading> SID: 7811dcb1ef2f Type: Gateway Illumination: 1152
2019.05.02 15:50:33 3: MiGateway_Flur: DEV_Read> Name: Kontakt_Ki_rechts_open SID: 158d0001de8e2d Type: sensor_magnet.aq2 Status: close
2019.05.02 15:51:26 3: MiGateway_Flur: DEV_Read> Name: Kontakt_Ki_links_tilt SID: 158d00022bd6b1 Type: sensor_magnet.aq2 Status: close
2019.05.02 15:51:56 3: MiGateway_Kueche: DEV_Read> Name: DOOR_Kellereingang SID: 158d00022bd634 Type: sensor_magnet.aq2 Status: close
2019.05.02 15:52:38 3: MiGateway_Flur: DEV_Read> Name: Kontakt_Bu_Li_open SID: 158d00022bd719 Type: sensor_magnet.aq2 Status: close
2019.05.02 15:53:17 3: MiGateway_Flur: DEV_Read> Name: XMI_158d0002b5f12e SID: 158d0002b5f12e Type: sensor_motion.aq2 Illuminance: 104
2019.05.02 15:53:17 3: MiGateway_Flur: DEV_Read> Name: XMI_158d0002b5f12e SID: 158d0002b5f12e Type: sensor_motion.aq2 Illuminance: 104
2019.05.02 15:54:18 3: MiGateway_Flur: DEV_Read> Name: Kontakt_Ki_links_open SID: 158d00022bd653 Type: sensor_magnet.aq2 Status: close
2019.05.02 15:54:33 3: MiGateway_Flur: DEV_Read> Name: DOOR_Eingang SID: 158d0001b7bd23 Type: sensor_magnet.aq2 Status: close
2019.05.02 15:55:57 3: MiGateway_Kueche: DEV_Read> Name: Kontakt_Kueche_Kuehlschrank SID: 158d0001e48bbc Type: sensor_magnet.aq2 Status: close
2019.05.02 15:56:19 3: MiGateway_Flur: DEV_Read> Name: Kontakt_Ba_tilt SID: 158d00022bd64a Type: sensor_magnet.aq2 Status: close
2019.05.02 15:56:22 3: MiGateway_Kueche: DEV_Read> Name: XMI_158d0001fa70bb SID: 158d0001fa70bb Type: weather.v1 Temperature: 23.34 Round: 2
2019.05.02 15:56:22 3: MiGateway_Kueche: DEV_Read> Name: XMI_158d0001fa70bb SID: 158d0001fa70bb Type: weather.v1 Humidity: 60.89 Round: 2
2019.05.02 15:56:22 3: MiGateway_Kueche: DEV_Read> Name: XMI_158d0001fa70bb SID: 158d0001fa70bb Type: weather.v1 Pressure: 99.68 Round: 2
2019.05.02 15:56:22 3: MiGateway_Kueche: DEV_Read> Name: XMI_158d0001fa70bb SID: 158d0001fa70bb Type: weather.v1 Temperature: 23.34 Round: 2
2019.05.02 15:56:22 3: MiGateway_Kueche: DEV_Read> Name: XMI_158d0001fa70bb SID: 158d0001fa70bb Type: weather.v1 Humidity: 60.89 Round: 2
2019.05.02 15:56:22 3: MiGateway_Kueche: DEV_Read> Name: XMI_158d0001fa70bb SID: 158d0001fa70bb Type: weather.v1 Pressure: 99.68 Round: 2
2019.05.02 15:56:39 3: MiGateway_Kueche: DEV_Read> Name: XMI_158d0002a92534 SID: 158d0002a92534 Type: vibration Status: vibrate
2019.05.02 15:56:42 3: MiGateway_Kueche: DEV_Read> Name: XMI_158d0002b84b38 SID: 158d0002b84b38 Type: sensor_motion.aq2 Status: motion
2019.05.02 15:56:47 3: MiGateway_Kueche: DEV_Timeout> SID: 158d0002b84b38 Type: sensor_motion.aq2 Status: off
2019.05.02 15:57:02 3: MiGateway_Kueche: DEV_Read> Name: XMI_158d0002b6fe89 SID: 158d0002b6fe89 Type: sensor_motion.aq2 Illuminance: 1000
2019.05.02 15:57:02 3: MiGateway_Kueche: DEV_Read> Name: XMI_158d0002b6fe89 SID: 158d0002b6fe89 Type: sensor_motion.aq2 Illuminance: 1000
2019.05.02 15:57:57 1: Timeout for XiaomiBTLESens::ExecGatttool_Run reached, terminated process 24819

jump to the top

torte

schick mir mal die Ausgabe von beiden list <MIGateways>


Typ1er

Nummer1
Internals:
   CHANGED   
   DEF        192.168.178.25
   FD         81
   FHEMIP     192.168.178.29
   FUUID      5c44a1c6-f33f-06ea-0868-c8a96114a69ce8c8
   GATEWAY    192.168.178.25
   GATEWAY_IP 192.168.178.25
   NAME       MiGateway_Flur
   NOTIFYDEV  global
   NR         112
   NTFY_ORDER 50-MiGateway_Flur
   SID        7811dcb1ef2f
   STATE      Connected
   TYPE       XiaomiSmartHome
   VERSION    1.41
   READINGS:
     2019-05-03 01:55:50   RGB             0
     2019-05-03 02:01:37   heartbeat       7811dcb1ef2f
     2019-05-03 01:55:50   illumination    313
     2019-04-29 16:14:35   password        3593....
     2019-04-28 18:44:36   pct             100
     2019-04-28 18:44:36   ringtone        21
     2019-04-28 18:44:37   state           Connected
     2019-05-03 02:01:37   token           PbS38fvNqBFOD43A
     2019-04-28 18:44:36   volume          10
   helper:
     ConnectionState Connected
     host       192.168.178.25
     sensors    158d0001dbd568,158d0001e46303,158d0001de8e2d,158d0001ab75e1,158d0001bb8f7b,158d0001b7bd7e,158d0001b7bd23,158d00022bd719,158d0001fd5296,158d00022bd6e4,158d00022bd6e2,158d0001d51f55,158d0002132718,158d0001f52d2e,158d00022bd601,158d000201de06,158d00022bd64a,158d00022bd70a,158d000201dcc3,158d0001fd52b8,158d00022bd6b1,158d00022bd653,158d00022bd715,158d00022709e4,158d0001f26114,158d0002270fff,158d0002046772,158d0002750803,
Attributes:
   devStateIcon {Color_devStateIcon(ReadingsVal($name,"rgb","000000"))}
   event-on-change-reading (?!heartbeat|token).*
   room       XiaomiMiSmartHome
   webCmd     pct:rgb:rgb ff0000:rgb 00ff00:rgb 0000ff:on:off


Nummer2
Internals:
   CHANGED   
   DEF        192.168.178.24
   FD         82
   FHEMIP     192.168.178.29
   FUUID      5c44a1c6-f33f-06ea-940a-071f95c2da4fd521
   GATEWAY    192.168.178.24
   GATEWAY_IP 192.168.178.24
   NAME       MiGateway_Kueche
   NOTIFYDEV  global
   NR         113
   NTFY_ORDER 50-MiGateway_Kueche
   SID        7811dc64e48e
   STATE      Connected
   TYPE       XiaomiSmartHome
   VERSION    1.41
   READINGS:
     2019-05-03 01:29:18   RGB             0
     2019-05-03 02:03:02   heartbeat       7811dc64e48e
     2019-05-03 01:29:18   illumination    334
     2019-04-29 16:17:06   password        B0099....
     2019-04-28 18:44:36   pct             100
     2019-04-28 18:44:36   ringtone        21
     2019-04-28 18:44:37   state           Connected
     2019-05-03 02:03:02   token           iAy3S4suXzuhxudO
     2019-04-28 18:44:36   volume          10
   helper:
     ConnectionState Connected
     host       192.168.178.24
     sensors    158d0001fa70bb,158d0001bc1b00,158d000208e22a,158d000208f86a,158d000209108c,158d0001e48bbc,158d00022bd634,158d0002564eca,158d0002046078,158d0002a92534,158d0002b85090,158d0002b84b38,158d0002b5f12e,158d0002b6fe89,158d00022bd647,
Attributes:
   devStateIcon {Color_devStateIcon(ReadingsVal($name,"rgb","000000"))}
   event-on-change-reading (?!heartbeat|token).*
   room       XiaomiMiSmartHome
   webCmd     pct:rgb:rgb ff0000:rgb 00ff00:rgb 0000ff:on:off

torte

Jop sieht eigentlich gut aus.
Bleibt jetzt nur noch mal ein Log mit Verbose 5 am Gateway, aber Komisch ist das es nur die weather.v1 Sensoren sind.
zur not kannst auch EventonChange setzen.

Grüße
Torte

Typ1er

#147
Hier ist ein kurzer Auszug

08:39:24 5: MiGateway_Flur: Read> Read start
2019.05.03 08:39:24 5: MiGateway_Flur: Read> [PLAIN] {"cmd":"report","model":"weather.v1","sid":"158d0001ab75e1","short_id":5994,"data":"{\"temperature\":\"926\"}"}
2019.05.03 08:39:24 5: MiGateway_Flur: Read> Dispatching! SID: 158d0001ab75e1 MiGateway_Flur MiGateway_Flur
2019.05.03 08:39:24 5: MiGateway_Flur: dispatch {"cmd":"report","model":"weather.v1","sid":"158d0001ab75e1","short_id":5994,"data":"{\\"temperature\\":\\"926\\"}"}
2019.05.03 08:39:24 4: MiGateway_Flur: Fingerprint> for {"cmd":"report","model":"weather.v1","sid":"158d0001ab75e1","short_id":5994,"data":"{\"temperature\":\"926\"}"}
2019.05.03 08:39:24 5: MiGateway_Flur: DEV_Parse> IS DEFINED weather.v1 : 158d0001ab75e1 HASH(0x2f27f18)
2019.05.03 08:39:24 5: MiGateway_Flur: DEV_Read> SID: 158d0001ab75e1 XiaomiSmartHome_Device
2019.05.03 08:39:24 5: MiGateway_Flur: DEV_Round> Value: 09.26 points: 3
2019.05.03 08:39:24 5: MiGateway_Flur: DEV_Round> Result_value: 9.260
2019.05.03 08:39:24 3: MiGateway_Flur: DEV_Read> Name: XMI_158d0001ab75e1 SID: 158d0001ab75e1 Type: weather.v1 Temperature: 9.260 Round: 3
2019.05.03 08:39:24 5: MiGateway_Kueche: Read> Read start
2019.05.03 08:39:24 5: MiGateway_Kueche: Read> [PLAIN] {"cmd":"report","model":"weather.v1","sid":"158d0001ab75e1","short_id":5994,"data":"{\"temperature\":\"926\"}"}
2019.05.03 08:39:24 5: MiGateway_Flur: Read> Read start
2019.05.03 08:39:24 5: MiGateway_Flur: Read> [PLAIN] {"cmd":"report","model":"weather.v1","sid":"158d0001ab75e1","short_id":5994,"data":"{\"humidity\":\"6383\"}"}
2019.05.03 08:39:24 5: MiGateway_Flur: Read> Dispatching! SID: 158d0001ab75e1 MiGateway_Flur MiGateway_Flur
2019.05.03 08:39:24 5: MiGateway_Flur: dispatch {"cmd":"report","model":"weather.v1","sid":"158d0001ab75e1","short_id":5994,"data":"{\\"humidity\\":\\"6383\\"}"}
2019.05.03 08:39:24 4: MiGateway_Flur: Fingerprint> for {"cmd":"report","model":"weather.v1","sid":"158d0001ab75e1","short_id":5994,"data":"{\"humidity\":\"6383\"}"}
2019.05.03 08:39:24 5: MiGateway_Flur: DEV_Parse> IS DEFINED weather.v1 : 158d0001ab75e1 HASH(0x2f27f18)
2019.05.03 08:39:24 5: MiGateway_Flur: DEV_Read> SID: 158d0001ab75e1 XiaomiSmartHome_Device
2019.05.03 08:39:24 5: MiGateway_Flur: DEV_Round> Value: 63.83 points: 3
2019.05.03 08:39:24 5: MiGateway_Flur: DEV_Round> Result_value: 63.830
2019.05.03 08:39:24 3: MiGateway_Flur: DEV_Read> Name: XMI_158d0001ab75e1 SID: 158d0001ab75e1 Type: weather.v1 Humidity: 63.830 Round: 3
2019.05.03 08:39:24 5: MiGateway_Kueche: Read> Read start
2019.05.03 08:39:24 5: MiGateway_Kueche: Read> [PLAIN] {"cmd":"report","model":"weather.v1","sid":"158d0001ab75e1","short_id":5994,"data":"{\"humidity\":\"6383\"}"}
2019.05.03 08:39:24 5: MiGateway_Flur: Read> Read start
2019.05.03 08:39:24 5: MiGateway_Flur: Read> [PLAIN] {"cmd":"report","model":"weather.v1","sid":"158d0001ab75e1","short_id":5994,"data":"{\"pressure\":\"99973\"}"}
2019.05.03 08:39:24 5: MiGateway_Flur: Read> Dispatching! SID: 158d0001ab75e1 MiGateway_Flur MiGateway_Flur
2019.05.03 08:39:24 5: MiGateway_Flur: dispatch {"cmd":"report","model":"weather.v1","sid":"158d0001ab75e1","short_id":5994,"data":"{\\"pressure\\":\\"99973\\"}"}
2019.05.03 08:39:24 4: MiGateway_Flur: Fingerprint> for {"cmd":"report","model":"weather.v1","sid":"158d0001ab75e1","short_id":5994,"data":"{\"pressure\":\"99973\"}"}
2019.05.03 08:39:24 5: MiGateway_Flur: DEV_Parse> IS DEFINED weather.v1 : 158d0001ab75e1 HASH(0x2f27f18)
2019.05.03 08:39:24 5: MiGateway_Flur: DEV_Read> SID: 158d0001ab75e1 XiaomiSmartHome_Device
2019.05.03 08:39:24 5: MiGateway_Flur: DEV_Round> Value: 99.973 points: 3
2019.05.03 08:39:24 5: MiGateway_Flur: DEV_Round> Result_value: 99.973
2019.05.03 08:39:24 3: MiGateway_Flur: DEV_Read> Name: XMI_158d0001ab75e1 SID: 158d0001ab75e1 Type: weather.v1 Pressure: 99.973 Round: 3
2019.05.03 08:39:24 5: MiGateway_Kueche: Read> Read start
2019.05.03 08:39:24 5: MiGateway_Kueche: Read> [PLAIN] {"cmd":"report","model":"weather.v1","sid":"158d0001ab75e1","short_id":5994,"data":"{\"pressure\":\"99973\"}"}
2019.05.03 08:39:24 5: MiGateway_Flur: Read> Read start
2019.05.03 08:39:24 5: MiGateway_Flur: Read> [PLAIN] {"cmd":"heartbeat","model":"weather.v1","sid":"158d0001ab75e1","short_id":5994,"data":"{\"voltage\":2925,\"temperature\":\"926\",\"humidity\":\"6383\",\"pressure\":\"99973\"}"}
2019.05.03 08:39:24 5: MiGateway_Flur: Read> Dispatching! SID: 158d0001ab75e1 MiGateway_Flur MiGateway_Flur
2019.05.03 08:39:24 5: MiGateway_Flur: dispatch {"cmd":"heartbeat","model":"weather.v1","sid":"158d0001ab75e1","short_id":5994,"data":"{\\"voltage\\":2925,\\"temperature\\":\\"926\\",\\"humidity\\":\\"6383\\",\\"pressure\\":\\"99973\\"}"}
2019.05.03 08:39:24 4: MiGateway_Flur: Fingerprint> for {"cmd":"heartbeat","model":"weather.v1","sid":"158d0001ab75e1","short_id":5994,"data":"{\"voltage\":2925,\"temperature\":\"926\",\"humidity\":\"6383\",\"pressure\":\"99973\"}"}
2019.05.03 08:39:24 5: MiGateway_Flur: DEV_Parse> IS DEFINED weather.v1 : 158d0001ab75e1 HASH(0x2f27f18)
2019.05.03 08:39:24 5: MiGateway_Flur: DEV_Read> SID: 158d0001ab75e1 XiaomiSmartHome_Device
2019.05.03 08:39:24 4: MiGateway_Flur: DEV_Read> Name: XMI_158d0001ab75e1 SID: 158d0001ab75e1 Type: weather.v1 Voltage: 2925
2019.05.03 08:39:24 5: MiGateway_Flur: DEV_Round> Value: 2.925 points: 3
2019.05.03 08:39:24 5: MiGateway_Flur: DEV_Round> Result_value: 2.925
2019.05.03 08:39:24 5: MiGateway_Flur: DEV_Round> Value: 09.26 points: 3
2019.05.03 08:39:24 5: MiGateway_Flur: DEV_Round> Result_value: 9.260
2019.05.03 08:39:24 3: MiGateway_Flur: DEV_Read> Name: XMI_158d0001ab75e1 SID: 158d0001ab75e1 Type: weather.v1 Temperature: 9.260 Round: 3
2019.05.03 08:39:24 5: MiGateway_Flur: DEV_Round> Value: 63.83 points: 3
2019.05.03 08:39:24 5: MiGateway_Flur: DEV_Round> Result_value: 63.830
2019.05.03 08:39:24 3: MiGateway_Flur: DEV_Read> Name: XMI_158d0001ab75e1 SID: 158d0001ab75e1 Type: weather.v1 Humidity: 63.830 Round: 3
2019.05.03 08:39:24 5: MiGateway_Flur: DEV_Round> Value: 99.973 points: 3
2019.05.03 08:39:24 5: MiGateway_Flur: DEV_Round> Result_value: 99.973
2019.05.03 08:39:24 3: MiGateway_Flur: DEV_Read> Name: XMI_158d0001ab75e1 SID: 158d0001ab75e1 Type: weather.v1 Pressure: 99.973 Round: 3
2019.05.03 08:39:24 5: MiGateway_Kueche: Read> Read start
2019.05.03 08:39:24 5: MiGateway_Kueche: Read> [PLAIN] {"cmd":"heartbeat","model":"weather.v1","sid":"158d0001ab75e1","short_id":5994,"data":"{\"voltage\":2925,\"temperature\":\"926\",\"humidity\":\"6383\",\"pressure\":\"99973\"}"}
2019.05.03 08:39:25 5: MiGateway_Flur: Read> Read start


torte

Hallo Typ1er

Also in dem Log sieht es auch gut aus, es kommt zwar zweimal aber
im ersten Fall ein "Report" einzeln nacheinander Temperatur, Luftfeuchtigkeit und Druck.
Dann in der selben Sekunde aber als getrenntes Paket ein Heartbeat des Sensors da werden dann auch noch mal alle Werte  Temperatur, Luftfeuchtigkeit und Druck mit gesendet und verarbeitet.
Mann kann im Log aber sehr schön sehen das beide GWsModulInstanzen die Pakete bekommen aber nur der im Flur macht den dispatch.

Was ich komisch finde, warum der Sensor zur gleichen Zeit den Report und den Heartbeat  schickt, der Heartbeat kommt eigentlich immer nur einmal in der Stunde bei Sensoren. Der Report wenn sich ein Wert ändert.
Ich kann da jetzt keinen Fehler im Modul erkennen, vielleicht beobachtest Du das noch mal, ob es so bleibt das Report und Heartbeat zur gleichen Zeit kommt. Könnte evtl. dann auch eine Eigenart des Sensortyps sein. Ich hab nur den einfachen TempSensor "sensor_ht" kann also nicht vergleichen.

Grüße
Torte

wolfram

#149
Hallo zusammen,

ich habe mit diesem Modul mein Gateway (v1) schon lange probemlos am laufen. Jetzt bin ich dabei auf docker umzusteigen und habe alles soweit übernehmen können.
Auch das Gateway habe ich eingeichtet bekommen und meine Fenster- Türkontakte wurden gefunden. Licht am Gateway ein und aus  - alles paletti.

Allerdings fällt fhem immer auf die Nase, sobald ich es neu starte. Sowohl mit einem "shutdown restart" als auch, wenn ich den Container neu starte.
Im Log steht nur:

send: Invalid argument at ./FHEM/71_XiaomiSmartHome.pm line 336.

Starten lässt sich fhem dann nur, wenn ich die Definition des Gateways aus der config entferne....

Kann mir irgend jemand sagen, wie ich der Sache auf die Spur kommen kann? Installiert ist die Version 1.41 des Moduls.

vielen Dank und schöne Grüße
wolf