TheByteStuff / RemoteSyslog_Service

Home Assistant Custom Component - send Syslog message to remote server.
MIT License
19 stars 0 forks source link

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

Open DST73 opened 4 weeks ago

DST73 commented 4 weeks ago

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

TheByteStuff commented 3 weeks ago

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.

DST73 commented 3 weeks ago

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