# HTTP request is not executed when the activity changes

**URL:** <https://unfolded.community/t/http-request-is-not-executed-when-the-activity-changes/6312>\
**Category:** General\
**Created:** [September 16, 2026, 10:09am UTC](https://unfolded.community/t/http-request-is-not-executed-when-the-activity-changes/6312 "2026-09-16T10:09:37Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheWolf](https://unfolded.community/user_avatar/unfolded.community/thewolf/32/1638_2.png) [@TheWolf](https://unfolded.community/u/TheWolf)\
**Post date:** [September 16, 2026, 10:09am UTC](https://unfolded.community/t/http-request-is-not-executed-when-the-activity-changes/6312/1 "2026-09-16T10:09:37Z")

</div>

I use HTTP-Get to switch on/off my subwoofer via the LightManager.

If i switch from an activity with Subwoofer (e.g. listen radio) to an activity without subwoofer (e.g. watch tv) the http-command to switch off the subwoofer isn’t sent (subwoofer stays on).

More details (inkl. log-file) can be found on github:

> <https://github.com/unfoldedcircle/feature-and-bug-tracker/issues/825>
>
> \### Is there an existing issue for this?
> 
> \- \[x\] I have searched the existing iss…ues
> 
> \### Description
> 
> I use HTTP GET (HTTP requests, WoL & text via TCP) to turn my subwoofer on and off via the LightManager.
> 
> When I end the "Listen to Radio" activity, the HTTP command to turn off the subwoofer is sent.
> BUT: If I switch from an activity that uses the subwoofer ("Listen to Radio") to one that does not ("Watch TV"), the HTTP command to turn off the subwoofer is not sent.
> 
> \### How to Reproduce
> 
> Add an HTTP-Request into the Shutdown sequence and switch from that activity to another activity without such an HTTP-Request.
> HTTP-Request is not executed.
> 
> \### Expected behavior
> 
> Changing activities should execute the HTTP command too.
> 
> \### System version
> 
> 2.11.0
> 
> \### What part of the system affected by the problem?
> 
> Overall system
> 
> \### Additional context
> 
> LOG:
> https://www.dropbox.com/scl/fi/bsnflrrgl43suwkhsih4t/UCR3\_logs\_2026-09-16.txt?rlkey=z9k50qsqhlxe91hf7b5mgmrfw&st=hghy3f0x&dl=0
> 
> \<img width="1871" height="434" alt="Image" src="https://github.com/user-attachments/assets/6d8f5596-fe36-4374-bef2-985373748d42" /\>
> 
> \<img width="1806" height="565" alt="Image" src="https://github.com/user-attachments/assets/3f344a8a-d2b7-4be5-aa74-7a6e74a49da8" /\>

---

<div class="post-metadata">

**Author:** ![HarmonyFan](https://unfolded.community/user_avatar/unfolded.community/harmonyfan/32/1663_2.png) [@HarmonyFan](https://unfolded.community/u/HarmonyFan)\
**Post date:** [September 16, 2026, 12:41pm UTC](https://unfolded.community/t/http-request-is-not-executed-when-the-activity-changes/6312/2 "2026-09-16T12:41:49Z")

</div>

In the activity group configure use modified end sequence.

Ralf

---

<div class="post-metadata">

**Author:** ![kennymc.c](https://unfolded.community/letter_avatar_proxy/v4/letter/k/eb9ed0/32.png) [@kennymc.c](https://unfolded.community/u/kennymc.c)\
**Post date:** [September 16, 2026, 1:18pm UTC](https://unfolded.community/t/http-request-is-not-executed-when-the-activity-changes/6312/3 "2026-09-16T13:18:47Z")

</div>

As already mentioned in the ticket you should use custom entities

---

<div class="post-metadata">

**Author:** ![TheWolf](https://unfolded.community/user_avatar/unfolded.community/thewolf/32/1638_2.png) [@TheWolf](https://unfolded.community/u/TheWolf)\
**Post date:** [September 16, 2026, 2:04pm UTC](https://unfolded.community/t/http-request-is-not-executed-when-the-activity-changes/6312/4 "2026-09-16T14:04:34Z")

</div>

Sorry, but what is

“… modified end sequence” and

“… custom entitie”?

To make it clear. My usage hasn’t to do with any power-state. Each HTTP-Request sends an command to the LightManger which then executes an RF-Plug. It works correct if an activity is ended but not if is switched to another activity.

The same problem exists with Android TV, which doesn’t switch off when the activities changes. Unfolded support has confirmed this as an bug.

---

<div class="post-metadata">

**Author:** ![HarmonyFan](https://unfolded.community/user_avatar/unfolded.community/harmonyfan/32/1663_2.png) [@HarmonyFan](https://unfolded.community/u/HarmonyFan)\
**Post date:** [September 16, 2026, 2:18pm UTC](https://unfolded.community/t/http-request-is-not-executed-when-the-activity-changes/6312/5 "2026-09-16T14:18:41Z")

</div>

Modified end sequence in activity group means that all commands in end sequence are executed with the exception of power off for entities that are used in the new activity.

It is a setting in activity group

 ![Screenshot_20260916_161343_Chrome](https://unfolded.community/uploads/default/original/2X/2/23df70f22c70883bef2a96c788fa0a1d6e4fb2ff.jpeg)

Because in your example it is really a switch on/off case. What happens if you switch from one activity with sub to another with sub? Here a custom entity with the request integration would be more save. You can create an entity with several http command which behaves like other entities with real switch on/off.

Ralf

---

<div class="post-metadata">

**Author:** ![TheWolf](https://unfolded.community/user_avatar/unfolded.community/thewolf/32/1638_2.png) [@TheWolf](https://unfolded.community/u/TheWolf)\
**Post date:** [September 16, 2026, 2:57pm UTC](https://unfolded.community/t/http-request-is-not-executed-when-the-activity-changes/6312/6 "2026-09-16T14:57:15Z")

</div>

> [@HarmonyFan](#):
>
> What happens if you switch from one activity with sub to another with sub?

The sub stays on because the HTTP-Request inside the shutdown sequence isn’t executet.

> [@HarmonyFan](#):
>
> Here a custom entity with the request integration would be more save.

Ok maybe you’re right but -sorry- i don’t know how to do that.

---

<div class="post-metadata">

**Author:** ![HarmonyFan](https://unfolded.community/user_avatar/unfolded.community/harmonyfan/32/1663_2.png) [@HarmonyFan](https://unfolded.community/u/HarmonyFan)\
**Post date:** [September 16, 2026, 3:15pm UTC](https://unfolded.community/t/http-request-is-not-executed-when-the-activity-changes/6312/7 "2026-09-16T15:15:15Z")

</div>

> [@TheWolf](#):
>
> The sub stays on because the HTTP-Request inside the shutdown sequence isn’t executet.

I meant if the http command would be executed. The sub would be powered off and then on again. Custom entity is the only way to make it consistent. It is easier than it sounds:

> **[GitHub - kennymc-c/ucr2-integration-requests: A network multi tool integration for Unfolded...](https://github.com/kennymc-c/ucr2-integration-requests#4---custom-entities-remote--select)**
>
> A network multi tool integration for Unfolded Circle remote devices

Example from my system Epson tw7300:

epson\_tw7300:

Features:

```
'Off':

  Type: tcp-text

  Parameter:

    address: 192.168.178.66:4352

    text: "%1POWR 0\\r"

'On':

  Type: tcp-text

  Parameter:

    address: 192.168.178.66:4352

    text: "%1POWR 1\\r"

```

Simple Commands:

```
HDMI1:

  Type: tcp-text

  Parameter:

    address: 192.168.178.66:4352

    text: "%1INPT 31\\r"

HDMI2:

  Type: tcp-text

  Parameter:

    address: 192.168.178.66:4352

    text: "%1INPT 32\\r"

```

The real interesting part is feature on/off.

Ralf

---

<div class="post-metadata">

**Author:** ![kennymc.c](https://unfolded.community/letter_avatar_proxy/v4/letter/k/eb9ed0/32.png) [@kennymc.c](https://unfolded.community/u/kennymc.c)\
**Post date:** [September 16, 2026, 8:42pm UTC](https://unfolded.community/t/http-request-is-not-executed-when-the-activity-changes/6312/8 "2026-09-16T20:42:24Z")

</div>

> [@TheWolf](#):
>
> Ok maybe you’re right but -sorry- i don’t know how to do that.

You can take the example configuration and modify it just a bit and adjust the url:

```auto
Subwoofer:
  Features:
    'Off':
      Type: get
      Parameter: https://192.168.178.34/control?cmd=xxx
    'On':
      Type: get
      Parameter: https://192.168.178.34/control?cmd=xxx

```

---

<div class="post-metadata">

**Author:** ![TheWolf](https://unfolded.community/user_avatar/unfolded.community/thewolf/32/1638_2.png) [@TheWolf](https://unfolded.community/u/TheWolf)\
**Post date:** [September 17, 2026, 8:28am UTC](https://unfolded.community/t/http-request-is-not-executed-when-the-activity-changes/6312/9 "2026-09-17T08:28:13Z")

</div>

> [@HarmonyFan](#):
>
> It is a setting in activity group

Hi.

I created a new entity and added it into the activity.

After adding the commands into the sequences everything runs as expected.

No need/possibility to add it into the activity group.

Thanks thousand times for your support.

---

<div class="post-metadata">

**Author:** ![HarmonyFan](https://unfolded.community/user_avatar/unfolded.community/harmonyfan/32/1663_2.png) [@HarmonyFan](https://unfolded.community/u/HarmonyFan)\
**Post date:** [September 17, 2026, 8:54am UTC](https://unfolded.community/t/http-request-is-not-executed-when-the-activity-changes/6312/10 "2026-09-17T08:54:17Z")

</div>

If you created a new Subwoofer entity with the request integration it is a normal entity which can be added like any other entity to an activity.

The setting I mentioned is valid for all activities in that group. In configuration of activity the group it belongs to can be configured.

Ralf

---

<div class="post-metadata">

**Author:** ![TheWolf](https://unfolded.community/user_avatar/unfolded.community/thewolf/32/1638_2.png) [@TheWolf](https://unfolded.community/u/TheWolf)\
**Post date:** [September 17, 2026, 9:20am UTC](https://unfolded.community/t/http-request-is-not-executed-when-the-activity-changes/6312/11 "2026-09-17T09:20:50Z")

</div>

Now there’s another “I don’t know why”:

I use two separate commands to switch on and off my TV’s backlight. (Handling like the subwoofer).

But … if i change the activity from one “with backlight” to another “without backlight”, backlight is switched off correctely.

Why? I thought backlight would work the same (wrong) way like subwoofer did before changing. Now i’m really confused.

 ![Fernsehen-Sequence](https://unfolded.community/uploads/default/original/2X/e/e97d39bd3dd9621713ad9f1dd46ec2523eb69a69.jpeg)

---

<div class="post-metadata">

**Author:** ![HarmonyFan](https://unfolded.community/user_avatar/unfolded.community/harmonyfan/32/1663_2.png) [@HarmonyFan](https://unfolded.community/u/HarmonyFan)\
**Post date:** [September 17, 2026, 9:24am UTC](https://unfolded.community/t/http-request-is-not-executed-when-the-activity-changes/6312/12 "2026-09-17T09:24:26Z")

</div>

Did you configure modified end sequence for the group?

Ralf

---

<div class="post-metadata">

**Author:** ![TheWolf](https://unfolded.community/user_avatar/unfolded.community/thewolf/32/1638_2.png) [@TheWolf](https://unfolded.community/u/TheWolf)\
**Post date:** [September 17, 2026, 9:30am UTC](https://unfolded.community/t/http-request-is-not-executed-when-the-activity-changes/6312/13 "2026-09-17T09:30:54Z")

</div>

Yes.

 ![Aktivitäten-Gruppe2](https://unfolded.community/uploads/default/original/2X/2/2b4de24917b4c70a848c9d22c1d7c435827e4305.jpeg)

---

<div class="post-metadata">

**Author:** ![HarmonyFan](https://unfolded.community/user_avatar/unfolded.community/harmonyfan/32/1663_2.png) [@HarmonyFan](https://unfolded.community/u/HarmonyFan)\
**Post date:** [September 17, 2026, 9:37am UTC](https://unfolded.community/t/http-request-is-not-executed-when-the-activity-changes/6312/14 "2026-09-17T09:37:05Z")

</div>

That is the answer. Now all commands in end sequence are executed with exception of power off of still needed devices.

But now you should have a little problem if you switch from activity with backlight to activity also with backlight.

Ralf

---

<div class="post-metadata">

**Author:** ![TheWolf](https://unfolded.community/user_avatar/unfolded.community/thewolf/32/1638_2.png) [@TheWolf](https://unfolded.community/u/TheWolf)\
**Post date:** [September 17, 2026, 9:40am UTC](https://unfolded.community/t/http-request-is-not-executed-when-the-activity-changes/6312/15 "2026-09-17T09:40:53Z")

</div>

> [@HarmonyFan](#):
>
> But now you should have a little problem if you switch from activity with backlight to activity also with backlight

Nope.

Everything works fine.

---

<div class="post-metadata">

**Author:** ![HarmonyFan](https://unfolded.community/user_avatar/unfolded.community/harmonyfan/32/1663_2.png) [@HarmonyFan](https://unfolded.community/u/HarmonyFan)\
**Post date:** [September 17, 2026, 10:07am UTC](https://unfolded.community/t/http-request-is-not-executed-when-the-activity-changes/6312/16 "2026-09-17T10:07:18Z")

</div>

Perhaps to fast to be noticed.

---

<div class="post-metadata">

**Author:** ![TheWolf](https://unfolded.community/user_avatar/unfolded.community/thewolf/32/1638_2.png) [@TheWolf](https://unfolded.community/u/TheWolf)\
**Post date:** [September 17, 2026, 10:18am UTC](https://unfolded.community/t/http-request-is-not-executed-when-the-activity-changes/6312/17 "2026-09-17T10:18:15Z")

</div>

Maybe.

I’ll try an own entry for backlight (like that for subwoofer).

---

<div class="post-metadata">

**Author:** ![TheWolf](https://unfolded.community/user_avatar/unfolded.community/thewolf/32/1638_2.png) [@TheWolf](https://unfolded.community/u/TheWolf)\
**Post date:** [September 17, 2026, 12:10pm UTC](https://unfolded.community/t/http-request-is-not-executed-when-the-activity-changes/6312/18 "2026-09-17T12:10:16Z")

</div>

Question:

What to do, if i use two devices? Im my case “Subwoffer” and “Backlight”.

Must i create two separate entities?

---

<div class="post-metadata">

**Author:** ![HarmonyFan](https://unfolded.community/user_avatar/unfolded.community/harmonyfan/32/1663_2.png) [@HarmonyFan](https://unfolded.community/u/HarmonyFan)\
**Post date:** [September 17, 2026, 12:10pm UTC](https://unfolded.community/t/http-request-is-not-executed-when-the-activity-changes/6312/19 "2026-09-17T12:10:36Z")

</div>

As we said it is the best option for on and off as this will be correctly handled by the R2/R3.

---

<div class="post-metadata">

**Author:** ![kennymc.c](https://unfolded.community/letter_avatar_proxy/v4/letter/k/eb9ed0/32.png) [@kennymc.c](https://unfolded.community/u/kennymc.c)\
**Post date:** [September 17, 2026, 2:47pm UTC](https://unfolded.community/t/http-request-is-not-executed-when-the-activity-changes/6312/20 "2026-09-17T14:47:36Z")

</div>

Just add the second entity to the configuration. This will result in an additional entity.

[Next page](https://unfolded.community/t/http-request-is-not-executed-when-the-activity-changes/6312.md?page=2)
