Modified tcp component for Home Assistant
Manual mode
Place the tcp_mod
folder into your custom_components
folder.
Adding custom repository to HACS
Go to the Integrations page in HACS and select the three dots in the top right corner. Select Custom repositories. Add repository url. Category - Integration. Read more on https://hacs.xyz/docs/faq/custom_repositories.
- Added
payload_template
. - Added
data
attribute containing the full response. - Added configuration variable
send_eol
. Boolean variable for forced sending newline character. Default value: false.
# Example configuration.yaml entry
sensor:
- platform: tcp_mod
host: IP_ADDRESS
port: PORT
payload: PAYLOAD