Scripts in Packages not recognized?

HI,

All of my packages contents are recognized in Hassio, except for the scripts i’ve declared in these Packages. Talking regular yaml script here, not Python scripts.
That is, i can’t see these in the state-entity inspector <>

@mviezzer hows that in your setup?

Automations, customizations, input_selects, groups, are all recognized and shown fine.

Scripts aren’t seen, and i need to put these in the separate scripts configuration section i also have to be recognized.
Strange thing is that some of these unidentified scripts do work.

Is this expected behavior? If yes, some reference to that should be placed in the documentation. If not, what should i change in my configuration to read scripts from within packages…

Thanks,
Marius

Hi, I don’t use Hassio… but I remember some users experiencing differents behaviors in hassio, I don’t remeber if this was confirmed or not…
Try set the logger to info or debug to find any hint… sometimes is small thing that causes a domino effect…

HI @mviezzer

in https://github.com/maattdiy/home-assistant-config/blob/master/config/packages/sleep.yaml the script

script:
  sleep:
    alias: Sleep
    sequence:
      - service: switch.turn_off
        entity_id: switch.pc_me_monitor
      - service_template: >
          {% if is_state('input_boolean.onsleep_music', 'on') %}
            script.mp_relax01
          {% endif %}
      - delay: '00:{{ states.input_number.onsleep_delay.state | int }}:00'
      - service: script.all_off

uses input_boolean.onsleep_music and input_number.onsleep_delay… where are these declared? id like to use something like that, but cant find the code in your configuration.

Could you please point me to them, i’d like to get rid of the unknown’s in my logs :wink:

Thanks!

btw you might be interested in the timestamp_custom I’ve been able to realize successfully. In Yaml that is, both in automations and scripts, not in Python.

data_template:
        title: "Selected Activity: {{states.input_select.activity.state}} at {{ as_timestamp(states.input_select.activity.last_updated) | timestamp_custom ('%H:%M') }}"
        message: "{{ as_timestamp(states.input_select.activity.last_updated) | timestamp_custom ('%H:%M') }}:Espresso is klaar over 10 minuten!"

shows the time both in title and message, just for testing purposes here, but the effect is to be tailored as you like.
I use these now in the mode and activity selection scripts, creating nice feedback from the summary.py!

Cheers,
Marius

Hi, here: home-assistant-config/config/packages/profiles.yaml at df58d63ff61c917b508f110e2c35092b1f75e16a · maattdiy/home-assistant-config · GitHub
I ofen find myself in this situation, digging all entities references… There is simple ways:
Github: In the repo page, the top search already search only the repo, so just search for the entitly name to see all the references.
Notepad++: Use Shift+Ctrl+F to Find in files, filter for *.yaml and the config folder, you can even use regex…

Thanks, I’ll implement that :slight_smile: