MC6 Thermostat

sorry, yes, the topic is updData , that 5002xx is this MC6 mac address.

the data is encrypted with AES256, we will upload a new firmware which you can set the key or select none-encryption next week.


attached picture is the mqtt data list

Hi Paraviod

Yes, if first unit firmware is 3.xx are new touch hardware.

Domaray: Pleaseā€¦ What is wrong in my HA? :frowning:
Didnā€™t work Away and Off button.
Can you help me please?
termostato

Hi
when I connect the jfasher it gives me this error, what can it be?
I have rechecked the wiring several times and it is fine

Hello.
Are there any updates on this? Iā€™m looking for old/new touch firmware.

Cheers,
Mateusz

Hi MateusZ

Please check this download link: https://we.tl/t-RBL1C3YUif
To modify the MQTT server please operate as below:

  1. go to the Lock screen, input the password 1976, click the button - Lock
  2. there are two buttons in the new screen
    MQTT server - you can input the new server name
  3. please note this firmware is only for customization cloud server, it could not connect to our cloud server.
    4) MQTT cloud server the topic is updData/cc02578dx2dd , this Macaddress is the thermostat ID which is the unique Mac adress.

Regards
Yu

1 Like

Hi MateusZ

This link is the MQTT firmware for common MC6, it connects to our MC6 cloud server , the data is encoded by AES128, user could use our App - Myhouse Pro to operate this mqtt MC6.

https://we.tl/t-znn50ycJOi

Regards
Yu

Please check this download link: https://we.tl/t-RBL1C3YUif
To modify the MQTT server please operate as below:

  1. go to the Lock screen, input the password 1976, click the button - Lock
  2. there are two buttons in the new screen
    MQTT server - you can input the new server name
  3. please note this firmware is only for customization cloud server, it could not connect to our cloud server.
  1. MQTT cloud server the topic is updData/cc02578dx2dd , this Macaddress is the thermostat ID which is the unique Mac adress.

Regards
Yu

Hello Yu.
Thank You very much for your prompt replay. I do really appreciate it! :slight_smile:
Thanks for the instructions as well.

Have a nice day!

Cheers,
Mateusz

Pleaseā€¦ anybody know why my AWAY and ON/OFF button didnā€™t work?

Hi, sorry for the error in he blog. I have updated with the correct code. Here you are:

switch: 
  - platform: mqtt
    name: "Termostato On/Off"
    state_topic: "home/termostato/status/state"
    command_topic: "home/termostato/status/set"
    value_template: "{{ value_json }}"
    payload_on: "1"
    payload_off: "0"
    qos: 0
    retain: true
    icon: mdi:power
  - platform: mqtt
    name: "Termostato Away"
    state_topic: "home/termostato/away/state"
    command_topic: "home/termostato/away/set"
    payload_on: "1"
    payload_off: "0"
    qos: 0
    retain: true
    icon: mdi:login

Hope it works now

1 Like

Domaray Thank you very much!!!

//History is same problem. :slight_smile:
for history:

sensor:
  - platform: mqtt
    name: "termostato_mode"
    state_topic: "home/termostato/mode/state"
    value_template: "{{ value_json }}"

Do you mean this?

sensor:
  - platform: mqtt
    name: "termostato_mode"
    state_topic: "home/termostato/mode/state" 
    
  - platform: mqtt
    name: "termostato_away_temp"
    state_topic: "home/termostato/away_temperature/state"

1 Like

Domaray thankā€™s. Now is fully work.

Is there any way I can add +/- buttons to change the temperature?

@Domaray thank you for your blog post about MC6 and HA!

I have a question, does anyone have issue with connectivity ? Or is there a way to debug what is going on if integration is not working as it should?

You can see history how it behaves, last data is from 4 hours ago, previously from 9 and 16 etc. but Iā€™m trying to change the temperature, turn it on/off, set to away, basically everything that integration offers, without any change on the MC6 and without any change in history

How it looks like when I change temperature
https://gifyu.com/image/UAly

This is my card configuration (taken from blog)

cards:
  - entity: climate.salon
    type: thermostat
    name: Apartment
  - cards:
      - entity: switch.termostato_on_off
        name: On/Off
        hold_action:
          action: more-info
        show_icon: true
        show_name: true
        show_state: true
        tap_action:
          action: toggle
        type: button
      - entity: switch.termostato_away
        hold_action:
          action: more-info
        show_icon: true
        show_name: true
        show_state: true
        tap_action:
          action: toggle
        type: button
        name: Away
    type: horizontal-stack
  - type: entities
    entities:
      - entity: input_number.away_temperature
        icon: 'mdi:thermometer'
        name: Temp. away
    state_color: true
type: vertical-stack

Here are configuration and automation scripts


# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:

# Text to speech
tts:
  - platform: google_translate

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml


climate:
  - platform: mqtt
    name: SalĆ³n
    modes:
      - "off"
      - "heat"
      - "auto"
    temperature_command_topic: "home/termostato/temperature_setpoint/set"
    temperature_state_topic: "home/termostato/temperature_setpoint/state"
    temperature_state_template: "{{ value_json|float / 10  }}"
    current_temperature_topic: "home/termostato/current_temperature/state"
    current_temperature_template: "{{ value_json|float / 10  }}"
    mode_state_topic: "home/termostato/mode/state"
    temperature_unit: c
    max_temp: 30
    min_temp: 15
    temp_step: 0.5
    retain: 1

switch: 
  - platform: mqtt
    name: "Termostato On/Off"
    state_topic: "home/termostato/status/state"
    command_topic: "home/termostato/status/set"
    value_template: "{{ value_json }}"
    payload_on: "1"
    payload_off: "0"
    qos: 0
    retain: true
    icon: mdi:power
  - platform: mqtt
    name: "Termostato Away"
    state_topic: "home/termostato/away/state"
    command_topic: "home/termostato/away/set"
    payload_on: "1"
    payload_off: "0"
    qos: 0
    retain: true
    icon: mdi:login

sensor:
  - platform: mqtt
    name: "termostato_mode"
    state_topic: "home/termostato/mode/state" 
    
  - platform: mqtt
    name: "termostato_away_temp"
    state_topic: "home/termostato/away_temperature/state"

  - platform: history_stats
    name: Termostato_history_today
    entity_id: sensor.termostato_mode
    state: 'heat'
    type: time
    start: '{{ now().replace(hour=0, minute=0, second=0) }}'
    end: '{{ now() }}'

  - platform: history_stats
    name: Termostato_history_24h
    entity_id: sensor.termostato_mode
    state: 'heat'
    type: time
    end: '{{ now() }}'
    duration:
      hours: 24
    
  - platform: history_stats
    name: Termostato_history_week
    entity_id: sensor.termostato_mode
    state: 'heat'
    type: time
    start: '{{ as_timestamp( now().replace(hour=0, minute=0, second=0) ) - now().weekday() * 86400 }}'
    end: '{{ now() }}'

  - platform: history_stats
    name: Termostato_history_total
    entity_id: sensor.termostato_mode
    state: 'heat'
    type: time
    start: '{{ 0 }}'
    end: '{{ now() }}'

automation.yaml

- id: '1597530567890'
  alias: Set Away Temperature
  description: ''
  trigger:
  - entity_id: input_number.away_temperature
    platform: state
  action:
  - data_template:
      payload: '{{ [(states(''input_number.away_temperature'') | float)*10] }}'
      retain: true
      topic: home/termostato/away_temperature/set
    service: mqtt.publish
  mode: single
  
- id: '1602464759287'
  alias: Get Away temperature
  description: Set the slide to the away temperature read
  trigger:
  - platform: mqtt
    topic: home/termostato/away_temperature/state
  condition: []
  action:
  - service: input_number.set_value
    data:
      entity_id: input_number.away_temperature
      value: "{{ (trigger.payload|float)/10 }}"
  mode: single

And Node-RED
https://gifyu.com/image/UAnM

What Iā€™m seeing in logs of MQTT broker is

1612389787: New client connected from 192.168.0.20 as mqtt_583dacd3.dd2be4 (p2, c1, k60, uā€™hamqttbrokerā€™).
1612390473: Saving in-memory database to /data/mosquitto.db.
1612391335: Socket error on client 5iVhdFcOpxLRMrwpqr2sfQ, disconnecting.

Try modifying the repeating period of the READ command on your Node-RED. Is set to repeat every 10 seconds, try with 15 or even 20.

image

unfortunately it did not help. I tried both values.

Hello YuQiang Yu,

I like to try the local MQTT server firmware.
Do i understand it right that there is only one Topic updData/MacAddress ?
Or are there more topics like updData/MacAddress/temp, updData/MacAddress/settemp , ā€¦

Best regards,
Frans

Hi Frans

Yes, the current released firmware only have one Topic updData/MacAddress , we can add a new screen to modify the topic(updData/) in next firmware, the last data of topic would be always macaddress of MC6.

Regards
Yu

Hi met98,

you can try the offline programer, please check this link,

https://item.taobao.com/item.htm?spm=a1z09.2.0.0.6ab32e8dxpFjp9&id=565585985680&_u=6n0n2m0ff57