Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mi control switch doesn't work correctly after upgrade V 2.0 #25511

Open
masciotti opened this issue Jan 4, 2025 · 2 comments
Open

Mi control switch doesn't work correctly after upgrade V 2.0 #25511

masciotti opened this issue Jan 4, 2025 · 2 comments
Labels
problem Something isn't working

Comments

@masciotti
Copy link

What happened?

After 2.0 upgrade the device work in Z2M
info 2025-01-04 17:52:15z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Tasto Xiaomi 2', payload '{"action":"double","battery":null,"linkquality":252,"power_outage_count":null,"voltage":null}'
info 2025-01-04 17:52:15z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Tasto Xiaomi 2/action', payload 'double'

But in HA only battery appears as entity.
Tasto Xiaomi 2 Battery
sensor.tasto_xiaomi_2_battery
MQTT

What did you expect to happen?

No response

How to reproduce it (minimal and precise)

No response

Zigbee2MQTT version

2.0

Adapter firmware version

7.4.3 (GA)

Adapter

ember

Setup

Pi

Debug log

No response

@masciotti masciotti added the problem Something isn't working label Jan 4, 2025
@m0wlheld
Copy link

m0wlheld commented Jan 4, 2025

Duplicate of #25505, #25500 and may others. Please read the release notes and the references Breaking Changes

@rogervdh
Copy link

rogervdh commented Jan 4, 2025

I have the same problem and I don't use the deprecated sensors. The release notes are mentionning: "All action sensors are now disabled by default (sensor.*_action entities). It's recommended to use the MQTT device trigger instead.". I was already using the MQQ device triggers, but it doesn't work since Z2M 2.0.0. Please see below the triggering part of an automation:

alias: Lichtschakelaar | Keuken
description: ""
triggers:
  - domain: mqtt
    device_id: edb52b2a36f1143e3ea5901e82129813
    type: action
    subtype: 1_single
    discovery_id: 0x3425b4fffef55a1e action_1_single
    id: links-boven-enkel
    alias: Links boven, enkel drukken
    trigger: device
  - domain: mqtt
    device_id: edb52b2a36f1143e3ea5901e82129813
    type: action
    subtype: 2_single
    discovery_id: 0x3425b4fffef55a1e action_2_single
    id: rechts-boven-enkel
    alias: Rechts boven, enkel drukken
    trigger: device

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
problem Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants