Skip to content

Latest commit

 

History

History
59 lines (42 loc) · 1.34 KB

README.md

File metadata and controls

59 lines (42 loc) · 1.34 KB

Heru FTX to Home assistant

Creates Home assistant sensors, switches and numbers to control FTX by Modbus using;

  • MQTT in your environment
  • Home assistant in your environment with default discovery prefix (homeassistant)
  • Modbus RTU interface as device to container
  • Node-red with Modbus community npm

Installation

Docker run

docker run -it --rm -p 1880:1880 --name testenv /
-e MQTTServer=mqtt.dev.local -e mqttserverport=1883  /
  --device /dev/tty10:/dev/ttySC0 klaspihl/node-red-modbus

Docker-compose

services:
  nodered:
    image: klaspihl/node-red-heru:latest
    environment:
      - MQTT_Server=mqtt.dev.local
      - MQTT_Server_Port=1883
    ports:
      - "1880:1880"
    devices:
      - /dev/tty1:/dev/ttySC0

Usage

MQTT server and port configurable by environment variables. If credentials is needed open flow and set.

Admin password to node-red: heru

Project

Github

Result

Home assistant entities Home assistant dashboard

Bonus

REST endpoint to read FTX status REST endpoint

Node-red

Flow

flow

MQTT auto discovery

mqttdiscovery