#Xiaomi Mi Smart Plug 2 and Generic Thermostat

1 messages · Page 1 of 1 (latest)

topaz edge
#

Hi,
I'm having difficulties triggering the Xiaomi Smart Plug 2 (cuco.plug.v2eur) via the Generic Thermostat integration. I've tried the UI configuration and the manual configuration via the yaml. The Plug is integrated via the HACS Xiaomi Miot Auto.

I can only trigger the switch if i automate a simple code that includes the device_id along with the entity_id, be it numeric form or human friendly.

`- id: '1736962075335'
alias: test2
description: ''
triggers:

  • type: humidity
    device_id: e245c119dd01969b11832ee05af6d083
    entity_id: sensor.atc_16f8_temperature
    domain: sensor
    trigger: device
    below: 20
    conditions: []
    actions:
  • type: turn_on
    device_id: 31711b364a06f7ee39820c0125cda77f
    entity_id: switch.cuco_v2eur_cdc9_switch_status
    domain: switch
    mode: single`

Automation above works. The one in General Thermostat integration doesn't. I even tried to search for the helper in /config/.storage to see how it's formated but i had no luck finding.

`climate:

  • platform: generic_thermostat
    name: Test
    heater: switch.cuco_v2eur_cdc9_switch_status
    target_sensor: sensor.atc_16f8_temperature
    min_temp: 15
    max_temp: 21
    ac_mode: false
    target_temp: 17
    cold_tolerance: 0.3
    hot_tolerance: 0
    min_cycle_duration:
    seconds: 5
    keep_alive:
    minutes: 3
    initial_hvac_mode: "off"
    away_temp: 16
    precision: 0.1`