Code Monkey home page Code Monkey logo

Comments (8)

elektron-bbs avatar elektron-bbs commented on June 17, 2024

Can we communicate in German?

from rffhem.

elektron-bbs avatar elektron-bbs commented on June 17, 2024

Ich habe mir das Modul jetzt nochmal angesehen. Die Umsetzung deines Wunsches ist kein Problem.
Allerdings verstehe ich den Sinn nicht ganz. Beim Senden aus FHEM wird ja trotzdem der Tastencode für all-on/off gesendet, so das alle Steckdosen darauf reagieren.

from rffhem.

mithkr avatar mithkr commented on June 17, 2024

Ich will nur die Fernbedienung nutzen und gar nicht die dazu gehörigen Steckdosen (sind teilweise eh schon defekt und nicht in Betrieb). Da das SD_GT Module die Tastendrücke der Fernbedinung erfasst und entsprechend Events auslöst, will ich diese Event nutzen um über ein notify Device andere FHEM Devices zu steuern (z.B. meine Shellies "defmod notify_SD_GT_D043C_D notify SD_GT_D043C_D set shelly_plug_s_b8640d $EVENT)".
Aber aktuell erzeugt der Empfang der 'all' Taste nicht nur einen State Change für das 'all' device aus sondern ändert auch den State der 4 anderen Devices [ABCD], welche wiederum dann die zugeordneten notify Devices triggert. Ich würde aber gern den 'all' Button als unabhängigen 5 Button verwenden.
Es geht um folgende Loop ab Zeile 367 von https://github.com/RFD-FHEM/RFFHEM/blob/master/FHEM/10_SD_GT.pm. Dort sollte per attr setting die loop deaktivierbar sein.

if (defined $level && $level eq 'all') { # received button all
		foreach my $d (keys %defs) { # sucht angelegte SD_GT mit gleichem Sytemcode 
			if(defined($defs{$d}) && $defs{$d}{TYPE} eq 'SD_GT' && $defs{$d}{DEF} =~ /$systemCode/xms && $defs{$d}{DEF} =~ /[ABCD]$/xms && ReadingsVal($d, 'state', $EMPTY) ne $state) {
				readingsSingleUpdate($defs{$d}, 'state' , $state , 1);
				DoTrigger($d, undef, 0);
				Log3 $name, 4, "$ioname: SD_GT_Parse received button $level, set $d $state";
			}
		}
	}

from rffhem.

elektron-bbs avatar elektron-bbs commented on June 17, 2024

Ich habe mir schon so etwas in der Art gedacht.
Ich werde ein Attribut "disableSetAllFunction" einbauen, das sowohl beim set als auch beim Empfang wirksam ist.

from rffhem.

mithkr avatar mithkr commented on June 17, 2024

Danke

from rffhem.

elektron-bbs avatar elektron-bbs commented on June 17, 2024

Ich habe das Attribut jetzt vorerst in einem neuen Branch eingebaut. Installieren kannst du das Update mit folgendem Befehl:

update all https://raw.githubusercontent.com/RFD-FHEM/RFFHEM/master_SD_GT_feature/controls_signalduino.txt

Bitte mal testen und berichten.

from rffhem.

mithkr avatar mithkr commented on June 17, 2024

Danke, hab es gerade ausprobiert. Funktioniert wie gewünscht.

from rffhem.

elektron-bbs avatar elektron-bbs commented on June 17, 2024

Die Änderung ist jetzt im Master-Branch. Ich schließe dieses Issue.

from rffhem.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.