MQTT Import json attribute heat

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
tonse
Normal user
Posts: 11
Joined: 04 Jan 2017, 15:36

MQTT Import json attribute heat

#1 Post by tonse » 15 Feb 2025, 18:02

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?
Attachments
2025-02-15 17 56 08.jpg
2025-02-15 17 56 08.jpg (476.66 KiB) Viewed 1451 times

User avatar
Ath
Normal user
Posts: 4330
Joined: 10 Jun 2018, 12:06
Location: NL

Re: MQTT Import json attribute heat

#2 Post by Ath » 15 Feb 2025, 19:14

The topic set in the MQTT Import task doesn't match the actual topic in your data...
/Ton (PayPal.me)

tonse
Normal user
Posts: 11
Joined: 04 Jan 2017, 15:36

Re: MQTT Import json attribute heat

#3 Post by tonse » 15 Feb 2025, 20:22

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

User avatar
Ath
Normal user
Posts: 4330
Joined: 10 Jun 2018, 12:06
Location: NL

Re: MQTT Import json attribute heat

#4 Post by Ath » 15 Feb 2025, 20:31

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:
/Ton (PayPal.me)

tonse
Normal user
Posts: 11
Joined: 04 Jan 2017, 15:36

Re: MQTT Import json attribute heat

#5 Post by tonse » 15 Feb 2025, 21:30

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
Attachments
2025-02-15 21 23 42.jpg
2025-02-15 21 23 42.jpg (402.35 KiB) Viewed 1377 times

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 22 guests