Since some days I ge the error: “All connection attempts failed”
What does this mean? - why does a connection to a script fail?
trace:
{
"trace": {
"last_step": "action/0/choose/0/sequence/1",
"run_id": "bdee4c07313c38dafd584811459fe8d3",
"state": "stopped",
"script_execution": "error",
"timestamp": {
"start": "2024-09-28T14:10:01.934494+00:00",
"finish": "2024-09-28T14:10:07.477250+00:00"
},
"domain": "automation",
"item_id": "1660253803041",
"error": "All connection attempts failed",
"trigger": "state of input_select.mediainput",
"trace": {
"trigger/0": [
{
"path": "trigger/0",
"timestamp": "2024-09-28T14:10:01.934816+00:00",
"changed_variables": {
"this": {
"entity_id": "automation.mediainput",
"state": "on",
"attributes": {
"id": "1660253803041",
"last_triggered": "2024-09-28T11:07:10.427023+00:00",
"mode": "restart",
"current": 0,
"friendly_name": "MediaInput-Wohnzimmer"
},
"last_changed": "2024-09-27T17:23:46.005959+00:00",
"last_reported": "2024-09-28T11:09:19.067561+00:00",
"last_updated": "2024-09-28T11:09:19.067561+00:00",
"context": {
"id": "01J8W547TVYWZH5QVGN8DJT46R",
"parent_id": null,
"user_id": null
}
},
"trigger": {
"id": "WZ-TV",
"idx": "0",
"alias": null,
"platform": "state",
"entity_id": "input_select.mediainput",
"from_state": {
"entity_id": "input_select.mediainput",
"state": "Wohnzimmer",
"attributes": {
"options": [
"TV",
"Bluetooth",
"PS4",
"Stereoanlage",
"Wohnzimmer"
],
"editable": true,
"icon": "mdi:form-dropdown",
"friendly_name": "MediaInput-Wohnzimmer"
},
"last_changed": "2024-09-28T11:08:40.363287+00:00",
"last_reported": "2024-09-28T11:08:40.363287+00:00",
"last_updated": "2024-09-28T11:08:40.363287+00:00",
"context": {
"id": "01J8W53219HDYRMHRBPE9QG6H5",
"parent_id": null,
"user_id": "30dc538c5d524de8b6d0e74a423a50b3"
}
},
"to_state": {
"entity_id": "input_select.mediainput",
"state": "TV",
"attributes": {
"options": [
"TV",
"Bluetooth",
"PS4",
"Stereoanlage",
"Wohnzimmer"
],
"editable": true,
"icon": "mdi:form-dropdown",
"friendly_name": "MediaInput-Wohnzimmer"
},
"last_changed": "2024-09-28T14:10:01.933526+00:00",
"last_reported": "2024-09-28T14:10:01.933526+00:00",
"last_updated": "2024-09-28T14:10:01.933526+00:00",
"context": {
"id": "01J8WFF4JCYHYRFTGZ36JKKHV6",
"parent_id": null,
"user_id": "30dc538c5d524de8b6d0e74a423a50b3"
}
},
"for": null,
"attribute": null,
"description": "state of input_select.mediainput"
}
}
}
],
"action/0": [
{
"path": "action/0",
"timestamp": "2024-09-28T14:10:01.935796+00:00",
"changed_variables": {
"context": {
"id": "01J8WFF4JE2TNJ1FDQS13RRYME",
"parent_id": "01J8WFF4JCYHYRFTGZ36JKKHV6",
"user_id": null
}
},
"error": "All connection attempts failed",
"result": {
"choice": 0
}
}
],
"action/0/choose/0": [
{
"path": "action/0/choose/0",
"timestamp": "2024-09-28T14:10:01.935979+00:00",
"result": {
"result": true
}
}
],
"action/0/choose/0/conditions/0": [
{
"path": "action/0/choose/0/conditions/0",
"timestamp": "2024-09-28T14:10:01.936053+00:00",
"result": {
"result": true
}
}
],
"action/0/choose/0/sequence/0": [
{
"path": "action/0/choose/0/sequence/0",
"timestamp": "2024-09-28T14:10:01.936444+00:00"
}
],
"action/0/choose/0/sequence/0/if": [
{
"path": "action/0/choose/0/sequence/0/if",
"timestamp": "2024-09-28T14:10:01.936571+00:00",
"result": {
"result": false
}
}
],
"action/0/choose/0/sequence/0/if/condition/0": [
{
"path": "action/0/choose/0/sequence/0/if/condition/0",
"timestamp": "2024-09-28T14:10:01.936631+00:00",
"result": {
"result": false
}
},
{
"path": "action/0/choose/0/sequence/0/if/condition/0",
"timestamp": "2024-09-28T14:10:01.936666+00:00",
"result": {
"result": false
}
}
],
"action/0/choose/0/sequence/0/if/condition/0/entity_id/0": [
{
"path": "action/0/choose/0/sequence/0/if/condition/0/entity_id/0",
"timestamp": "2024-09-28T14:10:01.936715+00:00",
"result": {
"result": false,
"state": "on",
"wanted_state": "off"
}
}
],
"action/0/choose/0/sequence/1": [
{
"path": "action/0/choose/0/sequence/1",
"timestamp": "2024-09-28T14:10:01.936933+00:00",
"child_id": {
"domain": "script",
"item_id": "fernsehen",
"run_id": "3c9537f059ae37e7d2dff6670eb95d76"
},
"error": "All connection attempts failed",
"result": {
"params": {
"domain": "script",
"service": "fernsehen",
"service_data": {},
"target": {}
},
"running_script": true
}
}
]
},
automation:
alias: MediaInput-Wohnzimmer
description: ""
trigger:
- platform: state
entity_id:
- input_select.mediainput
from: Wohnzimmer
to: TV
id: WZ-TV
- platform: state
entity_id:
- input_select.mediainput
from: Wohnzimmer
to: Bluetooth
id: WZ-BT
- platform: state
entity_id:
- input_select.mediainput
from: Wohnzimmer
to: Stereoanlage
id: WZ-ST
- platform: state
entity_id:
- input_select.mediainput
id: WZ-PS4
from: Wohnzimmer
to: PS4
- platform: state
entity_id:
- input_select.mediainput
from: TV
to: Bluetooth
id: TV-BT
- platform: state
entity_id:
- input_select.mediainput
from: TV
to: Stereoanlage
id: TV-ST
- platform: state
entity_id:
- input_select.mediainput
from: TV
to: PS4
id: TV-PS4
- platform: state
entity_id:
- input_select.mediainput
from: Bluetooth
to: TV
id: BT-TV
- platform: state
entity_id:
- input_select.mediainput
from: Bluetooth
to: Stereoanlage
id: BT-ST
- platform: state
entity_id:
- input_select.mediainput
from: Bluetooth
to: PS4
id: BT-PS4
- platform: state
entity_id:
- input_select.mediainput
from: Stereoanlage
to: TV
id: ST-TV
- platform: state
entity_id:
- input_select.mediainput
from: Stereoanlage
to: Bluetooth
id: ST-BT
- platform: state
entity_id:
- input_select.mediainput
from: Stereoanlage
to: PS4
id: ST-PS4
- platform: state
entity_id:
- input_select.mediainput
from: PS4
to: TV
id: PS4-TV
- platform: state
entity_id:
- input_select.mediainput
from: PS4
to: Bluetooth
id: PS4-BT
- platform: state
entity_id:
- input_select.mediainput
from: PS4
to: Stereoanlage
id: PS4-ST
condition: []
action:
- choose:
- conditions:
- condition: trigger
id: WZ-TV
sequence:
- if:
- condition: device
type: is_off
device_id: f78164215de1ab644eae29c6de83c29e
entity_id: switch.steckdose_03
domain: switch
then:
- type: turn_on
device_id: f78164215de1ab644eae29c6de83c29e
entity_id: switch.steckdose_03
domain: switch
- wait_for_trigger:
- platform: state
entity_id:
- remote.harmony_hub
from: unavailable
- delay:
hours: 0
minutes: 0
seconds: 4
milliseconds: 0
- data: {}
action: script.fernsehen
- data: {}
action: script.stehlampe_toggle_durch_mediainput_wohnzimmer
- wait_for_trigger:
- platform: state
entity_id:
- switch.tv_pini_screen_state
to: "on"
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 500
- data:
num_repeats: 1
delay_secs: 0.4
command:
- WatchTV
device: "74515405"
target:
entity_id: remote.harmony_hub
action: remote.send_command
- conditions:
- condition: trigger
id: WZ-BT
sequence:
- if:
- condition: device
type: is_off
device_id: f78164215de1ab644eae29c6de83c29e
entity_id: switch.steckdose_03
domain: switch
then:
- type: turn_on
device_id: f78164215de1ab644eae29c6de83c29e
entity_id: switch.steckdose_03
domain: switch
- wait_for_trigger:
- platform: state
entity_id:
- remote.harmony_hub
from: unavailable
- delay:
hours: 0
minutes: 0
seconds: 4
milliseconds: 0
- data: {}
action: script.bluetooth
- data: {}
action: script.stehlampe_toggle_durch_mediainput_wohnzimmer
- conditions:
- condition: trigger
id: WZ-ST
sequence:
- if:
- condition: device
type: is_off
device_id: f78164215de1ab644eae29c6de83c29e
entity_id: switch.steckdose_03
domain: switch
then:
- type: turn_on
device_id: f78164215de1ab644eae29c6de83c29e
entity_id: switch.steckdose_03
domain: switch
- wait_for_trigger:
- platform: state
entity_id:
- remote.harmony_hub
from: unavailable
- delay:
hours: 0
minutes: 0
seconds: 4
milliseconds: 0
- data: {}
action: script.stereoanlage
- data: {}
action: script.stehlampe_toggle_durch_mediainput_wohnzimmer
- conditions:
- condition: trigger
id: TV-BT
sequence:
- type: turn_off
device_id: a8b43b179a81383a38e6049e8149d1aa
entity_id: remote.tv_pini_remote
domain: remote
- data: {}
action: script.bluetooth
- data: {}
action: script.stehlampe_toggle_durch_mediainput_wohnzimmer
- conditions:
- condition: trigger
id: TV-ST
sequence:
- data: {}
action: script.fernsehen
- data: {}
action: script.stereoanlage
- data: {}
action: script.stehlampe_toggle_durch_mediainput_wohnzimmer
- conditions:
- condition: trigger
id: BT-TV
sequence:
- data:
device: "74515405"
command: PowerToggle
target:
entity_id: remote.harmony_hub
enabled: true
action: remote.send_command
- wait_for_trigger:
- platform: state
entity_id:
- switch.tv_pini_screen_state
to: "on"
- data:
command:
- InputTv
device: "74515407"
target:
entity_id: remote.harmony_hub
enabled: true
action: remote.send_command
- data: {}
action: script.stehlampe_toggle_durch_mediainput_wohnzimmer
- conditions:
- condition: trigger
id: BT-ST
sequence:
- data:
device: "74515407"
command: PowerToggle
target:
entity_id: remote.harmony_hub
action: remote.send_command
- data: {}
action: script.stereoanlage
- data: {}
action: script.stehlampe_toggle_durch_mediainput_wohnzimmer
- conditions:
- condition: trigger
id: ST-TV
sequence:
- data: {}
action: script.stereoanlage
- data: {}
action: script.fernsehen
- data: {}
action: script.stehlampe_toggle_durch_mediainput_wohnzimmer
- conditions:
- condition: trigger
id: ST-BT
sequence:
- data: {}
action: script.stereoanlage
- data: {}
action: script.bluetooth
- data: {}
action: script.stehlampe_toggle_durch_mediainput_wohnzimmer
- conditions:
- condition: trigger
id: WZ-PS4
sequence:
- if:
- condition: device
type: is_off
device_id: f78164215de1ab644eae29c6de83c29e
entity_id: switch.steckdose_03
domain: switch
then:
- type: turn_on
device_id: f78164215de1ab644eae29c6de83c29e
entity_id: switch.steckdose_03
domain: switch
- wait_for_trigger:
- platform: state
entity_id:
- remote.harmony_hub
from: unavailable
- delay:
hours: 0
minutes: 0
seconds: 4
milliseconds: 0
- data: {}
action: script.ps4_start
- data: {}
action: script.stehlampe_toggle_durch_mediainput_wohnzimmer
- conditions:
- condition: trigger
id: TV-PS4
sequence:
- data:
num_repeats: 1
delay_secs: 0.4
command:
- InputExt2
device: "74515405"
target:
entity_id: remote.harmony_hub
action: remote.send_command
- data: {}
action: script.stehlampe_toggle_durch_mediainput_wohnzimmer
- conditions:
- condition: trigger
id: BT-PS4
sequence:
- data:
device: "74515405"
command: PowerToggle
target:
entity_id: remote.harmony_hub
enabled: true
action: remote.send_command
- wait_for_trigger:
- platform: state
entity_id:
- switch.tv_pini_screen_state
to: "on"
- data:
device: "74515405"
command:
- InputExt2
target:
entity_id: remote.harmony_hub
action: remote.send_command
- data: {}
action: script.stehlampe_toggle_durch_mediainput_wohnzimmer
- conditions:
- condition: trigger
id: ST-PS4
sequence:
- data: {}
action: script.stereoanlage
- data: {}
action: script.ps4_start
- data: {}
action: script.stehlampe_toggle_durch_mediainput_wohnzimmer
- conditions:
- condition: trigger
id: PS4-TV
sequence:
- data:
num_repeats: 1
delay_secs: 0.4
command: WatchTV
target:
entity_id: remote.tv_pini_remote
action: remote.send_command
- data: {}
action: script.ps4_herunterfahren
- data: {}
action: script.stehlampe_toggle_durch_mediainput_wohnzimmer
- conditions:
- condition: trigger
id: PS4-BT
sequence:
- data: {}
action: script.bluetooth
- type: turn_off
device_id: a8b43b179a81383a38e6049e8149d1aa
entity_id: remote.tv_pini_remote
domain: remote
- data: {}
action: script.stehlampe_toggle_durch_mediainput_wohnzimmer
- data: {}
action: script.ps4_herunterfahren
- conditions:
- condition: trigger
id: PS4-ST
sequence:
- data: {}
action: script.fernsehen
- data: {}
action: script.stereoanlage
- data: {}
action: script.stehlampe_toggle_durch_mediainput_wohnzimmer
- data: {}
action: script.ps4_herunterfahren
default: []
mode: restart