Hauptmenü

Gelöst: Aeotec RGB Bulb

Begonnen von Jack_n, 01 Oktober 2016, 16:01:02

Vorheriges Thema - Nächstes Thema

Jack_n

nun ja.... typischer Anfängerfehler... der Aufruf in der Kommandozeile mit {Lcbulb(rgb 0 0 255)} lief sofort auf Fehler, der Aufruf {Lcbulb("rgb 0 0 255")} hat geklappt...  :P :o :P

Erledigt !


Hallo,

ich habe eine Aeotec RGB Z-Wave Bulb.

Diese bekommt im state bei Farbänderung mit dem Picker zb. einen Eintrag   rgb 0 255 0

Ich möchte gerne die zuletzt gesetzte Farbe im Hex-Format in einen Dummy schreiben um später diese Farbe wieder herstellen zu können.
Die Lampe erwartet bei set <device> rgb komischerweise einen HEX Wert und keinen RGB Wert.

Als blutiger Laie habe ich mich an eine SUB gewagt mit der ich den state rgb 0 255 0 in einen Hex-Wert umformatieren wollte.

Leider klappt nicht mal das splitten und läuft auf Fehler.

Ich hab schon 1 Std. rumprobiert aber ich komme auf keinen grünen Zweig.

Bitte gebt mir einen Tip was ich da falsch mache.

Vielen Dank

LG
Joachim

sub

Lcbulb ($)

{
    my ($Ereignis) = @_;
    my @Ereignisarray = split(/ /,$Ereignis);
    my $r= $Ereignisarray[1];
    my $g= $Ereignisarray[2];
    my $b= $Ereignisarray[3];
   
    my $return = sprintf( "%2.2X%2.2X%2.2X", $r, $g, $b );

    return uc($return)
}

vamsi

Hi,

Please let me know connectivity to Hank RGB Bulb

1. Hank RGB Bulb
2. Sigma Designs UZB Z-Wave USB Stick (ZMEEUZB1)

I am able to connect Z-Wave USB Stick to FHEM Software this stick is blinking also.

But please let me know how to connect FHEM Software to Hank RGB Bulb

Its very urgent please help me.


Cheers,
Vamsi krishna

krikan

Zitat von: vamsi am 17 Mai 2019, 15:44:50
Hi,

Please let me know connectivity to Hank RGB Bulb

1. Hank RGB Bulb
2. Sigma Designs UZB Z-Wave USB Stick (ZMEEUZB1)

I am able to connect Z-Wave USB Stick to FHEM Software this stick is blinking also.

But please let me know how to connect FHEM Software to Hank RGB Bulb

Its very urgent please help me.


Cheers,
Vamsi krishna

please check https://forum.fhem.de/index.php/topic,85403.0.html

vamsi

Hallo  krikan,

1.) Can you please give me Define command for FHEM software to Hank RGB Bulb

2.) is there any xml to upload for connecting Z-WAVE USB Stick to Hank RGB Bulb

Cheers,
Vamsi krishna

krikan

Zitat von: vamsi am 20 Mai 2019, 09:10:52
1.) Can you please give me Define command for FHEM software to Hank RGB Bulb
I'm afraid I can't do that.

The device is automatically created by FHEM (-> autocreate) during inclusion.

If the device is already included in the stick, you have to use the command createNode. You get the NodeId with the command
get <ZWDongle> nodeList

Zitat2.) is there any xml to upload for connecting Z-WAVE USB Stick to Hank RGB Bulb
This is not necessary.
But: Please make sure that FHEM is up to date (-> update)