Hi,
parameter refreshing does not work for me (No Response error as some people reported earlier). Token seems to be fine, because commands (power on and off) are working fine
openhab> log:tail org.openhab.binding.miio
23:00:50.771 [DEBUG] [org.openhab.binding.miio ] - BundleEvent [unknown:512] - org.openhab.binding.miio
23:00:50.777 [DEBUG] [org.openhab.binding.miio ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.core.thing.binding.ThingHandlerFactory}={component.name=org.openhab.binding.miio.internal.MiIoHandlerFactory, component.id=19, service.id=122, service.bundleid=223, service.scope=bundle} - org.openhab.binding.miio
23:00:50.780 [DEBUG] [org.openhab.binding.miio ] - BundleEvent STARTING - org.openhab.binding.miio
23:00:50.781 [DEBUG] [org.openhab.binding.miio ] - BundleEvent STARTED - org.openhab.binding.miio
23:00:50.787 [DEBUG] [org.openhab.binding.miio ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.config.discovery.DiscoveryService}={component.name=org.openhab.binding.miio.internal.discovery.MiIoDiscovery, component.id=20, service.id=123, service.bundleid=223, service.scope=bundle} - org.openhab.binding.miio
23:00:50.795 [DEBUG] [iio.internal.discovery.MiIoDiscovery] - Start Xiaomi Mi IO background discovery
23:00:50.799 [DEBUG] [org.openhab.binding.miio ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.io.transport.mdns.discovery.MDNSDiscoveryParticipant}={component.name=org.openhab.binding.miio.internal.discovery, component.id=21, service.id=125, service.bundleid=223, service.scope=bundle} - org.openhab.binding.miio
23:00:50.815 [DEBUG] [iio.internal.discovery.MiIoDiscovery] - Staring discovery receiver thread for socket on port 32860
23:00:53.796 [DEBUG] [l.discovery.MiIoDiscoveryParticipant] - mDNS zhimi-airpurifier-m1 identified as thingtype miio:basic
23:00:53.797 [DEBUG] [l.discovery.MiIoDiscoveryParticipant] - mDNS zhimi-airpurifier-m1 identified as thingtype 03A29C75
23:00:53.808 [DEBUG] [l.discovery.MiIoDiscoveryParticipant] - mDNS zhimi-airpurifier-m1 identified as thingtype miio:basic
23:00:53.808 [DEBUG] [l.discovery.MiIoDiscoveryParticipant] - mDNS zhimi-airpurifier-m1 identified as thingtype 03A29C75
23:00:53.811 [DEBUG] [l.discovery.MiIoDiscoveryParticipant] - Mi IO mDNS Discovery found miio:basic:03A29C75 with address '192.168.1.229:54321' name 'zhimi-airpurifier-m1_miio60988533'
23:00:58.440 [DEBUG] [ing.miio.handler.MiIoAbstractHandler] - Initializing Mi IO device handler 'miio:basic:03A29C75' with thingType miio:basic
23:00:58.458 [DEBUG] [ing.miio.handler.MiIoAbstractHandler] - Polling job scheduled to run every 30 sec. for 'miio:basic:03A29C75'
23:00:58.463 [DEBUG] [inding.miio.handler.MiIoBasicHandler] - Refreshing miio:basic:03A29C75:power
23:00:58.466 [DEBUG] [inding.miio.handler.MiIoBasicHandler] - Refreshing miio:basic:03A29C75:temperature
23:00:59.351 [DEBUG] [l.discovery.MiIoDiscoveryParticipant] - mDNS zhimi-airpurifier-m1 identified as thingtype miio:basic
23:00:59.351 [DEBUG] [l.discovery.MiIoDiscoveryParticipant] - mDNS zhimi-airpurifier-m1 identified as thingtype 03A29C75
23:00:59.352 [DEBUG] [l.discovery.MiIoDiscoveryParticipant] - Mi IO mDNS Discovery found miio:basic:03A29C75 with address '192.168.1.229:54321' name 'zhimi-airpurifier-m1_miio60988533'
23:00:59.557 [DEBUG] [nal.transport.MiIoAsyncCommunication] - Starting Mi IO MessageSenderThread
23:01:08.458 [DEBUG] [inding.miio.handler.MiIoBasicHandler] - Periodic update for 'miio:basic:03A29C75' (miio:basic)
23:01:08.917 [DEBUG] [inding.miio.handler.MiIoBasicHandler] - Building Channel Structure for miio:basic:03A29C75 - Model: zhimi.airpurifier.m1
23:01:08.923 [DEBUG] [inding.miio.handler.MiIoBasicHandler] - Using device database: /database/zhimi.airpurifier.m1.json for device zhimi.airpurifier.m1
23:01:08.948 [DEBUG] [inding.miio.handler.MiIoBasicHandler] - Current thing channels miio:basic:03A29C75:network#ssid, type: miio:ssid
23:01:08.949 [DEBUG] [inding.miio.handler.MiIoBasicHandler] - Current thing channels miio:basic:03A29C75:network#bssid, type: miio:bssid
23:01:08.950 [DEBUG] [inding.miio.handler.MiIoBasicHandler] - Current thing channels miio:basic:03A29C75:network#rssi, type: miio:rssi
23:01:08.950 [DEBUG] [inding.miio.handler.MiIoBasicHandler] - Current thing channels miio:basic:03A29C75:network#life, type: miio:life
23:01:08.950 [DEBUG] [inding.miio.handler.MiIoBasicHandler] - Current thing channels miio:basic:03A29C75:actions#commands, type: miio:commands
23:01:08.951 [DEBUG] [inding.miio.handler.MiIoBasicHandler] - Current thing channels miio:basic:03A29C75:power, type: miio:power
23:01:08.952 [DEBUG] [inding.miio.handler.MiIoBasicHandler] - Current thing channels miio:basic:03A29C75:mode, type: miio:mode
23:01:08.954 [DEBUG] [inding.miio.handler.MiIoBasicHandler] - Current thing channels miio:basic:03A29C75:humidity, type: miio:humidity
23:01:08.955 [DEBUG] [inding.miio.handler.MiIoBasicHandler] - Current thing channels miio:basic:03A29C75:aqi, type: miio:aqi
23:01:08.956 [DEBUG] [inding.miio.handler.MiIoBasicHandler] - Current thing channels miio:basic:03A29C75:averageaqi, type: miio:averageaqi
23:01:08.957 [DEBUG] [inding.miio.handler.MiIoBasicHandler] - Current thing channels miio:basic:03A29C75:led, type: miio:led
23:01:08.958 [DEBUG] [inding.miio.handler.MiIoBasicHandler] - Current thing channels miio:basic:03A29C75:buzzer, type: miio:buzzer
23:01:08.959 [DEBUG] [inding.miio.handler.MiIoBasicHandler] - Current thing channels miio:basic:03A29C75:filtermaxlife, type: miio:filtermaxlife
23:01:08.971 [DEBUG] [inding.miio.handler.MiIoBasicHandler] - Current thing channels miio:basic:03A29C75:filterhours, type: miio:filterhours
23:01:08.972 [DEBUG] [inding.miio.handler.MiIoBasicHandler] - Current thing channels miio:basic:03A29C75:usedhours, type: miio:usedhours
23:01:08.973 [DEBUG] [inding.miio.handler.MiIoBasicHandler] - Current thing channels miio:basic:03A29C75:motorspeed, type: miio:motorspeed
23:01:08.974 [DEBUG] [inding.miio.handler.MiIoBasicHandler] - Current thing channels miio:basic:03A29C75:filterlife, type: miio:filterlife
23:01:08.981 [DEBUG] [inding.miio.handler.MiIoBasicHandler] - Current thing channels miio:basic:03A29C75:favoritelevel, type: miio:favoritelevel
23:01:08.981 [DEBUG] [inding.miio.handler.MiIoBasicHandler] - Current thing channels miio:basic:03A29C75:temperature, type: miio:temperature
23:01:08.982 [DEBUG] [inding.miio.handler.MiIoBasicHandler] - Current thing channels miio:basic:03A29C75:purifyvolume, type: miio:purifyvolume
23:01:08.983 [DEBUG] [inding.miio.handler.MiIoBasicHandler] - Current thing channels miio:basic:03A29C75:childlock, type: miio:childlock
23:01:08.992 [DEBUG] [inding.miio.handler.MiIoBasicHandler] - properties [ Channel = power, friendlyName = Power, type = Switch, channelType = power, ChannelGroup = null, channel = power, property = power, refresh = true]
23:01:08.995 [INFO ] [inding.miio.handler.MiIoBasicHandler] - Channel 'power' for thing miio:basic:03A29C75 already exist... removing
23:01:08.997 [DEBUG] [inding.miio.handler.MiIoBasicHandler] - properties [ Channel = mode, friendlyName = Mode, type = String, channelType = mode, ChannelGroup = actions, channel = mode, property = mode, refresh = true]
23:01:08.998 [INFO ] [inding.miio.handler.MiIoBasicHandler] - Channel 'mode' for thing miio:basic:03A29C75 already exist... removing
23:01:08.999 [DEBUG] [inding.miio.handler.MiIoBasicHandler] - properties [ Channel = humidity, friendlyName = Humidity, type = Number, channelType = humidity, ChannelGroup = Status, channel = humidity, property = humidity, refresh = true]
23:01:09.000 [INFO ] [inding.miio.handler.MiIoBasicHandler] - Channel 'humidity' for thing miio:basic:03A29C75 already exist... removing
23:01:09.001 [DEBUG] [inding.miio.handler.MiIoBasicHandler] - properties [ Channel = aqi, friendlyName = Air Quality Index, type = Number, channelType = aqi, ChannelGroup = Status, channel = aqi, property = aqi, refresh = true]
23:01:09.002 [INFO ] [inding.miio.handler.MiIoBasicHandler] - Channel 'aqi' for thing miio:basic:03A29C75 already exist... removing
23:01:09.002 [DEBUG] [inding.miio.handler.MiIoBasicHandler] - properties [ Channel = averageaqi, friendlyName = Average Air Quality Index, type = Number, channelType = averageaqi, ChannelGroup = Status, channel = averageaqi, property = average_aqi, refresh = true]
23:01:09.003 [INFO ] [inding.miio.handler.MiIoBasicHandler] - Channel 'averageaqi' for thing miio:basic:03A29C75 already exist... removing
23:01:09.004 [DEBUG] [inding.miio.handler.MiIoBasicHandler] - properties [ Channel = led, friendlyName = Led Status, type = Switch, channelType = led, ChannelGroup = actions, channel = led, property = led, refresh = true]
23:01:09.005 [INFO ] [inding.miio.handler.MiIoBasicHandler] - Channel 'led' for thing miio:basic:03A29C75 already exist... removing
23:01:09.005 [DEBUG] [inding.miio.handler.MiIoBasicHandler] - properties [ Channel = buzzer, friendlyName = Buzzer Status, type = Switch, channelType = buzzer, ChannelGroup = actions, channel = buzzer, property = buzzer, refresh = true]
23:01:09.006 [INFO ] [inding.miio.handler.MiIoBasicHandler] - Channel 'buzzer' for thing miio:basic:03A29C75 already exist... removing
23:01:09.007 [DEBUG] [inding.miio.handler.MiIoBasicHandler] - properties [ Channel = filtermaxlife, friendlyName = Filter Max Life, type = Number, channelType = filtermaxlife, ChannelGroup = Status, channel = filtermaxlife, property = f1_hour, refresh = true]
23:01:09.007 [INFO ] [inding.miio.handler.MiIoBasicHandler] - Channel 'filtermaxlife' for thing miio:basic:03A29C75 already exist... removing
23:01:09.008 [DEBUG] [inding.miio.handler.MiIoBasicHandler] - properties [ Channel = filterhours, friendlyName = Filter Hours used, type = Number, channelType = filterhours, ChannelGroup = Status, channel = filterhours, property = f1_hour_used, refresh = true]
23:01:09.009 [INFO ] [inding.miio.handler.MiIoBasicHandler] - Channel 'filterhours' for thing miio:basic:03A29C75 already exist... removing
23:01:09.009 [DEBUG] [inding.miio.handler.MiIoBasicHandler] - properties [ Channel = usedhours, friendlyName = Run Time, type = Number, channelType = usedhours, ChannelGroup = Status, channel = usedhours, property = use_time, refresh = true]
23:01:09.010 [INFO ] [inding.miio.handler.MiIoBasicHandler] - Channel 'usedhours' for thing miio:basic:03A29C75 already exist... removing
23:01:09.010 [DEBUG] [inding.miio.handler.MiIoBasicHandler] - properties [ Channel = motorspeed, friendlyName = Motor Speed, type = Number, channelType = motorspeed, ChannelGroup = Status, channel = motorspeed, property = motor1_speed, refresh = true]
23:01:09.011 [INFO ] [inding.miio.handler.MiIoBasicHandler] - Channel 'motorspeed' for thing miio:basic:03A29C75 already exist... removing
23:01:09.011 [DEBUG] [inding.miio.handler.MiIoBasicHandler] - properties [ Channel = filterlife, friendlyName = Filter Life, type = Number, channelType = filterlife, ChannelGroup = Status, channel = filterlife, property = filter1_life, refresh = true]
23:01:09.011 [INFO ] [inding.miio.handler.MiIoBasicHandler] - Channel 'filterlife' for thing miio:basic:03A29C75 already exist... removing
23:01:09.012 [DEBUG] [inding.miio.handler.MiIoBasicHandler] - properties [ Channel = favoritelevel, friendlyName = Favorite Level, type = Number, channelType = favoritelevel, ChannelGroup = Status, channel = favoritelevel, property = favorite_level, refresh = true]
23:01:09.013 [INFO ] [inding.miio.handler.MiIoBasicHandler] - Channel 'favoritelevel' for thing miio:basic:03A29C75 already exist... removing
23:01:09.013 [DEBUG] [inding.miio.handler.MiIoBasicHandler] - properties [ Channel = temperature, friendlyName = Temperature, type = Number, channelType = temperature, ChannelGroup = Status, channel = temperature, property = temp_dec, refresh = true]
23:01:09.013 [INFO ] [inding.miio.handler.MiIoBasicHandler] - Channel 'temperature' for thing miio:basic:03A29C75 already exist... removing
23:01:09.013 [DEBUG] [inding.miio.handler.MiIoBasicHandler] - properties [ Channel = purifyvolume, friendlyName = Purivied Volume, type = Number, channelType = purifyvolume, ChannelGroup = Status, channel = purifyvolume, property = purify_volume, refresh = true]
23:01:09.013 [INFO ] [inding.miio.handler.MiIoBasicHandler] - Channel 'purifyvolume' for thing miio:basic:03A29C75 already exist... removing
23:01:09.014 [DEBUG] [inding.miio.handler.MiIoBasicHandler] - properties [ Channel = childlock, friendlyName = Child Lock, type = Switch, channelType = childlock, ChannelGroup = Status, channel = childlock, property = child_lock, refresh = true]
23:01:09.014 [INFO ] [inding.miio.handler.MiIoBasicHandler] - Channel 'childlock' for thing miio:basic:03A29C75 already exist... removing
23:01:09.014 [DEBUG] [inding.miio.handler.MiIoBasicHandler] - Current thing channels added: 16
23:01:09.050 [DEBUG] [nal.transport.MiIoAsyncCommunication] - Command added to Queue {"id":1,"method":"miIO.info","params":[]} -> 192.168.1.229 (Device: 03A29C75 token: 7FBD5___HIDDEN___4379CD0C5 Queue: 1)
23:01:19.481 [DEBUG] [nal.transport.MiIoAsyncCommunication] - Communication error for Mi IO device at 192.168.1.229: Receive timed out
23:01:19.482 [DEBUG] [nal.transport.MiIoAsyncCommunication] - No response from device 03A29C75 at 192.168.1.229 for command {"id":1,"method":"miIO.info","params":[]}.
23:01:19.482 [DEBUG] [ing.miio.handler.MiIoAbstractHandler] - Received response for 03A29C75 type: MIIO_INFO, result: null, fullresponse: {"error":"No Response"}
23:01:19.483 [DEBUG] [ing.miio.handler.MiIoAbstractHandler] - Error received: "No Response"
23:01:40.148 [DEBUG] [inding.miio.handler.MiIoBasicHandler] - Locating action for channel power:ON
23:01:40.149 [DEBUG] [inding.miio.handler.MiIoBasicHandler] - sending command set_power["on"]
23:01:40.149 [DEBUG] [nal.transport.MiIoAsyncCommunication] - Command added to Queue {"id":2,"method":"set_power","params":["on"]} -> 192.168.1.229 (Device: 03A29C75 token: 7FBD5___HIDDEN___4379CD0C5 Queue: 1)
23:01:40.624 [DEBUG] [ing.miio.handler.MiIoAbstractHandler] - Received response for 03A29C75 type: SET_POWER, result: ["ok"], fullresponse: {"result":["ok"],"id":2}
23:04:04.549 [DEBUG] [inding.miio.handler.MiIoBasicHandler] - Locating action for channel power:ON
23:04:04.550 [DEBUG] [inding.miio.handler.MiIoBasicHandler] - sending command set_power["on"]
23:04:04.550 [DEBUG] [nal.transport.MiIoAsyncCommunication] - Command added to Queue {"id":3,"method":"set_power","params":["on"]} -> 192.168.1.229 (Device: 03A29C75 token: 7FBD5___HIDDEN___4379CD0C5 Queue: 1)
23:04:04.637 [DEBUG] [ing.miio.handler.MiIoAbstractHandler] - Received response for 03A29C75 type: SET_POWER, result: ["ok"], fullresponse: {"result":["ok"],"id":3}
I also noticed that there is only one query sent to device (id:1) - there are no mo tries (should be every 30 sec - see log above). I have the latest version of bindings - build today
openhab> bundle:list | grep Xiaomi
223 | Active | 80 | 2.2.0.201711012043 | Xiaomi Mi IO Binding
any help please?
Regards,
Adam