Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conditions #127

Open
pdmetze opened this issue Sep 28, 2021 · 4 comments
Open

Conditions #127

pdmetze opened this issue Sep 28, 2021 · 4 comments

Comments

@pdmetze
Copy link

pdmetze commented Sep 28, 2021

Is your feature request related to a problem? Please describe.
Ich kann Szenen nicht nutzen, wenn ich für einzelne States darin noch Bedingungen nutzen möchte. Beispielsweise möchte ich über Settings realisieren, dass der Rollladen im Gästezimmer NICHT automatisch fahren soll, alle anderen aber schon.

Describe the solution you'd like
Ich hätte gerne die Möglichkeit, für einzelne States in einer Szene noch zusätzlich Bedingungen anzugeben. Bspw. Soll er den Wert eines States auch nur dann setzen, wenn "0_userdata.0.settings.automationInclGuest" = true. Vielleicht kann man auch selbst if() statements schreiben.

Describe alternatives you've considered
Bisher ist mir dafür nur der Umweg über Skripte, bzw. mehrere Szenen eingefallen.

Falls ich die Möglichkeit dafür übersehen habe, tut mir das leid, gerne darauf hinweisen. Ich habs nicht gefunden...

@ammawel
Copy link

ammawel commented Dec 29, 2021

Hallo,
ich möchte die Idee von Bedingungen für einzelne Szenenzustände noch einmal aufgreifen, da ich sie für eine sehr sinnvolle Erweiterung halte.
MMn würde es vollkommen ausreichen, die schon vorhandene und per Schalter manuell einzustellende enabled-Eigenschaft eines Zustandes optional an einen bool-Datenpunkt zu binden. Der Wert des Datenpunktes könnte in der Praxis ein Sensor-Wert oder auch ein beliebig per Script zu erstellender Inhalt sein.

Vielen Dank und VG
Achim

@tetzlav
Copy link

tetzlav commented Apr 6, 2022

+1
if(getState('hue.0.Dimmable_plug_1.on').val) setState('hue.0.Dimmable_plug_1.level', 40);

@tetzlav
Copy link

tetzlav commented Apr 6, 2022

or another idea:
include a simple code block (for if conditions) in expert mode?

@stale
Copy link

stale bot commented May 9, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within the next 7 days. Please check if the issue is still relevant in the most current version of the adapter and tell us. Also check that all relevant details, logs and reproduction steps are included and update them if needed. Thank you for your contributions.
Dieses Problem wurde automatisch als veraltet markiert, da es in letzter Zeit keine Aktivitäten gab. Es wird geschlossen, wenn nicht innerhalb der nächsten 7 Tage weitere Aktivitäten stattfinden. Bitte überprüft, ob das Problem auch in der aktuellsten Version des Adapters noch relevant ist, und teilt uns dies mit. Überprüft auch, ob alle relevanten Details, Logs und Reproduktionsschritte enthalten sind bzw. aktualisiert diese. Vielen Dank für Eure Unterstützung.

@stale stale bot added the wontfix label May 9, 2023
@stale stale bot removed the wontfix label Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants