NEWS
Ergebnis von Level keine Ganzzahl
-
Hallo,
ich möchte die Eingänge an meinen Fernseher über Broadlink steuern.
Dazu gibt es auf meiner Fernbedieung einen button.
Ich habe folgende Eingänge, die ich über mehrfaches drücken des buttons anwählen kann.
Nun möchte ich zum Beispiel bei Alexa sagen: Alexa, wähle Eingang 3
Dann soll per Skript der button dreimal gedrückt werden.
Ich habe in meiner Broadlinkinstanz einen State angelegt mit role "level" und .
{ "common": { "name": "Eingang", "role": "level", "type": "mixed", "desc": "Manuell erzeugt", "state": "state", "states": "0: TV;1: Chrome;2: Fire;3: Raspi;4: Pione", "min": 0, "max": 4, "read": true, "write": true, "def": false, "smartName": { "de": "Eingang" } }, "native": { "state": { "id": "States.Eingang", "name": "Eingang", "on": [ "0: TV", "1: Chrome", "2: Fire", "3: Raspi", "4: Pione" ], "off": null, "mult": false } }, "acl": { "object": 1638, "owner": "system.user.admin", "ownerGroup": "system.group.administrator", "state": 1638 }, "_id": "broadlink2.0.States.Eingang", "type": "state" }Wenn ich sage, Alexa, setze Eingang auf 0, dann erscheint im Ergebnis TV(0).
Bei 1 erscheint allerdings das Ergebnis 0.04
Bei 2 erscheint 0.08
bei 3 erscheint 0.12
bei 4 erscheint 0.16
Wieso ist das so, und wie bekomme ich die korrekten Erbegnisse Chrom(1), Fire(2), Raspi(3), Pione(4) ?
LG von Volker
-
Wenn ich mich nicht täusche, kann Alexa auch nur Prozent-Werte setzen, keine ganzen Zahlen. Und ich meine, da gehen auch nur 5%-Schritte.
Hast du mal mit Routinen (in der Alexa-App) gespielt? Da könntest du dir 5 States anlegen (1 pro Eingang) und dann z.B. mit "Alexa, wähle TV-Eingang" o.ä. den jeweiligen auswählen.
-
Meine Lösung ist jetzt hier.
http://www.forum.iobroker.org/forum/vie … eb48f4566a
Allerdings gibt es noch ein kleines Begrenzungsproblem.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login