Skip to content
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

Mi Smart Baseboard Heater E (zhimi.heater.ma3) #839

Closed
fineemb opened this issue Oct 19, 2020 · 5 comments · Fixed by #1581
Closed

Mi Smart Baseboard Heater E (zhimi.heater.ma3) #839

fineemb opened this issue Oct 19, 2020 · 5 comments · Fixed by #1581

Comments

@fineemb
Copy link

fineemb commented Oct 19, 2020

Before submitting a new request, use the search to see if there is an existing issue for the device.

Device information:
https://cdn.cnbj0.fds.api.mi-img.com/b2c-shopapi-pms/pms_1600695132.81241311.jpg

  • Name(s) of the device: Mi Smart Baseboard Heater E
  • Link:

Use miiocli device --ip <ip address> --token <token>.

  • Model: zhimi.heater.ma3
  • Hardware version: esp32
  • Firmware version: 2.1.3

Additional context
http://miot-spec.org/miot-spec-v2/instance?type=urn:miot-spec-v2:device:heater:0000A01A:zhimi-ma3:1

# Countdown
miiocli device --ip <ip address> --token <token> raw_command set_properties '[{"did":"317189583","value":36000,"siid":3,"piid":1}]'    

# Switch Status
miiocli device --ip <ip address> --token <token> raw_command set_properties '[{"did":"317189583","value":True,"siid":2,"piid":1}]'  

# Target Temperature
miiocli device --ip <ip address> --token <token> raw_command set_properties '[{"did":"317189583","value":22,"siid":2,"piid":5}]' 

# Mode
miiocli device --ip <ip address> --token <token> raw_command set_properties '[{"did":"317189583","value":1,"siid":2,"piid":6}]' 

# Physical Control Locked
miiocli device --ip <ip address> --token <token> raw_command set_properties '[{"did":"317189583","value":True,"siid":5,"piid":1}]'

# Alarm
miiocli device --ip <ip address> --token <token> raw_command set_properties '[{"did":"317189583","value":True,"siid":6,"piid":1}]'

# Indicator Light
miiocli device --ip <ip address> --token <token> raw_command set_properties '[{"did":"317189583","value":0,"siid":7,"piid":3}]' 

Return:  [{'did': '317189583', 'siid': siid , 'piid': piid, 'code': 0}]

# Get Switch Status
miiocli device --ip <ip address> --token <token> raw_command get_properties '[{"piid":1,"siid":2,"did":"317189583"}]' 

# Get fault
miiocli device --ip <ip address> --token <token> raw_command get_properties '[{"piid":2,"siid":2,"did":"317189583"}]' 

# Get Target Temperature
miiocli device --ip <ip address> --token <token> raw_command get_properties '[{"piid":5,"siid":2,"did":"317189583"}]' 

# Get Mode
miiocli device --ip <ip address> --token <token> raw_command get_properties '[{"piid":6,"siid":2,"did":"317189583"}]' 

# Get Environment
miiocli device --ip <ip address> --token <token> raw_command get_properties '[{"piid":1,"siid":3,"did":"317189583"}]' 

# Get Temperature
miiocli device --ip <ip address> --token <token> raw_command get_properties '[{"piid":7,"siid":4,"did":"317189583"}]' 

# Get Physical Control Locked stauts 
miiocli device --ip <ip address> --token <token> raw_command get_properties '[{"piid":1,"siid":5,"did":"317189583"}]' 

# Get Alarm stauts 
miiocli device --ip <ip address> --token <token> raw_command get_properties '[{"piid":1,"siid":6,"did":"317189583"}]' 

# Get Alarm stauts 
miiocli device --ip <ip address> --token <token> raw_command get_properties '[{"piid":1,"siid":6,"did":"317189583"}]'

Return: [{'did': '317189583', 'siid': siid, 'piid': piid, 'code': 0, 'value': value}] 
@syssi
Copy link
Collaborator

syssi commented Oct 19, 2020

Could you provide a response per command, too?

@fineemb
Copy link
Author

fineemb commented Oct 19, 2020

Could you provide a response per command, too?

What is the role of 'did'?
Send commands without 'did' can succeed

set_properties response

 [{'did': '317189583', 'siid': siid , 'piid': piid, 'code': 0}]

'code': success 0 | err -4001 -4002 .....

get_properties response

 [{'did': '317189583', 'siid': siid, 'piid': piid, 'code': 0, 'value': value}] 

'code': success 0 | err -4001 -4002 .....

Countdown

get_properties '[{"did":"317189583","siid":3,"piid":1}]'
response : [{'did': '317189583', 'siid': 3, 'piid': 1, 'code': 0, 'value': 3600}]

set_properties '[{"did":"317189583","value":36000,"siid":3,"piid":1}]'
response : [{'did': '317189583', 'siid': 3, 'piid': 1, 'code': 0}]

value: 0-43200 (unit: seconds)

Switch Status

set_properties '[{"did":"317189583","value":True,"siid":2,"piid":1}]'
get_properties '[{"did":"317189583","siid":2,"piid":1}]'
value: bool

Target Temperature

set_properties '[{"did":"317189583","value":22,"siid":2,"piid":5}]'
get_properties '[{"did":"317189583","siid":2,"piid":5}]'
value-range: [16-28] (unit: celsius , precision: 1)

Mode

set_properties '[{"did":"317189583","value":1,"siid":2,"piid":6}]'
get_properties '[{"did":"317189583","siid":2,"piid":6}]'
value-list: [{"value": 0, "description": "Auto"}, {"value": 1,"description": "LL Mode"}, {"value": 2,"description": "HH Mode"}]

Physical Control Locked

set_properties '[{"did":"317189583","value":True,"siid":5,"piid":1}]'
get_properties '[{"did":"317189583","siid":5,"piid":1}]'
value: bool

Alarm

set_properties '[{"did":"317189583","value":True,"siid":6,"piid":1}]'
get_properties '[{"did":"317189583","siid":6,"piid":1}]'
value: bool

Indicator Light

set_properties '[{"did":"317189583","value":0,"siid":7,"piid":3}]'
get_properties '[{"did":"317189583","siid":7,"piid":3}]'
value-list: [{"value": 0, "description": "Bright"}, {"value": 1,"description": "Dark"}, {"value": 2,"description": "Extinguished"}]

fault

get_properties '[{"piid":2,"siid":2,"did":"317189583"}]'
value-list:

[{"value": 0,"description": "No Error"}, {"value": 1,"description": "NTC  Connect Error"}, {"value": 2,"description": "High Temperature Alarm"}, {"value": 3,"description": "EEPROM Error"}, {"value": 4,"description": "Multi Errors"}]

Environment

get_properties '[{"piid":7,"siid":4,"did":"317189583"}]'
value-range: [-30-100], precision: 0.1

@fineemb
Copy link
Author

fineemb commented Oct 19, 2020

get_properties

{
    "cmd": "miio",
    "method": "get_properties",
    "value": [
        {
            "piid": 1,
            "siid": 2
        },
        {
            "piid": 2,
            "siid": 2
        },
        {
            "piid": 5,
            "siid": 2
        },
        {
            "piid": 6,
            "siid": 2
        },
        {
            "piid": 1,
            "siid": 3
        },
        {
            "piid": 3,
            "siid": 7
        },
        {
            "piid": 7,
            "siid": 4
        },
        {
            "piid": 1,
            "siid": 5
        },
        {
            "piid": 1,
            "siid": 6
        }
    ]
}

response

[{"did":"317189583","siid":2,"piid":1,"code":0,"value":false},
{"did":"317189583","siid":2,"piid":2,"code":0,"value":0},
{"did":"317189583","siid":2,"piid":5,"code":0,"value":22},
{"did":"317189583","siid":2,"piid":6,"code":0,"value":1},
{"did":"317189583","siid":3,"piid":1,"code":0,"value":0},
{"did":"317189583","siid":7,"piid":3,"code":0,"value":0},
{"did":"317189583","siid":4,"piid":7,"code":0,"value":22},
{"did":"317189583","siid":5,"piid":1,"code":0,"value":false},
{"did":"317189583","siid":6,"piid":1,"code":0,"value":false}]

@rytilahti rytilahti added the miot label Oct 24, 2020
@al-one
Copy link
Contributor

al-one commented Feb 25, 2021

@rytilahti
Copy link
Owner

This might work already with miiocli heatermiot, have you tried it out?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants