Hi all,
I bought Smartmi Smart Fan Heater model zhimi.heater.nb1( https://www.xiaomiproducts.nl/en/xiaomi ... eater.html ) and I want to integrate it into domoticz.
Has anyone managed this?
Xiaomi Smartmi Fan Heater
Moderator: leecollings
-
- Posts: 178
- Joined: Wednesday 09 January 2019 10:14
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.1
- Contact:
Xiaomi Smartmi Fan Heater
Domoticz on Raspberry Pi 4 with Zigbee2mqtt and zigbee devices (Xiaomi, Ikea,Tuya, Philips, Osram), Broadlink, Solar power Victron Energy
-
- Posts: 178
- Joined: Wednesday 09 January 2019 10:14
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.1
- Contact:
Re: Xiaomi Smartmi Fan Heater
After many hours...i find the commands for this Heater.
I used python-miio and a sh file for test.
So if anyone can use these commands to create a plugin for Domoticz for this device would be awesome.
Get info
# Get target Temp
sudo -H -u pi miiocli device --ip 192.168.x.xx --token 951xxxxxxxxxxxxx raw_command get_properties '[{"piid":5,"siid":2}]'
# Get the status (On or off where On = True and Off = False)
sudo -H -u pi miiocli device --ip 192.168.x.xx --token 951xxxxxxxxxxxxx raw_command get_properties '[{"piid":2,"siid":2}]'
# Get the heating status - Warm (1000w) or Hot (2000W) where value 1 = Hot and 2=Warm
sudo -H -u pi miiocli device --ip 192.168.x.xx --token 9abxxxxxxxxxxxxx raw_command get_properties '[{"piid":3,"siid":2}]'
#Get the oscilation status
sudo -H -u pi miiocli device --ip 192.168.x.xx --token 951xxxxxxxxxxxxx raw_command get_properties '[{"piid":4,"siid":2}]'
#Get the indicator light for leds
sudo -H -u pi miiocli device --ip 192.168.x.xx --token 951xxxxxxxxxxxxx raw_command get_properties '[{"piid":1,"siid":6}]'
#Get the child lock status
sudo -H -u pi miiocli device --ip 192.168.x.xx --token 951xxxxxxxxxxxxx raw_command get_properties '[{"piid":1,"siid":7}]'
#Get Recenter automatically status
sudo -H -u pi miiocli device --ip 192.168.x.xx --token 951xxxxxxxxxxxxx raw_command get_properties '[{"piid":3,"siid":8}]'
#Get the Constant Temp status
sudo -H -u pi miiocli device --ip 192.168.x.xx --token 951xxxxxxxxxxxxx raw_command get_properties '[{"piid":5,"siid":8}]'
#Get the notification sound status
sudo -H -u pi miiocli device --ip 192.168.x.xx --token 951xxxxxxxxxxxxx raw_command get_properties '[{"piid":1,"siid":3}]'
#Get Delayed shutdown. Value can be between 1 and 12 Hours. 0 = disable
sudo -H -u pi miiocli device --ip 192.168.x.xx --token 951xxxxxxxxxxxxx raw_command get_properties '[{"piid":1,"siid":4}]'
Send Commands
#Turn on/off (where value for On = True and Off = False)
sudo -H -u pi miiocli device --ip 192.168.x.xx --token 951xxxxxxxxxxxxx raw_command set_properties '[{"value":True,"siid":2,"piid":2}]'
# Set the target Temperature (22 in this case)
sudo -H -u pi miiocli device --ip 192.168.x.xx --token 951xxxxxxxxxxxxx raw_command set_properties '[{"value":22,"siid":2,"piid":5}]'
# Set the heating mode - Warm (1000w) or Hot (2000W) where value 1 = Hot and 2=Warm
sudo -H -u pi miiocli device --ip 192.168.x.xx --token 951xxxxxxxxxxxxx raw_command set_properties '[{"value":2,"siid":2,"piid":3}]'
#Set the Oscilation value 0 = disable, 1 = enable
sudo -H -u pi miiocli device --ip 192.168.x.xx --token 951xxxxxxxxxxxxx raw_command set_properties '[{"value":1,"siid":2,"piid":4}]'
#Set brithness for indicator leds. Value 0 = max, 1= medium, 2= disable
sudo -H -u pi miiocli device --ip 192.168.x.xx --token 951xxxxxxxxxxxxx raw_command set_properties '[{"value":1,"siid":6,"piid":1}]'
#Set child lock. Value True=enable, False=disable
sudo -H -u pi miiocli device --ip 192.168.x.xx --token 951xxxxxxxxxxxxx raw_command set_properties '[{"value":False,"siid":7,"piid":1}]'
#Set Recenter automatically . value True or False
sudo -H -u pi miiocli device --ip 192.168.x.xx --token 951xxxxxxxxxxxxx raw_command set_properties '[{"value":False,"siid":8,"piid":3}]'
#Set Constant temp. Value True or False
sudo -H -u pi miiocli device --ip 192.168.x.xx --token 951xxxxxxxxxxxxx raw_command set_properties '[{"value":True,"siid":8,"piid":5}]'
#Set notification sound. Value True or False
sudo -H -u pi miiocli device --ip 192.168.x.xx --token 951xxxxxxxxxxxxx raw_command set_properties '[{"value":True,"siid":3,"piid":1}]'
#Set Delayed shutdown. Value can be between 1 and 12 Hours. 0 = disable
sudo -H -u pi miiocli device --ip 192.168.x.xx --token 951xxxxxxxxxxxxx raw_command set_properties '[{"value":0,"siid":4,"piid":1}]'
192.168.x.xx = Ip heater, 951xxxxxxxxxxxxx = token heater
I used python-miio and a sh file for test.
So if anyone can use these commands to create a plugin for Domoticz for this device would be awesome.
Get info
# Get target Temp
sudo -H -u pi miiocli device --ip 192.168.x.xx --token 951xxxxxxxxxxxxx raw_command get_properties '[{"piid":5,"siid":2}]'
# Get the status (On or off where On = True and Off = False)
sudo -H -u pi miiocli device --ip 192.168.x.xx --token 951xxxxxxxxxxxxx raw_command get_properties '[{"piid":2,"siid":2}]'
# Get the heating status - Warm (1000w) or Hot (2000W) where value 1 = Hot and 2=Warm
sudo -H -u pi miiocli device --ip 192.168.x.xx --token 9abxxxxxxxxxxxxx raw_command get_properties '[{"piid":3,"siid":2}]'
#Get the oscilation status
sudo -H -u pi miiocli device --ip 192.168.x.xx --token 951xxxxxxxxxxxxx raw_command get_properties '[{"piid":4,"siid":2}]'
#Get the indicator light for leds
sudo -H -u pi miiocli device --ip 192.168.x.xx --token 951xxxxxxxxxxxxx raw_command get_properties '[{"piid":1,"siid":6}]'
#Get the child lock status
sudo -H -u pi miiocli device --ip 192.168.x.xx --token 951xxxxxxxxxxxxx raw_command get_properties '[{"piid":1,"siid":7}]'
#Get Recenter automatically status
sudo -H -u pi miiocli device --ip 192.168.x.xx --token 951xxxxxxxxxxxxx raw_command get_properties '[{"piid":3,"siid":8}]'
#Get the Constant Temp status
sudo -H -u pi miiocli device --ip 192.168.x.xx --token 951xxxxxxxxxxxxx raw_command get_properties '[{"piid":5,"siid":8}]'
#Get the notification sound status
sudo -H -u pi miiocli device --ip 192.168.x.xx --token 951xxxxxxxxxxxxx raw_command get_properties '[{"piid":1,"siid":3}]'
#Get Delayed shutdown. Value can be between 1 and 12 Hours. 0 = disable
sudo -H -u pi miiocli device --ip 192.168.x.xx --token 951xxxxxxxxxxxxx raw_command get_properties '[{"piid":1,"siid":4}]'
Send Commands
#Turn on/off (where value for On = True and Off = False)
sudo -H -u pi miiocli device --ip 192.168.x.xx --token 951xxxxxxxxxxxxx raw_command set_properties '[{"value":True,"siid":2,"piid":2}]'
# Set the target Temperature (22 in this case)
sudo -H -u pi miiocli device --ip 192.168.x.xx --token 951xxxxxxxxxxxxx raw_command set_properties '[{"value":22,"siid":2,"piid":5}]'
# Set the heating mode - Warm (1000w) or Hot (2000W) where value 1 = Hot and 2=Warm
sudo -H -u pi miiocli device --ip 192.168.x.xx --token 951xxxxxxxxxxxxx raw_command set_properties '[{"value":2,"siid":2,"piid":3}]'
#Set the Oscilation value 0 = disable, 1 = enable
sudo -H -u pi miiocli device --ip 192.168.x.xx --token 951xxxxxxxxxxxxx raw_command set_properties '[{"value":1,"siid":2,"piid":4}]'
#Set brithness for indicator leds. Value 0 = max, 1= medium, 2= disable
sudo -H -u pi miiocli device --ip 192.168.x.xx --token 951xxxxxxxxxxxxx raw_command set_properties '[{"value":1,"siid":6,"piid":1}]'
#Set child lock. Value True=enable, False=disable
sudo -H -u pi miiocli device --ip 192.168.x.xx --token 951xxxxxxxxxxxxx raw_command set_properties '[{"value":False,"siid":7,"piid":1}]'
#Set Recenter automatically . value True or False
sudo -H -u pi miiocli device --ip 192.168.x.xx --token 951xxxxxxxxxxxxx raw_command set_properties '[{"value":False,"siid":8,"piid":3}]'
#Set Constant temp. Value True or False
sudo -H -u pi miiocli device --ip 192.168.x.xx --token 951xxxxxxxxxxxxx raw_command set_properties '[{"value":True,"siid":8,"piid":5}]'
#Set notification sound. Value True or False
sudo -H -u pi miiocli device --ip 192.168.x.xx --token 951xxxxxxxxxxxxx raw_command set_properties '[{"value":True,"siid":3,"piid":1}]'
#Set Delayed shutdown. Value can be between 1 and 12 Hours. 0 = disable
sudo -H -u pi miiocli device --ip 192.168.x.xx --token 951xxxxxxxxxxxxx raw_command set_properties '[{"value":0,"siid":4,"piid":1}]'
192.168.x.xx = Ip heater, 951xxxxxxxxxxxxx = token heater
Domoticz on Raspberry Pi 4 with Zigbee2mqtt and zigbee devices (Xiaomi, Ikea,Tuya, Philips, Osram), Broadlink, Solar power Victron Energy
Who is online
Users browsing this forum: No registered users and 1 guest