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

Mercator AC fan controller model SSWF01G incorrectly reporting fan state #15186

Closed
Anhvariel opened this issue Nov 26, 2022 · 2 comments
Closed
Labels
problem Something isn't working stale Stale issues

Comments

@Anhvariel
Copy link

Anhvariel commented Nov 26, 2022

What happened?

Mercator fan controller model SSWF01G regularly reports fan state as on when it is not. Both the "State" tab and "Exposes" tab show this incorrect fan_state value. Pressing the refresh button on the "Exposes" tab next to fan state will update the value and show it correctly. Also toggling the physical switch will update the value correctly. It seems as though the device regularly publishes an attribute report with fanmodesequence data which is being interpreted incorrectly as the fan being on. Se bolded log line below.

What did you expect to happen?

Fan state operating correctly.

How to reproduce it (minimal and precise)

No response

Zigbee2MQTT version

1.28.2

Adapter firmware version

20220219

Adapter

Sonoff Zigbee 3.0 Dongle Plus (Model ZBDongle-P)

Debug log

2022-11-27 10:52:42Received Zigbee message from 'Mercator Fan Controller - Patio', type 'attributeReport', cluster 'hvacFanCtrl', data '{"fanModeSequence":1}' from endpoint 1 with groupID 0
Info 2022-11-27 10:52:42MQTT publish: topic 'zigbee2mqtt/Mercator Fan Controller - Patio', payload '{"fan_state":"ON","last_seen":"2022-11-27T10:52:40+11:00","linkquality":51,"state":"OFF"}'
Debug 2022-11-27 10:52:53Received MQTT message on 'zigbee2mqtt/Mercator Fan Controller - Patio/set/fan_state' with data 'OFF'
Debug 2022-11-27 10:52:53Publishing 'set' 'fan_state' to 'Mercator Fan Controller - Patio'
Info 2022-11-27 10:52:53MQTT publish: topic 'zigbee2mqtt/Mercator Fan Controller - Patio', payload '{"fan_state":"ON","last_seen":"2022-11-27T10:52:51+11:00","linkquality":51,"state":"OFF"}'
Info 2022-11-27 10:52:53MQTT publish: topic 'zigbee2mqtt/Mercator Fan Controller - Patio', payload '{"fan_mode":"off","fan_state":"OFF","last_seen":"2022-11-27T10:52:51+11:00","linkquality":51,"state":"OFF"}'
Debug 2022-11-27 10:53:12Received MQTT message on 'zigbee2mqtt/Mercator Fan Controller - Patio/set/fan_state' with data 'ON'
Debug 2022-11-27 10:53:12Publishing 'set' 'fan_state' to 'Mercator Fan Controller - Patio'
Info 2022-11-27 10:53:12MQTT publish: topic 'zigbee2mqtt/Mercator Fan Controller - Patio', payload '{"fan_mode":"off","fan_state":"OFF","last_seen":"2022-11-27T10:53:10+11:00","linkquality":43,"state":"OFF"}'
Debug 2022-11-27 10:53:12Received Zigbee message from 'Mercator Fan Controller - Patio', type 'attributeReport', cluster 'hvacFanCtrl', data '{"fanMode":4}' from endpoint 1 with groupID 0
Info 2022-11-27 10:53:12MQTT publish: topic 'zigbee2mqtt/Mercator Fan Controller - Patio', payload '{"fan_mode":"on","fan_state":"ON","last_seen":"2022-11-27T10:53:10+11:00","linkquality":43,"state":"OFF"}'
Info 2022-11-27 10:53:12MQTT publish: topic 'zigbee2mqtt/Mercator Fan Controller - Patio', payload '{"fan_mode":"on","fan_state":"ON","last_seen":"2022-11-27T10:53:10+11:00","linkquality":43,"state":"OFF"}'
Debug 2022-11-27 10:53:56Received MQTT message on 'zigbee2mqtt/Mercator Fan Controller - Patio/set/fan_state' with data 'OFF'
Debug 2022-11-27 10:53:56Publishing 'set' 'fan_state' to 'Mercator Fan Controller - Patio'
Debug 2022-11-27 10:53:56Received Zigbee message from 'Mercator Fan Controller - Patio', type 'attributeReport', cluster 'hvacFanCtrl', data '{"fanMode":0}' from endpoint 1 with groupID 0
Info 2022-11-27 10:53:56MQTT publish: topic 'zigbee2mqtt/Mercator Fan Controller - Patio', payload '{"fan_mode":"off","fan_state":"OFF","last_seen":"2022-11-27T10:53:54+11:00","linkquality":51,"state":"OFF"}'
Info 2022-11-27 10:53:56MQTT publish: topic 'zigbee2mqtt/Mercator Fan Controller - Patio', payload '{"fan_mode":"off","fan_state":"OFF","last_seen":"2022-11-27T10:53:54+11:00","linkquality":51,"state":"OFF"}'
Info 2022-11-27 10:53:56MQTT publish: topic 'zigbee2mqtt/Mercator Fan Controller - Patio', payload '{"fan_mode":"off","fan_state":"OFF","last_seen":"2022-11-27T10:53:54+11:00","linkquality":51,"state":"OFF"}'
Debug 2022-11-27 10:54:13Received Zigbee message from 'Mercator Fan Controller - Patio', type 'attributeReport', cluster 'genBasic', data '{"appVersion":69}' from endpoint 1 with groupID 0
Info 2022-11-27 10:54:13MQTT publish: topic 'zigbee2mqtt/Mercator Fan Controller - Patio', payload '{"fan_mode":"off","fan_state":"OFF","last_seen":"2022-11-27T10:54:11+11:00","linkquality":51,"state":"OFF"}'

@Anhvariel Anhvariel added the problem Something isn't working label Nov 26, 2022
@github-actions
Copy link
Contributor

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

@github-actions github-actions bot added the stale Stale issues label Dec 27, 2022
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 3, 2023
@davidjb
Copy link

davidjb commented Jan 13, 2023

I'm seeing this also, on z2m 1.29.1 - same behaviour with the same model of device.

Edit: this is fixed by Koenkk/zigbee-herdsman-converters#5327. The issue was caused by the hvacFanCtrl messages lacking the fanMode attribute and how the converter was implemented.

davidjb added a commit to davidjb/zigbee-herdsman-converters that referenced this issue Jan 14, 2023
This handles `hvacFanCtrl` messages where `fanMode` isn't present, such
as `{"fanModeSequence":1}` (such as that generated by the Mercator
SSWF01G fan controller, reported in
Koenkk/zigbee2mqtt#15186). Previously, without
`fanMode` present, the state was assumed to be on.
Koenkk pushed a commit to Koenkk/zigbee-herdsman-converters that referenced this issue Jan 14, 2023
This handles `hvacFanCtrl` messages where `fanMode` isn't present, such
as `{"fanModeSequence":1}` (such as that generated by the Mercator
SSWF01G fan controller, reported in
Koenkk/zigbee2mqtt#15186). Previously, without
`fanMode` present, the state was assumed to be on.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
problem Something isn't working stale Stale issues
Projects
None yet
Development

No branches or pull requests

2 participants