MC6 Thermostat

Hi @Frans1960.

MC6 uses login “admin” and password “admin” for the broker.
You can get the values like this:

current_temperature_topic: "updData/YOURTHERMOSTATMACADDRESSLOWERCASE"
current_temperature_template: "{{ value_json.temp | float / 10  }}" 

Cheers,
Mateusz

Hello @YuQiang.

I have a problem with setting the temperature (reading the values works great). It looks like the thermostat does not read the new values.

I’m publishing e.g.:

"settemp": 230

My entities get updated but the thermostat does not change it’s value.
Could You please help me with this?

Cheers,
Mateusz

P.S. Firmware 2.04z with Mosquitto broker.

Hi Mateusz,
Try to publish it in the topic with only the Mac address: eg. /yourmc6mac/
This will set the values.
Cheers,
Serfio

1 Like

Hello Sergio.

It works! :smiley:
Thank you very much.

Cheers,
Mateusz

Hi guys!

One more question.

What is mode 5? It is not listed in JSON description.

Cheers,
Mateusz

Hi Mateusz,
I had the same question some time ago but not investigated further. Maybe @YuQiang knows if there are changes in the ‘Mode’ attribute with new descriptions.
Alternatively you can reverse engineer it to figure out them :wink:
BTW, once you get in a good shape with your development, would be great if you share your code and howtos.
Thanks so much,
Sergio

Hi Sergo

the mode parameter is only for the fan coil MC6, 1= cool; 2= heat ;3= vent; 4=auto; for the heating MC6 this mode dose not work.

Regards
Yu

1 Like

Was anyone able to add humidity to thermostat card ? Like this one

1 Like

Hi Mateusz,
Thanks for the info. I have another password on my mqtt broker, can I set the password or must I use admin / admin?

Thanks, Frans

Hi Yu,
No need to change Topic.
Maybe I missed something, I missing documentation / manual for this. And some examples would be help full.
I have another password on my mqtt broker, can I set the password or must I use admin / admin?

Thanks, Frans

Hello Frans.
I have not seen an option to change user and password on 2.04z firmware.

You can add these lines to the mosquitto broker configuration:

logins:
  - username: admin
    password: admin

Cheers,
Mateusz

Hello Mateusz,
Thanks for the info and if I would change to admin/admin, I have to change al my devices that connect trough mqtt and it’s a very obvious user/password.
I have now working with the Modbus and Node-Red. Its winter, so I will change it to mqtt in the summer.

Best regards, Frans

Hello Frans.

The above lines only add a mqtt user. You don’t have to change logins and passwords on all your devices.

But I do understand you don’t want to mess with a working system :slight_smile: The weather is horrible…

Cheers,
Mateusz

Hi Yu,

Can I set the Home/Away mode trough mqtt?

Regards,
Frans

P.S. I have a Modbus manual for the MC6, is there also a mqtt manual or will this be made?

Hello Frans.

In mqtt it is called standby: 1 no, 2 yes

For a list of available commands see this post:

HTH.

Cheers,
Mateusz

Ciao Tiziano, ci possiamo sentire in privato per alcune domanda sul termostato??

Ok va bene

come facciamo a sentirci in privato??

Please… Can I add HEAT button?
My experiment didn’t work:
NR:

{"id":"68da138e.e3b8fc","type":"mqtt in","z":"56deb452.46025c","name":"Set Mode","topic":"home/termostato/mode/set","qos":"2","datatype":"auto","broker":"99ab3ff6.4455d","x":200,"y":1380,"wires":[["2396e0a1.f33d6"]]},{"id":"2396e0a1.f33d6","type":"template","z":"56deb452.46025c","name":"","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"[{{ payload }}]","output":"str","x":500,"y":1380,"wires":[["702f8922.58b8c8"]]},{"id":"702f8922.58b8c8","type":"json","z":"56deb452.46025c","name":"","property":"payload","action":"","pretty":false,"x":650,"y":1380,"wires":[["1b2f80ea.a810a7"]]},{"id":"1b2f80ea.a810a7","type":"modbus-write","z":"56deb452.46025c","name":"Set Mode","showStatusActivities":false,"showErrors":false,"unitid":"","dataType":"MHoldingRegisters","adr":"9","quantity":"1","server":"36e9f5f4.01499a","emptyMsgOnFail":false,"keepMsgProperties":false,"x":820,"y":1380,"wires":[[],[]]},{"id":"99ab3ff6.4455d","type":"mqtt-broker","name":"MQTT HA Server","broker":"192.168.10.17","port":"1883","clientid":"","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"36e9f5f4.01499a","type":"modbus-client","name":"Termostato","clienttype":"tcp","bufferCommands":true,"stateLogEnabled":false,"queueLogEnabled":false,"tcpHost":"192.168.10.75","tcpPort":"502","tcpType":"DEFAULT","serialPort":"/dev/ttyUSB","serialType":"RTU-BUFFERD","serialBaudrate":"9600","serialDatabits":"8","serialStopbits":"1","serialParity":"none","serialConnectionDelay":"100","unit_id":1,"commandDelay":1,"clientTimeout":1000,"reconnectOnTimeout":true,"reconnectTimeout":2000,"parallelUnitIdsAllowed":true}]

in config

switch: 
  - platform: mqtt
    name: "Termostato Heat"
    state_topic: "home/termostato/mode/state"
    command_topic: "home/termostato/mode/set"
    payload_on: "1"
    payload_off: "0"
    qos: 0
    retain: true
    icon: mdi:radiator 

dashboard:

      - entity: switch.termostato_heat
        hold_action:
          action: more-info
        show_icon: true
        show_name: true
        show_state: true
        tap_action:
          action: toggle
        type: button
        name: Heat

Hello @YuQiang.

Is there a version of mqtt firmware that has floor temperature reporting support?

Thanks.

Cheers,
Mateusz