Skip to content

Possibility to add a default vor syslog-server and port #6

Open

Description

@DST73

Is your feature request related to a problem? Please describe.
No problem

Describe the solution you'd like
A possibility to add a default value for the syslog-server and -port in the configuration.

Describe alternatives you've considered
no

Additional context
The syslog-server and port almost never changes but you have to write it in you automation every time. This way it is possible that you accidentally write a wrong ip or port

Activity

  1. TheByteStuff commented on Oct 30, 2024

    @TheByteStuff
    Owner

    I kept this service fairly simple and hadn't considered any static configuration/storage. I usually either duplicate an automation to start working with or for specific steps go into the YAML and copy / past the text of the configuration. In fact, just saw you can go to the menu to the right of an action and copy as YAML without opening the config:

    BaseYAMLCopy_Highlighted

    service: remote_syslog.logmessage
    data:
    host: xxx.xxx.xxx.xxx
    port: xxxx
    protocol: UDP
    facility: USER
    program: hascript
    message: Message text
    loglevel: info

    Either of these approaches may give you a good work around. I look into what it may take to offer a customizable default.

  2. DST73 commented on Oct 31, 2024

    @DST73
    Author

    Thank you! That would be great. Could be hardcoded in the configuration.yml

  3. TheByteStuff commented on Apr 21, 2025

    @TheByteStuff
    Owner

    I have not been able to figure out a way to assign a default value at this point. The screens being used to configure the syslog call are part of HA not part of the code of the service. If there's a feature in HA to do this, I am overlooking it. Thoughts?

  4. TheByteStuff commented on Apr 21, 2025

    @TheByteStuff
    Owner

    warez4me - can you delete your comment here and open a separate issue for your question? What you are asking has nothing to do with the OPs concern and I think it would be better not to clutter up this thread discussing a new topic. TY!

  5. warez4me commented on Apr 22, 2025

    @warez4me

    warez4me - can you delete your comment here and open a separate issue for your question?

    Sorry, i decide this repository is dead, and life glows only here.
    But, what is the "hascript" ?... :'(

  6. warez4me commented on Apr 23, 2025

    @warez4me

    Just for idea - maybe you can link config values with state of some predefined HA entities.
    This will give not only default values, but will provide possibility to dinamically change it
    "on the fly" in automations or scripts. Log level or facility for example or even what RFC to use ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions