Skip to content

adding the triggeringValue() function for using in scenario#1944

Closed
pmj4 wants to merge 1 commit intojeedom:alphafrom
pmj4:alpha
Closed

adding the triggeringValue() function for using in scenario#1944
pmj4 wants to merge 1 commit intojeedom:alphafrom
pmj4:alpha

Conversation

@pmj4
Copy link

@pmj4 pmj4 commented Jan 25, 2022

this function returns the triggering value of a scenario
(the existing triggerValue() function returns the current value of the trigger of a scenario)

see https://community.jeedom.com/t/bloc-code-recuperation-de-la-valeur-de-la-commande-qui-a-declenche-le-scenario/75018/16

…ction returns the triggering value of a scenario

(the existing triggerValue() function returns the current value of the trigger of a scenario)
@KiboOst
Copy link
Collaborator

KiboOst commented Feb 28, 2022

What's the point ? Do you have usecase / testcase ?
Such implementation would break some stuff.
If you need the value at triggering time, set a tag with triggerValue() as first scenario action and use it later, even if the value change while scenario execution.

@pmj4
Copy link
Author

pmj4 commented Feb 28, 2022

Hello,
did you read this post ? the test case is inside
see https://community.jeedom.com/t/bloc-code-recuperation-de-la-valeur-de-la-commande-qui-a-declenche-le-scenario/75018/16

the solution you propose is not acceptable, as I am not sure to get the right value.

what this implementation will break ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants