You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Possibility to add a default vor syslog-server and port #6
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
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:
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.
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?
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!
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 ;)
Activity
TheByteStuff commentedon Oct 30, 2024
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:
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.
DST73 commentedon Oct 31, 2024
Thank you! That would be great. Could be hardcoded in the configuration.yml
TheByteStuff commentedon Apr 21, 2025
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 commentedon Apr 21, 2025
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!
warez4me commentedon Apr 22, 2025
Sorry, i decide this repository is dead, and life glows only here.
But, what is the "hascript" ?... :'(
warez4me commentedon Apr 23, 2025
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 ;)