zvldz / ha_tcp_mod

TCP_MOD modified component for Home Assistant

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Modified tcp component for Home Assistant

Installation

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.

Changes compared to the original component

  • 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

# Example configuration.yaml entry
sensor:
  - platform: tcp_mod
    host: IP_ADDRESS
    port: PORT
    payload: PAYLOAD

About

TCP_MOD modified component for Home Assistant

License:Other


Languages

Language:Python 100.0%