koriwi / tcpsensor

Home Assistant extended copy of tcp sensor for HACS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This home assistant tcp sensor is a copy of already available TCP Sensor with bytearray transmission support. More see pull request home-assistant/core#80085

Installation of the custom component

Configuration Example

sensor:
  - platform: tcpsensor
    name: "TCP sensor name"
    host: 192.168.178.111
    port: 8899
    timeout: 10
    payload: "10 00 FF FF B6 00 00 00 C4"
    payload_is_hex: true
    value_template: "{{ value }}"

Description

payload_is_hex (default: false) flag is optional, so all existing configurations are compatible to existing TCP Sensor and handled same way.

payload and value format is a HEX string with space separator for better readability. see byteaaray.fromhex for more information.

About

Home Assistant extended copy of tcp sensor for HACS


Languages

Language:Python 100.0%