[Benötige Hilfe] MYSENSORS Pulse Sensor Watermeter Einrichtung

Begonnen von Jarnsen, 10 Januar 2016, 00:41:18

Vorheriges Thema - Nächstes Thema

Matscher

@Jarnsen

Du könntest auch einen anderen Sketch zum testen nehmen. Einen einfachen Button oder ähnliches (http://www.mysensors.org/build/binary)
Ich denke das Ergebnis bleibt gleich...:/
Rasp 3
CUL V3 868Mhz + nanoCUL 868Mhz als RFR + nanoCUL 868Mhz für Homematic + SIGNALduino
Zigbee CC2531 - Aquara TempSensor
MySensors Ethernet Gateway, Water meter, Gas meter
Modul: 09_CUL_FHTTK.pm (assumed), culfw part HAS_FHT_TF

Jarnsen

#31
Zitat von: Matscher am 20 Januar 2016, 11:51:12
@Jarnsen

Du könntest auch einen anderen Sketch zum testen nehmen. Einen einfachen Button oder ähnliches (http://www.mysensors.org/build/binary)
Ich denke das Ergebnis bleibt gleich...:/

@ Matscher, du wirst es für komisch halten, aber dieser Sketch funktioniert. Wenn ich den Kontakt schließe habe ich off sobald ich öffne ein on. Das funktioniert also.




EDIT:

Ich denke echt der GW sendet kein VAR oder falsch, aber warum??
1 x RPi2,
1 x nanoCUL433, 1 x nanoCUL868, 1 x SIGNALduino433
Sonos/SonosSpeak, Homebridge, 2 x Enigma2, 10 x Nobily Rollläden, 3 x Intertechno Steckdosen
Pushover, Abfallerinnerung, MySensors, 7 x Max!

Matscher

Okay, dann ist die Hardware schon mal in Ordnung.  :)

Dann nimm nochmal den original Sketch vom Watermeter und teste das nochmal.
Rasp 3
CUL V3 868Mhz + nanoCUL 868Mhz als RFR + nanoCUL 868Mhz für Homematic + SIGNALduino
Zigbee CC2531 - Aquara TempSensor
MySensors Ethernet Gateway, Water meter, Gas meter
Modul: 09_CUL_FHTTK.pm (assumed), culfw part HAS_FHT_TF

Hauswart

Ich glaube im FHEM-Code einen Fehler gefunden zu haben :)

Bitte probiere mal folgende Datei aus: https://raw.githubusercontent.com/Kolbi/fhem-mirror/ea5c2c2032cd18d5fa0466b9f2fcdb4fdc103cfd/fhem/FHEM/10_MYSENSORS_DEVICE.pm

Kommt ins Verzeichnis: /opt/fhem/FHEM/

Gruss
1. Installation:
KNX, Tasmota (KNX), Sonos, Unifi

2. Installation:
HM-CFG-USB, Unifi (, SIGNALduino 868, MySensors, SIGNALduino 433)

gloob

Raspberry Pi 3 | miniCUL 433MHz | nanoCUL 868 MHz | nanoCUL 433 MHz | MySensors WLAN Gateway | LaCrosse WLAN Gateway | SignalESP 433 MHz | SignalESP 868 MHz | HM-MOD-UART WLAN Gateway | IR - 360 Grad WLAN Gateway

Hauswart

1. Installation:
KNX, Tasmota (KNX), Sonos, Unifi

2. Installation:
HM-CFG-USB, Unifi (, SIGNALduino 868, MySensors, SIGNALduino 433)

gloob

#36
Muss Var1 dann aber nicht bei Receives eingetragen werden?
Immerhin soll FHEM ja den Wert an MySensors senden.



S_WATER                 => { receives => [V_VAR1], sends => [V_FLOW,V_VOLUME,V_VAR1] }, # Water meter

Raspberry Pi 3 | miniCUL 433MHz | nanoCUL 868 MHz | nanoCUL 433 MHz | MySensors WLAN Gateway | LaCrosse WLAN Gateway | SignalESP 433 MHz | SignalESP 868 MHz | HM-MOD-UART WLAN Gateway | IR - 360 Grad WLAN Gateway

Jarnsen

#37
Danke für eure Hilfe.

Zitat von: gloob am 21 Januar 2016, 11:15:48
Muss Var1 dann aber nicht bei Receives eingetragen werden?
Immerhin soll FHEM ja den Wert an MySensors senden.



S_WATER                 => { receives => [V_VAR1], sends => [V_FLOW,V_VOLUME,V_VAR1] }, # Water meter



nach dieser Änderung zeigt es nun an wie oft ein Impuls kam, und direkt in Volumen umgerechnet. Habe Pulsfaktor 100/m³ genommen.
Leider zeigt es immernoch keinen Flow an, bzw. ändert der sich nicht.

Oder kann man das auch über den hourConter in nem Plot darstellen. Wenn dann alles so geht wie ich es möchte werde ich nochmal eine zusammenfassung im 1. Post schreiben.


Zitat von: Hauswart am 21 Januar 2016, 11:04:04
Ich glaube im FHEM-Code einen Fehler gefunden zu haben :)

Bitte probiere mal folgende Datei aus: https://raw.githubusercontent.com/Kolbi/fhem-mirror/ea5c2c2032cd18d5fa0466b9f2fcdb4fdc103cfd/fhem/FHEM/10_MYSENSORS_DEVICE.pm

Kommt ins Verzeichnis: /opt/fhem/FHEM/

Gruss

Das hat nicht gereicht, weil es keine Änderung gebracht.

(http://up.picr.de/24352673sy.jpg)

so sieht es momentan aus

Jarnsen


EDIT: Poständerung war nötig da erneutes prüfen ein anderes Ergebnis brachten.
1 x RPi2,
1 x nanoCUL433, 1 x nanoCUL868, 1 x SIGNALduino433
Sonos/SonosSpeak, Homebridge, 2 x Enigma2, 10 x Nobily Rollläden, 3 x Intertechno Steckdosen
Pushover, Abfallerinnerung, MySensors, 7 x Max!

Hauswart

Kannst du mir ein paar Auszüge aus dem EventMonitor Posten?
1. Installation:
KNX, Tasmota (KNX), Sonos, Unifi

2. Installation:
HM-CFG-USB, Unifi (, SIGNALduino 868, MySensors, SIGNALduino 433)

Jarnsen

#39
Flow zeigt jetzt was an, Sensor gelöscht FHEM neu gestartet. Sensor angelernt.


2016-01-21 18:52:13 MYSENSORS_DEVICE Gaszaehler value11: 25
2016-01-21 18:52:13 MYSENSORS_DEVICE Gaszaehler volume1: 0.250
2016-01-21 18:52:41 MYSENSORS_DEVICE Gaszaehler parentId: 0
2016-01-21 18:52:43 MYSENSORS_DEVICE Gaszaehler SKETCH_NAME: Water Meter
2016-01-21 18:52:43 MYSENSORS_DEVICE Gaszaehler SKETCH_VERSION: 1.1
2016-01-21 18:52:44 MYSENSORS_DEVICE Gaszaehler value11: 25
2016-01-21 18:53:13 MYSENSORS_DEVICE Gaszaehler value11: 44
2016-01-21 18:53:13 MYSENSORS_DEVICE Gaszaehler volume1: 0.440
2016.01.21 18:54:13 5 : MYSENSORS/RAW: /0;0;3;0;9;read: 11-11-0 s=1,c=1,t=24,pt=5,l=4,sg=0
2016.01.21 18:54:13 5 : MYSENSORS/RAW: 0;0;3;0;9;read: 11-11-0 s=1,c=1,t=24,pt=5,l=4,sg=0/:50 11;1;1;0;24;50
2016.01.21 18:54:13 5 : MYSENSORS Read: Rx: fr=000 ci=000 c=003(C_INTERNAL ) st=009(I_LOG_MESSAGE ) ack=0 'read: 11-11-0 s=1,c=1,t=24,pt=5,l=4,sg=0:50'
2016.01.21 18:54:13 5 : MYSENSORS gateway MySensorsGateway: read: 11-11-0 s=1,c=1,t=24,pt=5,l=4,sg=0:50
2016.01.21 18:54:13 5 : MYSENSORS Read: Rx: fr=011 ci=001 c=001(C_SET ) st=024(V_VAR1 ) ack=0 '50'
2016-01-21 18:54:13 MYSENSORS_DEVICE Gaszaehler value11: 50
2016.01.21 18:54:13 5 : MYSENSORS/RAW: /0;0;3;0;9;read: 11-11-0 s=1,c=1,t=35,pt=7,l=5,sg=0:0.500 11;1;1;0;35;0.500
2016.01.21 18:54:13 5 : MYSENSORS Read: Rx: fr=000 ci=000 c=003(C_INTERNAL ) st=009(I_LOG_MESSAGE ) ack=0 'read: 11-11-0 s=1,c=1,t=35,pt=7,l=5,sg=0:0.500'
2016.01.21 18:54:13 5 : MYSENSORS gateway MySensorsGateway: read: 11-11-0 s=1,c=1,t=35,pt=7,l=5,sg=0:0.500
2016.01.21 18:54:13 5 : MYSENSORS Read: Rx: fr=011 ci=001 c=001(C_SET ) st=035(V_VOLUME ) ack=0 '0.500'
2016-01-21 18:54:13 MYSENSORS_DEVICE Gaszaehler volume1: 0.500
2016.01.21 18:54:43 5 : MYSENSORS/RAW: /0
2016.01.21 18:54:43 5 : MYSENSORS/RAW: 0/;0;3;0;9;read: 11-11-0 s=1,c=1,t=24,pt=5,l=4,sg=0:50
2016.01.21 18:54:43 5 : MYSENSORS/RAW: 0;0;3;0;9;read: 11-11-0 s=1,c=1,t=24,pt=5,l=4,sg=0:50/ 11;1;1;0;24;50 0;0;3;0;9;r
2016.01.21 18:54:43 5 : MYSENSORS Read: Rx: fr=000 ci=000 c=003(C_INTERNAL ) st=009(I_LOG_MESSAGE ) ack=0 'read: 11-11-0 s=1,c=1,t=24,pt=5,l=4,sg=0:50'
2016.01.21 18:54:43 5 : MYSENSORS gateway MySensorsGateway: read: 11-11-0 s=1,c=1,t=24,pt=5,l=4,sg=0:50
2016.01.21 18:54:43 5 : MYSENSORS Read: Rx: fr=011 ci=001 c=001(C_SET ) st=024(V_VAR1 ) ack=0 '50'
2016-01-21 18:54:43 MYSENSORS_DEVICE Gaszaehler value11: 50
2016.01.21 18:54:43 5 : MYSENSORS/RAW: 0;0;3;0;9;r/ead: 11-11-0 s=1,c=1,t=35,pt=7,l=5,sg=0:0.500 11;1;1;0;35;0.500
2016.01.21 18:54:43 5 : MYSENSORS Read: Rx: fr=000 ci=000 c=003(C_INTERNAL ) st=009(I_LOG_MESSAGE ) ack=0 'read: 11-11-0 s=1,c=1,t=35,pt=7,l=5,sg=0:0.500'
2016.01.21 18:54:43 5 : MYSENSORS gateway MySensorsGateway: read: 11-11-0 s=1,c=1,t=35,pt=7,l=5,sg=0:0.500
2016.01.21 18:54:43 5 : MYSENSORS Read: Rx: fr=011 ci=001 c=001(C_SET ) st=035(V_VOLUME ) ack=0 '0.500'
2016-01-21 18:54:43 MYSENSORS_DEVICE Gaszaehler volume1: 0.500
2016.01.21 18:55:13 5 : MYSENSORS/RAW: /0;0;3;0;9;read:
2016.01.21 18:55:13 5 : MYSENSORS/RAW: 0;0;3;0;9;read: /11-11-0 s=1,c=1,t=24,pt=5,l=4,sg
2016.01.21 18:55:13 5 : MYSENSORS/RAW: 0;0;3;0;9;read: 11-11-0 s=1,c=1,t=24,pt=5,l=4,sg/=0:53 11;1;1;0;24;53
2016.01.21 18:55:13 5 : MYSENSORS Read: Rx: fr=000 ci=000 c=003(C_INTERNAL ) st=009(I_LOG_MESSAGE ) ack=0 'read: 11-11-0 s=1,c=1,t=24,pt=5,l=4,sg=0:53'
2016.01.21 18:55:13 5 : MYSENSORS gateway MySensorsGateway: read: 11-11-0 s=1,c=1,t=24,pt=5,l=4,sg=0:53
2016.01.21 18:55:13 5 : MYSENSORS Read: Rx: fr=011 ci=001 c=001(C_SET ) st=024(V_VAR1 ) ack=0 '53'
2016-01-21 18:55:13 MYSENSORS_DEVICE Gaszaehler value11: 53
2016.01.21 18:55:13 5 : MYSENSORS/RAW: /0;0;3;0;9;read: 11-11-0 s=1,c=1,t=35,pt=7,l=5,sg=0:0.530 11;1;1;0;35;0.530
2016.01.21 18:55:13 5 : MYSENSORS Read: Rx: fr=000 ci=000 c=003(C_INTERNAL ) st=009(I_LOG_MESSAGE ) ack=0 'read: 11-11-0 s=1,c=1,t=35,pt=7,l=5,sg=0:0.530'
2016.01.21 18:55:13 5 : MYSENSORS gateway MySensorsGateway: read: 11-11-0 s=1,c=1,t=35,pt=7,l=5,sg=0:0.530
2016.01.21 18:55:13 5 : MYSENSORS Read: Rx: fr=011 ci=001 c=001(C_SET ) st=035(V_VOLUME ) ack=0 '0.530'
2016-01-21 18:55:13 MYSENSORS_DEVICE Gaszaehler volume1: 0.530
2016.01.21 18:55:43 5 : MYSENSORS/RAW: /0;0;3;0;9;read: 11
2016.01.21 18:55:43 5 : MYSENSORS/RAW: 0;0;3;0;9;read: 11/-11-0 s=1,c=1,t=24,pt=5,l=4,sg=0
2016.01.21 18:55:43 5 : MYSENSORS/RAW: 0;0;3;0;9;read: 11-11-0 s=1,c=1,t=24,pt=5,l=4,sg=0/:71 11;1;1;0;24;71
2016.01.21 18:55:43 5 : MYSENSORS Read: Rx: fr=000 ci=000 c=003(C_INTERNAL ) st=009(I_LOG_MESSAGE ) ack=0 'read: 11-11-0 s=1,c=1,t=24,pt=5,l=4,sg=0:71'
2016.01.21 18:55:43 5 : MYSENSORS gateway MySensorsGateway: read: 11-11-0 s=1,c=1,t=24,pt=5,l=4,sg=0:71
2016.01.21 18:55:43 5 : MYSENSORS Read: Rx: fr=011 ci=001 c=001(C_SET ) st=024(V_VAR1 ) ack=0 '71'
2016-01-21 18:55:43 MYSENSORS_DEVICE Gaszaehler value11: 71
2016.01.21 18:55:43 5 : MYSENSORS/RAW: /0;0;3;0;9;read: 11-11-0 s=1,c=1,t=35,pt=7,l=5,sg=0:0.710 11;1;1;0;35;0.710
2016.01.21 18:55:43 5 : MYSENSORS Read: Rx: fr=000 ci=000 c=003(C_INTERNAL ) st=009(I_LOG_MESSAGE ) ack=0 'read: 11-11-0 s=1,c=1,t=35,pt=7,l=5,sg=0:0.710'
2016.01.21 18:55:43 5 : MYSENSORS gateway MySensorsGateway: read: 11-11-0 s=1,c=1,t=35,pt=7,l=5,sg=0:0.710
2016.01.21 18:55:43 5 : MYSENSORS Read: Rx: fr=011 ci=001 c=001(C_SET ) st=035(V_VOLUME ) ack=0 '0.710'
2016-01-21 18:55:43 MYSENSORS_DEVICE Gaszaehler volume1: 0.710
2016.01.21 18:56:13 5 : MYSENSORS/RAW: /0;0;3;0;9;re
2016.01.21 18:56:13 5 : MYSENSORS/RAW: 0;0;3;0;9;re/ad: 11-11-0 s=1,c=1,t=24,pt=5,l=4,sg=0:80 11;1;1;
2016.01.21 18:56:13 5 : MYSENSORS Read: Rx: fr=000 ci=000 c=003(C_INTERNAL ) st=009(I_LOG_MESSAGE ) ack=0 'read: 11-11-0 s=1,c=1,t=24,pt=5,l=4,sg=0:80'
2016.01.21 18:56:13 5 : MYSENSORS gateway MySensorsGateway: read: 11-11-0 s=1,c=1,t=24,pt=5,l=4,sg=0:80
2016.01.21 18:56:13 5 : MYSENSORS/RAW: 11;1;1;/0;24;80 0;0;3;0;9;read: 11-11-0 s=1,c=1,t=35,pt=7,l=5,sg=0:0.80
2016.01.21 18:56:13 5 : MYSENSORS Read: Rx: fr=011 ci=001 c=001(C_SET ) st=024(V_VAR1 ) ack=0 '80'
2016-01-21 18:56:13 MYSENSORS_DEVICE Gaszaehler value11: 80
2016.01.21 18:56:13 5 : MYSENSORS/RAW: 0;0;3;0;9;read: 11-11-0 s=1,c=1,t=35,pt=7,l=5,sg=0:0.80/0 11;1;1;0;35;0.800
2016.01.21 18:56:13 5 : MYSENSORS Read: Rx: fr=000 ci=000 c=003(C_INTERNAL ) st=009(I_LOG_MESSAGE ) ack=0 'read: 11-11-0 s=1,c=1,t=35,pt=7,l=5,sg=0:0.800'
2016.01.21 18:56:13 5 : MYSENSORS gateway MySensorsGateway: read: 11-11-0 s=1,c=1,t=35,pt=7,l=5,sg=0:0.800
2016.01.21 18:56:13 5 : MYSENSORS Read: Rx: fr=011 ci=001 c=001(C_SET ) st=035(V_VOLUME ) ack=0 '0.800'
2016-01-21 18:56:13 MYSENSORS_DEVICE Gaszaehler volume1: 0.800
2016.01.21 18:56:43 5 : MYSENSORS/RAW: /0;0
2016.01.21 18:56:43 5 : MYSENSORS/RAW: 0;0/;3;0;9;read: 11-11-0 s=1,c=1,t=24,pt=5,l=4,sg=0:80 11;1;1;0;24;80
2016.01.21 18:56:43 5 : MYSENSORS Read: Rx: fr=000 ci=000 c=003(C_INTERNAL ) st=009(I_LOG_MESSAGE ) ack=0 'read: 11-11-0 s=1,c=1,t=24,pt=5,l=4,sg=0:80'
2016.01.21 18:56:43 5 : MYSENSORS gateway MySensorsGateway: read: 11-11-0 s=1,c=1,t=24,pt=5,l=4,sg=0:80
2016.01.21 18:56:43 5 : MYSENSORS/RAW: 11;1;1;0;24;80/ 0;0;3;0;9;read: 11-11-0 s=1,c=1,t=35,pt=7,l=
2016.01.21 18:56:43 5 : MYSENSORS Read: Rx: fr=011 ci=001 c=001(C_SET ) st=024(V_VAR1 ) ack=0 '80'
2016-01-21 18:56:43 MYSENSORS_DEVICE Gaszaehler value11: 80
2016.01.21 18:56:43 5 : MYSENSORS/RAW: 0;0;3;0;9;read: 11-11-0 s=1,c=1,t=35,pt=7,l=/5,sg=0:0.800 11;1;1;0;35;0.800
2016.01.21 18:56:43 5 : MYSENSORS Read: Rx: fr=000 ci=000 c=003(C_INTERNAL ) st=009(I_LOG_MESSAGE ) ack=0 'read: 11-11-0 s=1,c=1,t=35,pt=7,l=5,sg=0:0.800'
2016.01.21 18:56:43 5 : MYSENSORS gateway MySensorsGateway: read: 11-11-0 s=1,c=1,t=35,pt=7,l=5,sg=0:0.800
2016.01.21 18:56:43 5 : MYSENSORS Read: Rx: fr=011 ci=001 c=001(C_SET ) st=035(V_VOLUME ) ack=0 '0.800'
2016-01-21 18:56:43 MYSENSORS_DEVICE Gaszaehler volume1: 0.800




EDIT:
da ich einen Puls von 100/m³ habe muß ich bestimmt max flow im sketch erhöhen oder??

Finde gut das man den Zählerstand über set Gaszaeler value11 angepasst werden kann.
1 x RPi2,
1 x nanoCUL433, 1 x nanoCUL868, 1 x SIGNALduino433
Sonos/SonosSpeak, Homebridge, 2 x Enigma2, 10 x Nobily Rollläden, 3 x Intertechno Steckdosen
Pushover, Abfallerinnerung, MySensors, 7 x Max!

Jarnsen

Jetzt würde ich euch noch bitten mir bei der Erstellung des Plots dazu zu unterstützen. Ein logfile habe ich schon angelegt das den Zählerstand mitschneidet wenn er sich ändert. Wie bekomme ich da jetzt aktueller Verbrauch, Stunde, Tag, Monat und Jahr heraus um es graphisch darzustellen.
1 x RPi2,
1 x nanoCUL433, 1 x nanoCUL868, 1 x SIGNALduino433
Sonos/SonosSpeak, Homebridge, 2 x Enigma2, 10 x Nobily Rollläden, 3 x Intertechno Steckdosen
Pushover, Abfallerinnerung, MySensors, 7 x Max!

Hauswart

Zitat von: Jarnsen am 21 Januar 2016, 19:01:44
Flow zeigt jetzt was an, Sensor gelöscht FHEM neu gestartet. Sensor angelernt.

D.h. der Sensor geht nun problemlos? Einen Screen würde ich mir wünschen :)

Dann würde ich meine Änderung weitergeben, damit diese es in offizielle FHEM schafft.
1. Installation:
KNX, Tasmota (KNX), Sonos, Unifi

2. Installation:
HM-CFG-USB, Unifi (, SIGNALduino 868, MySensors, SIGNALduino 433)

gloob

Ist es nicht aber trotzdem noch falsch?

ZitatMuss Var1 denn aber nicht bei Receives eingetragen werden?
Immerhin soll FHEM ja den Wert an MySensors senden.



S_WATER                 => { receives => [V_VAR1], sends => [V_FLOW,V_VOLUME,V_VAR1] }, # Water meter

Raspberry Pi 3 | miniCUL 433MHz | nanoCUL 868 MHz | nanoCUL 433 MHz | MySensors WLAN Gateway | LaCrosse WLAN Gateway | SignalESP 433 MHz | SignalESP 868 MHz | HM-MOD-UART WLAN Gateway | IR - 360 Grad WLAN Gateway

Jarnsen

@ gloob

Habe ja geschrieben das ich deine Änderungen eingebaut habe... Siehe oben...

@ Hauswart

Deine Änderung hat nicht ausgereicht...

Screen sende ich wenn ich @ Home bin...


Gesendet von iPhone mit Tapatalk
1 x RPi2,
1 x nanoCUL433, 1 x nanoCUL868, 1 x SIGNALduino433
Sonos/SonosSpeak, Homebridge, 2 x Enigma2, 10 x Nobily Rollläden, 3 x Intertechno Steckdosen
Pushover, Abfallerinnerung, MySensors, 7 x Max!

gloob

Sorry, deinen Post habe ich nicht gesehen. Aber gut wenn es jetzt funktioniert.
Raspberry Pi 3 | miniCUL 433MHz | nanoCUL 868 MHz | nanoCUL 433 MHz | MySensors WLAN Gateway | LaCrosse WLAN Gateway | SignalESP 433 MHz | SignalESP 868 MHz | HM-MOD-UART WLAN Gateway | IR - 360 Grad WLAN Gateway