Koenkk / zigbee2mqtt

Zigbee 🐝 to MQTT bridge 🌉, get rid of your proprietary Zigbee bridges 🔨
https://www.zigbee2mqtt.io
GNU General Public License v3.0
11.74k stars 1.64k forks source link

Water irrigation valve GiEX QT06_2 - inverted STATE #23308

Open janumix opened 2 months ago

janumix commented 2 months ago

What happened?

Hi

It seens to me that GiEX QT06_2 has inverted STATE value. It's reported to be ON whielst there are no water flow and vice versa. In order to start irrigation I need to switch it OFF but all flow parameters report zero (quite logical if valve is closed). Anyone suffer the same ?

Regards Janusz

What did you expect to happen?

No response

How to reproduce it (minimal and precise)

No response

Zigbee2MQTT version

1.37.1 commit: cda867a3

Adapter firmware version

20220507

Adapter

zStack3x0

Setup

plain, PI3

Debug log

No response

cigoe commented 1 month ago

I am seeing this as well, the old model works as expected but the newer one is inverted.

https://github.com/Koenkk/zigbee-herdsman-converters/blob/master/src/devices/giex.ts#L59-L89

Maybe adding an inverted state to the exposes for the newer model only would fix it?

e.binary(legacy.giexWaterValve.state, ea.STATE_SET, 'OFF', 'ON').withDescription('State'), would work?