Skip to content

About

Home Assistant custom component for GCE Ecodevices RT2

Topics

Resources

Contributing

Stars

11 stars

Watchers

2 watching

Forks

Repository files navigation

License HACS Community Forum pre-commit Ruff Project Maintenance BuyMeCoffee

This is a custom component for Home Assistant for GCE Ecodevices RT2. This work is based on the work of Aohzan ipx800. It uses the Python package pyecodevices_rt2 to call the GCE Ecodevices RT2 API.

Note: Code maintenance and updates in this repository now make use of AI/LLM coding tools, reviewed and tested by the maintainer.

Documentation

See https://pcourbin.github.io/ecodevices_rt2

Features

  • Add Counter as sensor (Index and Price)
  • Add Digital Input as binary_sensor
  • Add EnOcean device as sensor, switch or light
  • Add Post/SubPost as sensor (Index, IndexDay, Price, PriceDay and Instant)
  • Add Relay as switch or light
  • Add SupplierIndex as sensor (Index and Price)
  • Add Toroid as sensor (Index and Price)
  • Add Virtual Output as switch or light
  • Add X4FP (Heater) as climate or switch
  • Add XTHL as sensor (Temperature, Humidity and Luminance)
  • Add any sensor/actuator from your EcoRT2 from Ecodevices RT2 API (or PDF)

Installation

  1. Install via HACS (search for Ecodevices RT2).
  2. Configure your EcoDevices RT2 gateway(s) in configuration.yaml (see examples below) and restart Home Assistant.

Minimum Home Assistant version: 2026.11.0

Full Example

ecodevices_rt2:
  - name: EcoRT2
    host: "192.168.0.20"
    port: 80 # Optional, default: 80
    api_key: !secret rt2_api_key
    update_after_switch: 0.1 # Optional, default: 0.1 (seconds)
    scan_interval: 15
    devices:
      #### API Example
      - name: Elec Index HC (from API)
        type: "api"
        component: "sensor"
        api_get: "Index"
        api_get_value: "All"
        api_get_entry: "Index_TI1"
        device_class: "energy"
        unit_of_measurement: "Wh"
        state_class: "total_increasing"
        icon: "mdi:flash"
      - name: EnOcean Switch 1 (from API)
        type: "api"
        component: "switch"
        api_get: "Get"
        api_get_value: "XENO"
        api_get_entry: "ENO ACTIONNEUR1"
        api_on_get: "SetEnoPC"
        api_on_get_value: "1"
        api_off_get: "ClearEnoPC"
        api_off_get_value: "1"

      #### Counter Example
      - name: Counter 1
        type: "counter"
        id: 1

      #### DigitalInput Example
      - name: DigitalInput 1
        type: "digitalinput"
        id: 1

      #### EnOcean Switch or Sensor Example
      - name: Bedroom temperature
        type: "enocean" # Using default component `sensor`
        id: 1
        unit_of_measurement: "°C"
        device_class: "temperature"
        icon: mdi:thermometer
      - name: EnOcean Switch 1
        type: "enocean"
        component: "switch"
        id: 1
      - name: EnOcean Switch 2 as Light
        type: "enocean"
        component: "light"
        id: 2

      #### Post and Sub-Post Example
      - name: Post 1
        type: "post"
        id: 1
      - name: Subpost 2 of Post 1
        type: "post"
        id: 1
        subpost: 2

      #### Relay Example
      - name: Relay 1
        type: "relay" # Using default component `switch`
        id: 1
      - name: Relay 2 as Light
        type: "relay"
        component: "light"
        id: 2

      #### SupplierIndex Example
      - name: Supplier Index 1 (EDF Info)
        type: "supplierindex"
        id: 1

      #### Toroid Example
      - name: Toroid 1 # 2 sensors
        type: "toroid"
        id: 1
      - name: Toroid 5 # 2 sensors
        type: "toroid"
        id: 5

      #### VirtualOutput Example
      - name: Virtual Output 1
        type: "virtualoutput" # Using default component `switch`
        id: 1
      - name: Virtual Output 2 as Light
        type: "virtualoutput"
        component: "light"
        id: 2

      #### X4FP (Heaters) Example
      - name: Heater Module 1 Zone 1
        type: "x4fp"
        component: "climate" # Can be omitted since default value
        module: 1
        zone: 1
      - name: Heater Module 1 Zone 2 as Switch
        type: "x4fp"
        component: "switch"
        module: 1
        zone: 2

      #### XTHL Example
      - name: XTHL 1
        type: "xthl"
        id: 1

Multiple Gateways Example

To configure multiple EcoDevices RT2 gateways, list each gateway under ecodevices_rt2: with a unique name and host (and preferably distinct device names):

ecodevices_rt2:
  - name: EcoRT2 House
    host: "192.168.0.20"
    api_key: !secret rt2_house_api_key
    devices:
      - name: House Relay 1
        type: "relay"
        id: 1
  - name: EcoRT2 Garage
    host: "192.168.0.21"
    api_key: !secret rt2_garage_api_key
    devices:
      - name: Garage Relay 1
        type: "relay"
        id: 1

Credits

This work is inspired by the work of Aohzan ipx800. This repo structure was inspired by oncleben31/cookiecutter-homeassistant-custom-component project template created with Cookiecutter.

About

Home Assistant custom component for GCE Ecodevices RT2

Topics

Resources

Contributing

Stars

11 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages