Integration von MySensors in FHEM geplant?

Begonnen von fh555, 06 September 2014, 00:40:58

Vorheriges Thema - Nächstes Thema

Hauswart

So jetzt benötige ich auch die neuen Variablen. Wollte den Air Quality Sensor benutzen.
1. Installation:
KNX, Tasmota (KNX), Sonos, Unifi

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

Marie

moin,

ich muss auch mal eben eine frage in den Raum werfen. Ich habe hier auch Mysensors in Gebrauch, klappt auch alles soweit ganz gut wenn es um das Senden vom Sensor zu FHEM geht. Die andere Richtung klappt auch, wenn ich beim Versuchsaufbau die Verbindung vom Atmel zum Funkboard anfasse. Dann kommen Daten an und werden auch mit OK bestätigt.
Hier liegt irgendwie ein Hardwaretchnisches Problem vor, ich bin aber noch nicht dahinter gestiegen, welches. Diese Phänomen scheint bei allen drei Aufbauten (verschiedenste Aufbauten) zu bestehen.
Scheinbar bilden sich irgendwelche Kapazitäten mit den Fingern aus die dafür sorgen das es klappt.
Ganz eigenwürdige Geschichte...hat dies Phänomen irgendjemand bei sich beobachtet?
Konfiguration ist übrigens der "grosse" Transmitter mit Antenne am Bananapi (SerialGateway) und die normalen Sensoren / Funkmodule als Nodes.
Die Programmierung ist richtig soweit, es funzt ja mit ein wenig Hilfe...

Irgendwelche Ideen?

Grüße

Marie
Banana Pi & FHEM2FHEM Raspberry,RS485 Modbus Stromzähler UMG96, diverse Schaltsteckdosen 433 MHz, 868 MHz, MYSENSORS Temperatursensoren , Smartvisu, Homekit & Siri, Geofency, Zwave Rauchmelder & Steckdosen & Garagensteuerung, TabletUi mit BananaPi M2Ultra im Wohnmobil, Homebridge usw.usw.

fh168

Hue, Lacrosse, PCA301, MySensors, V 1.67 CUL 868 V3.4, Lacrosse-WLAN-Gateway, Tasmota RF-

hexenmeister

Maintainer: MQTT_GENERIC_BRIDGE, SYSMON, SMARTMON, systemd_watchdog, MQTT, MQTT_DEVICE, MQTT_BRIDGE
Contrib: dev_proxy

Kuzl

Ich hab das mal selbst versucht auf dem ESP zum laufen zu bekommen, bin gespannt was dort anders gemacht wurde :)

hexenmeister

#380
Zitat von: fh168 am 06 September 2015, 18:36:40
hat jemand schon das ESP8266 Gateway für MySensors nachgebaut?

http://forum.mysensors.org/topic/1870/esp8266-wifi-gateway-port-for-mysensors

scheint zu funktionieren ;)
muss noch etwas länger testen.

(http://forum.fhem.de/index.php?action=dlattach;topic=26807.0;attach=36993;image)
(http://forum.fhem.de/index.php?action=dlattach;topic=26807.0;attach=36991;image)

Edit: Die LEDs habe ich erstmal hingemalt, wird aber so nur gehen, wenn man alle seriellen Ausgaben lahmlegt. Die GPIOs hier sind leider knapp :( Evtl. lassen sich noch GPIO0 und GPIO2 verwenden.
Maintainer: MQTT_GENERIC_BRIDGE, SYSMON, SMARTMON, systemd_watchdog, MQTT, MQTT_DEVICE, MQTT_BRIDGE
Contrib: dev_proxy

Hauswart

Ich habe mit ntruchsess Kontakt aufgenommen und mit seiner Zustimmung angefangen, dass Modul auf MySensor v 1.5 upzudaten:
https://github.com/Kolbi/fhem-mirror/blob/patch-1/fhem/FHEM/10_MYSENSORS_DEVICE.pm

Leider derzeit noch ungetestet! Feedback wäre, super.
1. Installation:
KNX, Tasmota (KNX), Sonos, Unifi

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

Achim

Hallo,

nur mal ne Frage. Für was ein WLAN Gateway mit dem nRF24L01?
Beide Senden auf 2,4GHz. Je nach Ausführung der Module bekomme ich eine ähnliche Reichweite. Warum dann kein LAN Gateway direkt an den Router? Das Gateway benötigt eine Stromversorgung, Batterie wird da wohl nicht lange reichen. Und wenn die Reichweite des nRF24L01 nicht reicht, kann ich doch anstelle des Gateways ein Mysensor Repeater hinstellen.

Das soll jetzt keine Kritik an der Entwicklung sein. Das sich Leute solche Projekte ausdenken, zusammenbauen und zur Funktion und dann Veröffentlichen finde ich super. Da habe ich vollen Respekt. Ich überlege mir bei neuen Vorstellungen von Projekten immer, ob ich das auch verwenden könnte. Und hier finde ich eben keinen Einsatzzweck. Daher die Frage. Den ich glaube kaum, das es viele Nachbauten gibt, um einen LAN-Port am Router zu sparen. Mit dem RFM69 würde das dann schon anders aussehen.

Viele Grüße
Achim
1x RPi V1, COC, 6x FHT, 1x S300TH, 2x DS18B20, 1x KS300
1x Arduino Nano mit Firmata, 2x DS2423old, 4x DS18B20, HIH5030, verschiedene Ein/Ausgangsschaltungen am Arduino
Mysensors-Seriell Gateway, Si7021, BH1750, Relais

hexenmeister

Naja, WLAN Gateway hat schon Vorteile.
Ich verwende derzeit notgedrungen zwei Transmitter: einen mit USB und einen LAN. Würde eigentlich eins auch reichen, der muss dann aber in die Mitte zw. den am weitesten entfernten Sensoren. Da habe ich aber kein Ethernet. Klar, geht auch mit einem Repeater, aber wenn ich mit nur einem WLAN Gateway auskommen kann... und Strom brauchen sie beide ;)

Ein weiterer Pluspunkt ist die Tatsache, dass WLAN Gateway bis zu 5 Verbindungen gleichzeitig zulässt. Damit kann ich parallel (mit MYSController) von meinem Laptop aus den Verkehr monitoren (mit einem speziellen Bootloader soll sich auch Firmware flashen). LAN-Gateway unterstützt max. eine Verbindung.

Interessanterweise ist WLAN Gateway sogar etwas billiger (ESP8266 + nRF24L01+ => ca. 3,5 Euro) als ein LAN Gateway (Arduino + nRF24L01+ + LAN-Chip => 5-6 Euro). ;)
Maintainer: MQTT_GENERIC_BRIDGE, SYSMON, SMARTMON, systemd_watchdog, MQTT, MQTT_DEVICE, MQTT_BRIDGE
Contrib: dev_proxy

Achim

Hallo Alexander,

vielen Dank für die Antwort. Der Punkt mit dem parallel monitoren klingt interessant. Schreibe ich mir mal auf meine lange "könnte ich auch noch machen" Liste.

Viele Grüße
Achim
1x RPi V1, COC, 6x FHT, 1x S300TH, 2x DS18B20, 1x KS300
1x Arduino Nano mit Firmata, 2x DS2423old, 4x DS18B20, HIH5030, verschiedene Ein/Ausgangsschaltungen am Arduino
Mysensors-Seriell Gateway, Si7021, BH1750, Relais

fh168

Hallo Hexenmeister,

wie immer vorbildliche Arbeit, das werde ich am Wochenende mal nachbauen. Vielen Dank.

Eine technische Frage habe ich noch:
Meine Kollege und ich aus dem Forum hier fragen sich, wie es sichergestellt ist, das die Daten vom WLAN in Fhem richtig auflaufen? Da müsste ja eine ständiger Datentransfer sein? Was passiert, wenn der Datenstrom abbricht? Wird das Paket dann nochmal gestartet?

LG
/robin
Hue, Lacrosse, PCA301, MySensors, V 1.67 CUL 868 V3.4, Lacrosse-WLAN-Gateway, Tasmota RF-

hexenmeister

Hi Robin,

ich habe mich mit dem Sketch noch nicht wirklich beschäftigt, daher, was ich jetzt schreibe ist 'glauben' und nicht 'wissen', ich bin mir aber recht sicher, dass da keine Vorkehrungen gegen Datenverlust vorhanden sind.
Ständiger Datentransfer ist dennoch relativ. Eine Verbindung muss stehen, die Daten fließen jedoch nur, wenn es was zu melden gibt. Die Übertragung ist natürlich gesichert (TCP) daher werden fehlerhafte Pakete erneut gesendet. Wenn die Verbindung jedoch ganz abbricht, dann kommt nichts mehr.
Das ist bei einem LAN-Gateway aber auch nicht anders. Da ich dort auch mit Abbrüchen zu kämpfen habe, habe ich in FHEM einen ständigen reconnect eingebaut (mit AT, jede Minute). Nicht schön, tut aber.

Ich würde gerne das auf MQTT umbauen, das dürfte deutlich sicherer sein. Mir fehlt aber, wie immer, an Zeit :(
Maintainer: MQTT_GENERIC_BRIDGE, SYSMON, SMARTMON, systemd_watchdog, MQTT, MQTT_DEVICE, MQTT_BRIDGE
Contrib: dev_proxy

gloob

Zitat von: Hauswart am 09 September 2015, 11:11:40
Ich habe mit ntruchsess Kontakt aufgenommen und mit seiner Zustimmung angefangen, dass Modul auf MySensor v 1.5 upzudaten:
https://github.com/Kolbi/fhem-mirror/blob/patch-1/fhem/FHEM/10_MYSENSORS_DEVICE.pm

Leider derzeit noch ungetestet! Feedback wäre, super.


Hallo Hauswart,

Ich habe heute versucht deine Änderungen bei mir einzufügen, jedoch bekomme ich viele Fehler beim Start von FHEM.
Hast du eine Idee woran das liegen könnte?


2015.09.11 08:46:30 1: starting in console mode
2015.09.11 08:46:30 1: Including fhem.cfg
2015.09.11 08:46:30 3: telnetPort: port 7072 opened
2015.09.11 08:46:32 3: WEB: port 8083 opened
2015.09.11 08:46:32 3: WEBphone: port 8084 opened
2015.09.11 08:46:32 3: WEBtablet: port 8085 opened
2015.09.11 08:46:32 2: eventTypes: loaded 0 events from ./log/eventTypes.txt
2015.09.11 08:46:32 1: reload: Error:Modul 10_MYSENSORS_DEVICE deactivated:
Bareword "V_AMRED" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_AMRED" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_AMRED" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_STATUS" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_STATUS" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_STATUS" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_STATUS" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_STATUS" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_STATUS" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_PERCENTAGE" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_PERCENTAGE" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_ID" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_HVAC_SETPOINT_HEAT" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_HVAC_FLOW_STATE" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_UNIT_PREFIX" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_LEVEL" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_LEVEL" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_UNIT_PREFIX" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_LEVEL" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_UNIT_PREFIX" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_RGB" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_RGB" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_RGBW" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_RGBW" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_RGB" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_RGB" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_HVAC_SETPOINT_HEAT" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_HVAC_SETPOINT_COLD" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_HVAC_FLOW_STATE" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_HVAC_FLOW_MODE" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_HVAC_SPEED" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_STATUS" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_LEVEL" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_LEVEL" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_LEVEL" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.

2015.09.11 08:46:32 0: Bareword "V_AMRED" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_AMRED" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_AMRED" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_STATUS" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_STATUS" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_STATUS" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_STATUS" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_STATUS" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_STATUS" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_PERCENTAGE" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_PERCENTAGE" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_ID" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_HVAC_SETPOINT_HEAT" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_HVAC_FLOW_STATE" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_UNIT_PREFIX" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_LEVEL" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_LEVEL" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_UNIT_PREFIX" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_LEVEL" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_UNIT_PREFIX" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_RGB" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_RGB" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_RGBW" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_RGBW" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_RGB" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_RGB" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_HVAC_SETPOINT_HEAT" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_HVAC_SETPOINT_COLD" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_HVAC_FLOW_STATE" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_HVAC_FLOW_MODE" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_HVAC_SPEED" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_STATUS" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_LEVEL" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_LEVEL" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.
Bareword "V_LEVEL" not allowed while "strict subs" in use at ./FHEM/10_MYSENSORS_DEVICE.pm line 85, <$fh> line 38.

2015.09.11 08:46:32 1: Including ./log/fhem.save
2015.09.11 08:46:32 1: configfile: Cannot load module MYSENSORS_DEVICE
2015.09.11 08:46:32 3: initialUsbCheck return value: This command is not yet supported on windows
2015.09.11 08:46:32 2: Error messages while initializing FHEM: configfile: Cannot load module MYSENSORS_DEVICE
2015.09.11 08:46:32 0: Featurelevel: 5.6
2015.09.11 08:46:32 0: Server started with 9 defined entities (version $Id: fhem.pl 9163 2015-08-30 07:57:51Z rudolfkoenig $, os MSWin32, user PCE Pilot, pid 3620)
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

#388
Habe den Fehler hoffentlich korrigiert :) Bitte nochmal neu herunterladen und testen.

PS: https://raw.githubusercontent.com/Kolbi/fhem-mirror/patch-1/fhem/FHEM/10_MYSENSORS_DEVICE.pm
1. Installation:
KNX, Tasmota (KNX), Sonos, Unifi

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

gloob

Hast du etwas verändert? Weil ich bekomme noch den gleichen Fehler. An was kann der Fehler liegen?
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