Developer tools Actions doesn't show targets (for some actions)

Hi folks!

On Developer Tools → Actions tab, when selecting a very common Action (light: Toggle), the Targets menu do not shows up:

If I go to YAML Mode and inform manually an entity_id, the light entity toggle (so HA has a light entity to work on):

But if another Action is selected the missing menu appears:

I’ve reloaded, rebooted, cleared browser’s cache, to no avail. Logs doesn’t show anything abnormal related to this issue.

The last resort is a fully HASS reinstall, but it would be a hassle, specially with the long term statistics.

I have a lot of Automations on Node-RED, and I think (sorry to relay on a personal thought) that Node-RED’s Call Service node do not work as expected (do not show a menu to choose a target entity) because Targets list do not show up (on HA). To ensure that my personal thought is somewhat correct, Node-RED’s Call service node behaves similar: it shows a menu to choose a input_boolean entity, but not a light entity.

Any clues?

Cheers!

Strange.
2024.11.x:

You’re not the first person I’ve seen report this, but in every case I’ve seen this seems to go away on its own after an update or something.

Just out of curiousity, can you open up your browser console, and run this command, and copy/paste the object that it returns?

document.getElementsByTagName(“home-assistant”)[0].hass.services.light.toggle

Mine looks like this, want to make sure you get the same thing.

{
    "name": "Toggle",
    "description": "Toggles one or more lights, from on to off, or, off to on, based on their current state.",
    "fields": {
        "transition": {
            "filter": {
                "supported_features": [
                    32
                ]
            },
            "selector": {
                "number": {
                    "min": 0,
                    "max": 300,
                    "unit_of_measurement": "seconds"
                }
            },
            "name": "Transition",
            "description": "Duration it takes to get to next state."
        },
        "rgb_color": {
            "filter": {
                "attribute": {
                    "supported_color_modes": [
                        "hs",
                        "xy",
                        "rgb",
                        "rgbw",
                        "rgbww"
                    ]
                }
            },
            "example": "[255, 100, 100]",
            "selector": {
                "color_rgb": null
            },
            "name": "Color",
            "description": "The color in RGB format. A list of three integers between 0 and 255 representing the values of red, green, and blue."
        },
        "kelvin": {
            "filter": {
                "attribute": {
                    "supported_color_modes": [
                        "color_temp",
                        "hs",
                        "xy",
                        "rgb",
                        "rgbw",
                        "rgbww"
                    ]
                }
            },
            "selector": {
                "color_temp": {
                    "unit": "kelvin",
                    "min": 2000,
                    "max": 6500
                }
            },
            "name": "Color temperature",
            "description": "Color temperature in Kelvin."
        },
        "brightness_pct": {
            "filter": {
                "attribute": {
                    "supported_color_modes": [
                        "brightness",
                        "color_temp",
                        "hs",
                        "xy",
                        "rgb",
                        "rgbw",
                        "rgbww"
                    ]
                }
            },
            "selector": {
                "number": {
                    "min": 0,
                    "max": 100,
                    "unit_of_measurement": "%"
                }
            },
            "name": "Brightness",
            "description": "Number indicating the percentage of full brightness, where 0 turns the light off, 1 is the minimum brightness, and 100 is the maximum brightness."
        },
        "effect": {
            "filter": {
                "supported_features": [
                    4
                ]
            },
            "selector": {
                "text": null
            },
            "name": "Effect",
            "description": "Light effect."
        },
        "advanced_fields": {
            "collapsed": true,
            "fields": {
                "rgbw_color": {
                    "filter": {
                        "attribute": {
                            "supported_color_modes": [
                                "hs",
                                "xy",
                                "rgb",
                                "rgbw",
                                "rgbww"
                            ]
                        }
                    },
                    "example": "[255, 100, 100, 50]",
                    "selector": {
                        "object": null
                    }
                },
                "rgbww_color": {
                    "filter": {
                        "attribute": {
                            "supported_color_modes": [
                                "hs",
                                "xy",
                                "rgb",
                                "rgbw",
                                "rgbww"
                            ]
                        }
                    },
                    "example": "[255, 100, 100, 50, 70]",
                    "selector": {
                        "object": null
                    }
                },
                "color_name": {
                    "filter": {
                        "attribute": {
                            "supported_color_modes": [
                                "hs",
                                "xy",
                                "rgb",
                                "rgbw",
                                "rgbww"
                            ]
                        }
                    },
                    "selector": {
                        "select": {
                            "translation_key": "color_name",
                            "options": [
                                "homeassistant",
                                "aliceblue",
                                "antiquewhite",
                                "aqua",
                                "aquamarine",
                                "azure",
                                "beige",
                                "bisque",
                                "blanchedalmond",
                                "blue",
                                "blueviolet",
                                "brown",
                                "burlywood",
                                "cadetblue",
                                "chartreuse",
                                "chocolate",
                                "coral",
                                "cornflowerblue",
                                "cornsilk",
                                "crimson",
                                "cyan",
                                "darkblue",
                                "darkcyan",
                                "darkgoldenrod",
                                "darkgray",
                                "darkgreen",
                                "darkgrey",
                                "darkkhaki",
                                "darkmagenta",
                                "darkolivegreen",
                                "darkorange",
                                "darkorchid",
                                "darkred",
                                "darksalmon",
                                "darkseagreen",
                                "darkslateblue",
                                "darkslategray",
                                "darkslategrey",
                                "darkturquoise",
                                "darkviolet",
                                "deeppink",
                                "deepskyblue",
                                "dimgray",
                                "dimgrey",
                                "dodgerblue",
                                "firebrick",
                                "floralwhite",
                                "forestgreen",
                                "fuchsia",
                                "gainsboro",
                                "ghostwhite",
                                "gold",
                                "goldenrod",
                                "gray",
                                "green",
                                "greenyellow",
                                "grey",
                                "honeydew",
                                "hotpink",
                                "indianred",
                                "indigo",
                                "ivory",
                                "khaki",
                                "lavender",
                                "lavenderblush",
                                "lawngreen",
                                "lemonchiffon",
                                "lightblue",
                                "lightcoral",
                                "lightcyan",
                                "lightgoldenrodyellow",
                                "lightgray",
                                "lightgreen",
                                "lightgrey",
                                "lightpink",
                                "lightsalmon",
                                "lightseagreen",
                                "lightskyblue",
                                "lightslategray",
                                "lightslategrey",
                                "lightsteelblue",
                                "lightyellow",
                                "lime",
                                "limegreen",
                                "linen",
                                "magenta",
                                "maroon",
                                "mediumaquamarine",
                                "mediumblue",
                                "mediumorchid",
                                "mediumpurple",
                                "mediumseagreen",
                                "mediumslateblue",
                                "mediumspringgreen",
                                "mediumturquoise",
                                "mediumvioletred",
                                "midnightblue",
                                "mintcream",
                                "mistyrose",
                                "moccasin",
                                "navajowhite",
                                "navy",
                                "navyblue",
                                "oldlace",
                                "olive",
                                "olivedrab",
                                "orange",
                                "orangered",
                                "orchid",
                                "palegoldenrod",
                                "palegreen",
                                "paleturquoise",
                                "palevioletred",
                                "papayawhip",
                                "peachpuff",
                                "peru",
                                "pink",
                                "plum",
                                "powderblue",
                                "purple",
                                "red",
                                "rosybrown",
                                "royalblue",
                                "saddlebrown",
                                "salmon",
                                "sandybrown",
                                "seagreen",
                                "seashell",
                                "sienna",
                                "silver",
                                "skyblue",
                                "slateblue",
                                "slategray",
                                "slategrey",
                                "snow",
                                "springgreen",
                                "steelblue",
                                "tan",
                                "teal",
                                "thistle",
                                "tomato",
                                "turquoise",
                                "violet",
                                "wheat",
                                "white",
                                "whitesmoke",
                                "yellow",
                                "yellowgreen"
                            ]
                        }
                    }
                },
                "hs_color": {
                    "filter": {
                        "attribute": {
                            "supported_color_modes": [
                                "hs",
                                "xy",
                                "rgb",
                                "rgbw",
                                "rgbww"
                            ]
                        }
                    },
                    "example": "[300, 70]",
                    "selector": {
                        "object": null
                    }
                },
                "xy_color": {
                    "filter": {
                        "attribute": {
                            "supported_color_modes": [
                                "hs",
                                "xy",
                                "rgb",
                                "rgbw",
                                "rgbww"
                            ]
                        }
                    },
                    "example": "[0.52, 0.43]",
                    "selector": {
                        "object": null
                    }
                },
                "color_temp": {
                    "filter": {
                        "attribute": {
                            "supported_color_modes": [
                                "color_temp",
                                "hs",
                                "xy",
                                "rgb",
                                "rgbw",
                                "rgbww"
                            ]
                        }
                    },
                    "selector": {
                        "color_temp": {
                            "unit": "mired",
                            "min": 153,
                            "max": 500
                        }
                    }
                },
                "brightness": {
                    "filter": {
                        "attribute": {
                            "supported_color_modes": [
                                "brightness",
                                "color_temp",
                                "hs",
                                "xy",
                                "rgb",
                                "rgbw",
                                "rgbww"
                            ]
                        }
                    },
                    "selector": {
                        "number": {
                            "min": 0,
                            "max": 255
                        }
                    }
                },
                "white": {
                    "filter": {
                        "attribute": {
                            "supported_color_modes": [
                                "white"
                            ]
                        }
                    },
                    "selector": {
                        "constant": {
                            "value": true,
                            "label": "Enabled"
                        }
                    }
                },
                "profile": {
                    "example": "relax",
                    "selector": {
                        "text": null
                    }
                },
                "flash": {
                    "filter": {
                        "supported_features": [
                            8
                        ]
                    },
                    "selector": {
                        "select": {
                            "options": [
                                {
                                    "label": "Long",
                                    "value": "long"
                                },
                                {
                                    "label": "Short",
                                    "value": "short"
                                }
                            ]
                        }
                    }
                }
            }
        }
    },
    "target": {
        "entity": [
            {
                "domain": [
                    "light"
                ]
            }
        ]
    }
}

Here we go!

{
    "name": "Toggle",
    "description": "Toggles one or more lights, from on to off, or, off to on, based on their current state.",
    "fields": {}
}

Has the same header but fields is empty.

Just for sure, running the same command with input_boolean in place of light:

{
    "name": "Toggle",
    "description": "Toggles the helper on/off.",
    "fields": {},
    "target": {
        "entity": [
            {
                "domain": [
                    "humidifier"
                ]
            }
        ]
    }
}

Thanks!

Hm, yeah for some reason your not getting service data from the light domain.

I can’t really think of a reason how that could happen. I might suggest try a reinstall (or at least try updating to a new version if you can).

If you make and restore a backup you shouldn’t lose long term statistics.

I do hesitate to suggest that as I know its kind of a heavy operation, but I don’t have any better advice at the moment.

Thanks a lot for your suggestion!

Yes, it is a heavy task, but I think that I’ve came to a dead end on this problem. It occurred in the past, solved by itself, but is back again.

I will reinstall and keep you informed!

Cheers!