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

Unexpected values set when publishing JSON with multiple properties to set #24425

Open
robvanoostenrijk opened this issue Oct 21, 2024 · 0 comments
Labels
problem Something isn't working

Comments

@robvanoostenrijk
Copy link

What happened?

When publishing the following device message to Zigbee2MQTT, the device property values are not set correctly:

{
    "system_mode": "cool",
    "preset": "manual",
    "current_heating_setpoint": 28
}

The values set by Zigbee2MQTT are:

{
    "child_lock": "UNLOCK",
    "current_cooling_setpoint": 28,
    "current_heating_setpoint": 28,
    "deadzone_temperature": 1,
    "fan_mode": "medium",
    "linkquality": 47,
    "local_temperature": 27,
    "local_temperature_calibration": 0,
    "preset": "manual",
    "schedule": "06:00/20 11:30/21 13:30/22 17:30/23 06:00/24 12:00/23 14:30/22 17:30/21 06:00/19 12:30/20 14:30/21 18:30/20",
    "state": "ON",
    "system_mode": 28,
    "system_mode_device": "cool"
}

Somehow system_mode got the value 28 instead of the requested value cool

What did you expect to happen?

The values on the device to reflect what was published via MQTT message, "system_mode": "cool":

{
    "child_lock": "UNLOCK",
    "current_cooling_setpoint": 28,
    "current_heating_setpoint": 28,
    "deadzone_temperature": 1,
    "fan_mode": "medium",
    "linkquality": 47,
    "local_temperature": 27,
    "local_temperature_calibration": 0,
    "preset": "manual",
    "schedule": "06:00/20 11:30/21 13:30/22 17:30/23 06:00/24 12:00/23 14:30/22 17:30/21 06:00/19 12:30/20 14:30/21 18:30/20",
    "state": "ON",
    "system_mode": "cool",
    "system_mode_device": "cool"
}

How to reproduce it (minimal and precise)

Publish device set message via mosquitto_pub:

mosquitto_pub -t 'zigbee2mqtt/Airconditioning - Den/set' -m '{ "system_mode": "cool", "preset": "manual", "current_heating_setpoint": 28 }'

Similarly running:

mosquitto_pub -t 'zigbee2mqtt/Airconditioning - Den/set' -m '{ "preset": "manual", "system_mode": "cool", "current_heating_setpoint": 26 }'

Sets "preset": 26, which is unexpected as well.

Zigbee2MQTT version

1.40.2 commit: e06848d

Adapter firmware version

20240710

Adapter

xzg.xyzroe.cc

Setup

Plain

Debug log

No response

@robvanoostenrijk robvanoostenrijk added the problem Something isn't working label Oct 21, 2024
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

1 participant