Noob workflow question

Hi

I’m trying my skills at workflows and I began by unashamedly copying the motion controlled light from examples post - and even then I failed :cry:

Nothing happens - no history, nothing I can see in the log file. I clearly have no clue what I am doing :slight_smile:

What ultra-basic step have I missed?

[quote=“litby, post:1, topic:197266”]Hi

I’m trying my skills at workflows and I began by unashamedly copying the motion controlled light from examples post - and even then I failed :cry:

Nothing happens - no history, nothing I can see in the log file. I clearly have no clue what I am doing :slight_smile:

What ultra-basic step have I missed?[/quote]

Is workflow enabled (altui device variable)?
Did you reload luup after creating the workflow ?
How did you create the workflow ?

[quote=“amg0, post:2, topic:197266”][quote=“litby, post:1, topic:197266”]Hi

I’m trying my skills at workflows and I began by unashamedly copying the motion controlled light from examples post - and even then I failed :cry:

Nothing happens - no history, nothing I can see in the log file. I clearly have no clue what I am doing :slight_smile:

What ultra-basic step have I missed?[/quote]

Is workflow enabled (altui device variable)?
Did you reload luup after creating the workflow ?
How did you create the workflow ?[/quote]

Yes
Yes
More > Workflow Pages > Create

The variable watch doesn’t seem to be working. If I understand correctly the transition

[code]
‘Lamp is off’ - 8e703271-3e2b-4f91-90a8-0e3d01837124

        When
            device:'K?k b?nk' (0-20082) when urn:upnp-org:serviceId:SwitchPower1-Status
            (new == '0')
        Moves To
            State: Lamp off[/code]

should start the workflow, but it doesn’t, despite the log confirming the variable state change:

09/25/17 21:22:41.420	Device_Variable::m_szValue_set device: 20082 service: urn:upnp-org:serviceId:SwitchPower1 variable: e[35;1mStatuse[0m was: 1 now: 0 #hooks: 1 

[quote=“litby, post:3, topic:197266”][quote=“amg0, post:2, topic:197266”][quote=“litby, post:1, topic:197266”]Hi

I’m trying my skills at workflows and I began by unashamedly copying the motion controlled light from examples post - and even then I failed :cry:

Nothing happens - no history, nothing I can see in the log file. I clearly have no clue what I am doing :slight_smile:

What ultra-basic step have I missed?[/quote]

Is workflow enabled (altui device variable)?
Did you reload luup after creating the workflow ?
How did you create the workflow ?[/quote]

Yes
Yes
More > Workflow Pages > Create

The variable watch doesn’t seem to be working. If I understand correctly the transition

[code]
‘Lamp is off’ - 8e703271-3e2b-4f91-90a8-0e3d01837124

        When
            device:'K?k b?nk' (0-20082) when urn:upnp-org:serviceId:SwitchPower1-Status
            (new == '0')
        Moves To
            State: Lamp off[/code]

should start the workflow, but it doesn’t, despite the log confirming the variable state change:

09/25/17 21:22:41.420	Device_Variable::m_szValue_set device: 20082 service: urn:upnp-org:serviceId:SwitchPower1 variable: e[35;1mStatuse[0m was: 1 now: 0 #hooks: 1 

can you share a full workflow report ?

[quote=“amg0, post:4, topic:197266”][quote=“litby, post:3, topic:197266”][quote=“amg0, post:2, topic:197266”][quote=“litby, post:1, topic:197266”]Hi

I’m trying my skills at workflows and I began by unashamedly copying the motion controlled light from examples post - and even then I failed :cry:

Nothing happens - no history, nothing I can see in the log file. I clearly have no clue what I am doing :slight_smile:

What ultra-basic step have I missed?[/quote]

Is workflow enabled (altui device variable)?
Did you reload luup after creating the workflow ?
How did you create the workflow ?[/quote]

Yes
Yes
More > Workflow Pages > Create

The variable watch doesn’t seem to be working. If I understand correctly the transition

[code]
‘Lamp is off’ - 8e703271-3e2b-4f91-90a8-0e3d01837124

        When
            device:'K?k b?nk' (0-20082) when urn:upnp-org:serviceId:SwitchPower1-Status
            (new == '0')
        Moves To
            State: Lamp off[/code]

should start the workflow, but it doesn’t, despite the log confirming the variable state change:

09/25/17 21:22:41.420	Device_Variable::m_szValue_set device: 20082 service: urn:upnp-org:serviceId:SwitchPower1 variable: e[35;1mStatuse[0m was: 1 now: 0 #hooks: 1 

can you share a full workflow report ?[/quote]

Attached to the first post :slight_smile:

ok, I do not see the problem. can you put ALTUI in DEBUG mode then restart luup then share the log

Attached.

I had been using non-ASCII characters in room and device names and just to rule out those as the cause I have renamed everything into English :slight_smile:

I created a really simple one just for testing - switch on a light on a timer:

[code]Workflow Report
Workflow 0-2 - (0-2)

2 States: Start, S1
1 Transitions: test

Details

Start - 2cd2db51-9f5c-433a-a05c-805d20a8d0ad
    Transitions
        'test' - f9892c66-bf32-450a-b070-73586988d056

                When
                    Timer: 'test' expiration 30s
                Moves To
                    State: S1

S1 - 1374218c-9087-4320-b014-34b06571ef23
    OnEnter
        on OfficeClng2 (0-20156) urn:upnp-org:serviceId:SwitchPower1-SetTarget [{"name":"newTargetValue","value":"1"}]

[/code]

It doesn’t start either, so it looks like it is a problem independent of the actual workflow.

[quote=“litby, post:7, topic:197266”]Attached.

I had been using non-ASCII characters in room and device names and just to rule out those as the cause I have renamed everything into English :)[/quote]

you log file luaupnp.zip does not contain the information I need to undersatnd what happens.
you need to

  1. set DEBUG mode on ALTUI device
  2. reload luup
  3. capture the whole log during the process and send it to me

Also could you go to misc/debug and get the variables of the ALTUI devices and share the result

[quote=“amg0, post:9, topic:197266”][quote=“litby, post:7, topic:197266”]Attached.

I had been using non-ASCII characters in room and device names and just to rule out those as the cause I have renamed everything into English :)[/quote]

you log file luaupnp.zip does not contain the information I need to undersatnd what happens.
you need to

  1. set DEBUG mode on ALTUI device
  2. reload luup
  3. capture the whole log during the process and send it to me

Also could you go to misc/debug and get the variables of the ALTUI devices and share the result[/quote]

Okay. But unfortunately my workflow page has come up empty. Everything completely gone. And yes, I had saved and reloaded many times without problems but now suddenly it’s blank.

Could it be that I’m running the beta? Should I roll back? How?

[quote=“litby, post:10, topic:197266”][quote=“amg0, post:9, topic:197266”][quote=“litby, post:7, topic:197266”]Attached.

I had been using non-ASCII characters in room and device names and just to rule out those as the cause I have renamed everything into English :)[/quote]

you log file luaupnp.zip does not contain the information I need to undersatnd what happens.
you need to

  1. set DEBUG mode on ALTUI device
  2. reload luup
  3. capture the whole log during the process and send it to me

Also could you go to misc/debug and get the variables of the ALTUI devices and share the result[/quote]

Okay. But unfortunately my workflow page has come up empty. Everything completely gone. And yes, I had saved and reloaded many times without problems but now suddenly it’s blank.

Could it be that I’m running the beta? Should I roll back? How?[/quote]
Nothing to d9 with beta which is purely UI change.
I suspect your openluup setup is not correct

Well what do you know. Updating OpenLuup fixed it. I probably had a VERY old version…