RemoteSyslog_Service icon indicating copy to clipboard operation
RemoteSyslog_Service copied to clipboard

Possibility to add a default vor syslog-server and port

Open DST73 opened this issue 1 year ago • 6 comments

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

DST73 avatar Oct 28 '24 15:10 DST73

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.

TheByteStuff avatar Oct 30 '24 21:10 TheByteStuff

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

DST73 avatar Oct 31 '24 12:10 DST73

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?

TheByteStuff avatar Apr 21 '25 20:04 TheByteStuff

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!

TheByteStuff avatar Apr 21 '25 20:04 TheByteStuff

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" ?... :'(

warez4me avatar Apr 22 '25 09:04 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 ;)

warez4me avatar Apr 23 '25 04:04 warez4me