Page 1 of 1

MQTT Import json attribute heat

Posted: 15 Feb 2025, 18:02
by tonse
Hi

I can not get the attibute of running_state into a Espeasy

- In MQTT Explorer i see: zigbee2mqtt/TRV/Ton_Studeer with payload: {"battery":97,"child_lock":"UNLOCK","closing_steps":284,"frost_protection_temperature":7,"idle_steps":273,"linkquality":102,"local_temperature":16.6,"local_temperature_calibration":0,"occupied_heating_setpoint":15.5,"open_window":"OFF","running_state":"idle","system_mode":"heat","update":{"installed_version":4609,"latest_version":4609,"state":"idle"},"update_available":false,"valve_closing_degree":100,"valve_closing_limit_voltage":3091,"valve_motor_running_voltage":1355,"valve_opening_degree":100,"valve_opening_limit_voltage":2687,"weekly_schedule":{"friday":"00:00/16 07:00/19 10:00/16 10:00/16 17:00/19 23:00/16","monday":"00:00/16 07:00/19 10:00/16 10:00/16 17:00/19 23:00/16","saturday":"00:00/16 07:00/19 10:00/19 10:00/19 10:00/19 23:00/16","sunday":"00:00/16 07:00/19 10:00/19 10:00/19 10:00/19 23:00/16","thursday":"00:00/16 07:00/19 10:00/16 10:00/16 17:00/19 23:00/16","tuesday":"00:00/16 07:00/19 10:00/16 10:00/16 17:00/19 23:00/16","wednesday":"00:00/16 07:00/19 10:00/16 10:00/16 17:00/19 23:00/16"}}

- I need to use the running_state in my espeasy . Later on also in rules
- I have connection with Mosquitto on Espeasy
- This is my MQTTImport setting
Image

The values in the devices tab remain 0 when is change the trv to heat or idle. No response in Espeasy. (In mqttexplorer i see the change values)

What am i doing wrong here?

Re: MQTT Import json attribute heat

Posted: 15 Feb 2025, 19:14
by Ath
The topic set in the MQTT Import task doesn't match the actual topic in your data...

Re: MQTT Import json attribute heat

Posted: 15 Feb 2025, 20:22
by tonse
When i give the values the exact same name as the topics there is no change in behaviour
That is
I see the Json attibutes change in MQTT explorer, but the values do not change in the device on the ESP

Re: MQTT Import json attribute heat

Posted: 15 Feb 2025, 20:31
by Ath
AFAICS, the MQTT Topic field in the Topic column should be set to "Ton_Studeer", not "Studeer_Ton", as that causes it to listen for "zigbee2mqtt/TRV/Studeer_Ton" instead of "zigbee2mqtt/TRV/Ton_Studeer". (quotes should not be used in the Topic fields, used here to give the text some border)

NB: I hope you're running this on an ESP32, as the messages are ~1kB in size, and an ESP8266 will have some trouble keeping up with that kind of message payload sizes... :shock:

Re: MQTT Import json attribute heat

Posted: 15 Feb 2025, 21:30
by tonse
Thanks, but does not work yet
I think i tried to much to get it work that i changed the topic names. :x :x I have them correct now. STill no change
to besure i copied the names. Topic: Ton_Studeer Value: Ton_Studeer
Prefix for alle Topics: zigbee2mqtt/TRV/
And yes, it is on an esp32

When I change the value of another device in the devicelist of the same esp32 with TaskValueset, I see the changed value in MQTT explorer.
below are the settings of the Contoller. Maybe something is wrong there?

Image