-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Thermostat card does not reflect values sent by MQTT climate module #14961
Comments
Can you provide the state of your entity using dev tools? Thermostat card just reflect the |
I can confirm the state is updated, but MQTT updates the state to the original value of the climate UI element, not to the value set in the UI (since it is in pessimistic mode). That UI change is not directly followed by a state write. The state write happens later and reflects the device's actual state. This this the the same state as before the UI change. Somehow this state update is not recognized as a change because the entry state is not compared to the actual UI element state. |
Hello, I'm not familiar with that so could you please provide me any link that would show me how? Thank you, Martin |
Hello, |
@mbisak - I think a screen recording may help show what you're seeing. I think I understand what you're saying but it's hard for me to imagine how that is happening, would be nice to visualize it. If you don't have one, I like https://www.screentogif.com/ I don't understand "MQTT publishes 35 and then 21". Why is it publishing 21 after 35, if you set it to 35? Does it all happen within a short period, or are you updating it back to 21 in the UI sometime later after updating to 35? I'm not convinced your issue is the same as 15483... sounds a bit different to me, but maybe I'm just not understanding what you're saying. |
Is this working now in 2023.3? |
From what I can see, values set in the UI will be reset (after a short delay) to their initial state if the state is not confirmed. I think that is the expected behavior. |
I believe this can be closed. Just tested this, and the behavior is correct now. |
Yes, everything is fine now.
Martin
Dne 06.06.2023 v 13:29 Jan Bouwhuis napsal(a):
…
I believe this can be closed.
—
Reply to this email directly, view it on GitHub
<#14961 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ATHHNQ6F37CQWZMBUHAUSVTXJ4ICNANCNFSM6AAAAAATO7OAKU>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Checklist
Describe the issue you are experiencing
Thermostat card sometimes does not reflect target temperature value sent by the MQTT module. It reflects MQTT target temperature value in place where the ciphers are but does not reflect it in the point/ball position.
Point/ball usually stucks at position set by user even if it receives different value through MQTT. So for example user sets 21 degrees, it is displayed in the UI, MQTT publishes 21 degrees as confirmation but when MQTT publishes next value, for example 30 degrees, target temperature is changed but point/ball position stucks at 21.
For details, please check:
home-assistant/core#84745
Describe the behavior you expected
Ball/point position should always reflect values sent by MQTT
Steps to reproduce the issue
import paho.mqtt.client as mqttc
def on_message(client, userdata, msg):
print("Received",msg.topic+" "+str(msg.payload))
print("Publishing",MQTTSTATETOPIC,msg.payload)
mqttSession.publish(MQTTSTATETOPIC, msg.payload)
print("Publishing temp that HVAC set and decided internally", MQTTSTATETOPIC, 35)
mqttSession.publish(MQTTSTATETOPIC, 35)
print("------------")
MQTTBROKER = '192.168.2.10'
MQTTPORT = 1883
MQTTCMDTOPIC = 'etatherm/1/temperature/target/set'
MQTTSTATETOPIC = 'etatherm/1/temperature/target'
MQTTMODETOPIC = 'etatherm/1/mode'
print("Start")
mqttSession = mqttc.Client(client_id='test', protocol=mqttc.MQTTv311, transport='tcp')
mqttSession.connect(host=MQTTBROKER, port=MQTTPORT, keepalive=60)
mqttSession.subscribe(topic=MQTTCMDTOPIC)
mqttSession.on_message = on_message
mqttSession.publish(MQTTSTATETOPIC, 10)
mqttSession.publish(MQTTMODETOPIC, 'auto')
while True:
mqttSession.loop()
The MQTT object is defined like this:
climate.etatherm_pracovna_topeni:
hvac_modes:
What version of Home Assistant Core has the issue?
2022.12.8
What was the last working version of Home Assistant Core?
No response
In which browser are you experiencing the issue with?
any
Which operating system are you using to run this browser?
Windows, Android
State of relevant entities
No response
Problem-relevant frontend configuration
No response
Javascript errors shown in your browser console/inspector
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: