Closed chrispazz closed 4 years ago
Hi! Try to wait, sometimes the IR does not respond, if it does not work - restart the device and the plugin.
It gives me the error almost immediately...without waiting for IR codes....
The IR does not start blinking...
Make sure the IR is connected, in log line "Connected to Chuangmi IR device..."
2019-06-30 12:47:54.304 (Xiaomi IR) Debug logging mask set to: PYTHON PLUGIN QUEUE IMAGE DEVICE CONNECTION MESSAGE ALL 2019-06-30 12:47:54.305 (Xiaomi IR) Loading config from /home/pi/domoticz/plugins/Chuangmi/Chuangmi20.json 2019-06-30 12:47:54.305 (Xiaomi IR) Total chuangmi devices: 1 2019-06-30 12:47:54.305 (Xiaomi IR) 'DomoticzHash':'b38b49e5' 2019-06-30 12:47:54.305 (Xiaomi IR) 'Mode3':'034a973b' 2019-06-30 12:47:54.305 (Xiaomi IR) 'Author':'Whilser' 2019-06-30 12:47:54.305 (Xiaomi IR) 'DomoticzBuildTime':'2019-05-09 13:04:08' 2019-06-30 12:47:54.305 (Xiaomi IR) 'Key':'Chuangmi' 2019-06-30 12:47:54.305 (Xiaomi IR) 'StartupFolder':'/home/pi/domoticz/' 2019-06-30 12:47:54.305 (Xiaomi IR) 'Database':'/home/pi/domoticz/domoticz.db' 2019-06-30 12:47:54.305 (Xiaomi IR) 'UserDataFolder':'/home/pi/domoticz/' 2019-06-30 12:47:54.305 (Xiaomi IR) 'Mode2':'Debug' 2019-06-30 12:47:54.305 (Xiaomi IR) 'Language':'en' 2019-06-30 12:47:54.306 (Xiaomi IR) 'Name':'Xiaomi IR' 2019-06-30 12:47:54.306 (Xiaomi IR) 'Port':'0' 2019-06-30 12:47:54.306 (Xiaomi IR) 'HomeFolder':'/home/pi/domoticz/plugins/Chuangmi/' 2019-06-30 12:47:54.306 (Xiaomi IR) 'DomoticzVersion':'4.10717' 2019-06-30 12:47:54.306 (Xiaomi IR) 'HardwareID':'20' 2019-06-30 12:47:54.306 (Xiaomi IR) 'Version':'0.2.0' 2019-06-30 12:47:54.306 (Xiaomi IR) Device count: 1 2019-06-30 12:47:54.306 (Xiaomi IR) Device: 1 - ID: 362, Name: 'Xiaomi IR - Command', nValue: 1, sValue: '20' 2019-06-30 12:47:54.306 (Xiaomi IR) Device ID: '362' 2019-06-30 12:47:54.306 (Xiaomi IR) Device Name: 'Xiaomi IR - Command' 2019-06-30 12:47:54.306 (Xiaomi IR) Device nValue: 1 2019-06-30 12:47:54.306 (Xiaomi IR) Device sValue: '20' 2019-06-30 12:47:54.306 (Xiaomi IR) Device LastLevel: 20 2019-06-30 12:47:54.306 (Xiaomi IR) Device TimedOut: 0 2019-06-30 12:47:54.306 (Xiaomi IR) Loaded saved configuration. 2019-06-30 12:47:54.306 (Xiaomi IR) Attempt to connect to Chuangmi IR device with ID: 031d3472, IP address: 192.168.1.105 and token: 711d4a4067e24a7d8affd975337d6738 2019-06-30 12:47:54.603 (Xiaomi IR) 'DomoticzHash':'b38b49e5' 2019-06-30 12:47:54.603 (Xiaomi IR) 'Mode3':'034a973b' 2019-06-30 12:47:54.603 (Xiaomi IR) 'Author':'Whilser' 2019-06-30 12:47:54.603 (Xiaomi IR) 'DomoticzBuildTime':'2019-05-09 13:04:08' 2019-06-30 12:47:54.603 (Xiaomi IR) 'Key':'Chuangmi' 2019-06-30 12:47:54.603 (Xiaomi IR) 'StartupFolder':'/home/pi/domoticz/' 2019-06-30 12:47:54.603 (Xiaomi IR) 'Database':'/home/pi/domoticz/domoticz.db' 2019-06-30 12:47:54.603 (Xiaomi IR) 'UserDataFolder':'/home/pi/domoticz/' 2019-06-30 12:47:54.603 (Xiaomi IR) 'Mode2':'Debug' 2019-06-30 12:47:54.603 (Xiaomi IR) 'Language':'en' 2019-06-30 12:47:54.603 (Xiaomi IR) 'Name':'Xiaomi IR' 2019-06-30 12:47:54.603 (Xiaomi IR) 'Port':'0' 2019-06-30 12:47:54.604 (Xiaomi IR) 'HomeFolder':'/home/pi/domoticz/plugins/Chuangmi/' 2019-06-30 12:47:54.604 (Xiaomi IR) 'DomoticzVersion':'4.10717' 2019-06-30 12:47:54.604 (Xiaomi IR) 'HardwareID':'20' 2019-06-30 12:47:54.604 (Xiaomi IR) 'Version':'0.2.0' 2019-06-30 12:47:54.604 (Xiaomi IR) Device count: 1 2019-06-30 12:47:54.604 (Xiaomi IR) Device: 1 - ID: 362, Name: 'Xiaomi IR - Command', nValue: 1, sValue: '20' 2019-06-30 12:47:54.604 (Xiaomi IR) Device ID: '362' 2019-06-30 12:47:54.604 (Xiaomi IR) Device Name: 'Xiaomi IR - Command' 2019-06-30 12:47:54.604 (Xiaomi IR) Device nValue: 1 2019-06-30 12:47:54.604 (Xiaomi IR) Device sValue: '20' 2019-06-30 12:47:54.604 (Xiaomi IR) Device LastLevel: 20 2019-06-30 12:47:54.604 (Xiaomi IR) Device TimedOut: 0 2019-06-30 12:47:54.604 (Xiaomi IR) Pushing 'PollIntervalDirective' on to queue 2019-06-30 12:47:54.604 (Xiaomi IR) Processing 'PollIntervalDirective' message 2019-06-30 12:47:54.604 (Xiaomi IR) Heartbeat interval set to: 20. 2019-06-30 12:47:54.851 (RaspBox) General/kWh (EV KWH Meter) 2019-06-30 12:47:54.301 Status: (Xiaomi IR) Entering work loop. 2019-06-30 12:47:54.302 Status: (Xiaomi IR) Initialized version 0.2.0, author 'Whilser'
is it connected? TY
I think so
However when I click LEARN, I receive:
2019-06-30 12:53:35.262 Status: User: admin initiated a switch command (362/Xiaomi IR - Command/Set Level) 2019-06-30 12:53:35.318 Error: (Xiaomi IR) Xiaomi IR with ID 034a973b is not responding, check power/network connection. Error: <class 'miio.exceptions.DeviceError'> 2019-06-30 12:53:35.319 Error: (Xiaomi IR) No IR command received!
immediately.... :(
Ok, I resolved.....when changing the device address, the plugin does not update Chuangmi20.json so it will keep the old values. I edited it by hand and now it works ok. :)
Is it possible to link more IR commands to a single switch? I have two different commands to switch the climate on and off and I will like to have a single switch with 2 different on/off commands....
Thank you for your work!
OK, I'll fix it.
Is it possible to link more IR commands to a single switch?
Of course, Reset Level -> Learn -> Test -> Save -> Learn -> Test -> Save -> Create
will create a switch with different on / off commands.
Great! It works!
Hello!
I am trying your plugin but I get the following error:
Xiaomi IR with ID 034a973b is not responding, check power/network connection. Error: <class 'miio.exceptions.DeviceError'>
I have correctly discovered my IR device and I got the correct device id....
Thank you