hoobs-org / HOOBS

Build your Smart Home with HOOBS. Connect over 2,000 Accessories to your favorite Ecosystem.
https://hoobs.org
GNU General Public License v3.0
553 stars 51 forks source link

homebridge-xiaomi-fan "no answer" #770

Closed TheBassfly closed 4 years ago

TheBassfly commented 4 years ago

I just started to use the Plugin with my SmartMi Fan 2. For now, it looks like, the Plugin is working fine, but Hoods seems t interfere with the Plugin, because in HomeKit the Fan is visible with "No Answer"

Plugin name homebridge-xiaomi-fan

Please report the issue to the plugin developer The Developer is also informed, but says, that his plugin is working fine, based on the debug output.

Version 3.2.6

Did you upgrade Please let us know if you upgraded from a previous version.

Did you orginally upgrade to HOOBS 3 from HOOBS 2.1.1? Did you perform an upgrade from HOOBS 2.1.1? Some things are different.

What device are you using? Please let us know the device you are running HOOBS on.

Post your config { "server": { "port": 8080, "origin": "*", "autostart": 0, "home_setup_id": "-", "polling_seconds": 5 }, "client": { "default_route": "status", "inactive_logoff": 30, "theme": "orient-red", "locale": "-", "temp_units": "-", "country_code": "-", "postal_code": "-", "longitude": "-", "latitude": "-" }, "bridge": { "name": "HOOBS", "username": "-", "port": 51827, "pin": "-" }, "description": "This file is used for plugin configuration.", "ports": {}, "accessories": [ { "accessory": "Weather", "apikey": "-", "location": "-", "name": "OpenWeatherMap Temperature", "plugin_map": { "plugin_name": "homebridge-weather", "index": 0 } }, { "accessory": "DelaySwitch", "name": "TVSwitch", "disableSensor": true, "delay": 25000, "plugin_map": { "plugin_name": "homebridge-delay-switch", "index": 0 } }, { "accessory": "DelaySwitch", "name": "AppleSwitch", "disableSensor": true, "delay": 25000, "plugin_map": { "plugin_name": "homebridge-delay-switch", "index": 0 } }, { "accessory": "XiaomiRoborockVacuum", "plugin_map": { "plugin_name": "homebridge-xiaomi-roborock-vacuum", "index": 0 }, "name": "Roborock S50", "waterBox": false, "pause": false, "dock": true, "delay": false, "cleanword": "Reinigung", "autoroom": false, "rooms": [ { "id": 16, "name": "Gäste-WC" }, { "id": 17, "name": "Esszimmer" }, { "id": 18, "name": "Flur" }, { "id": 19, "name": "Wohnzimmer" }, { "id": 20, "name": "Küche" }, { "id": 21, "name": "Büro" }, { "id": 22, "name": "Eingang" }, { "id": 23, "name": "Hauswirtschaftsraum" } ], "ip": "192.168.2.21", "token": "-" } ], "platforms": [ { "name": "Hue", "forceCt": true, "groups": false, "hosts": [ "192.168.2.7" ], "lights": true, "nativeHomeKitLights": true, "nativeHomeKitSensors": true, "nupnp": true, "resource": true, "rooms": false, "platform": "Hue", "users": {

        "wallSwitch": true,
        "anyOn": true,
        "plugin_map": {
            "plugin_name": "hue"
        },
        "hueDimmerRepeat": true,
        "scenes": true
    },
    {
        "platform": "HarmonyHubWebSocket",
        "plugin_map": {
            "plugin_name": "homebridge-harmony"
        },
        "name": "HarmonyHub",
        "hubIP": "192.168.2.15",
        "switchAccessories": true,
        "TVAccessory": false,
        "publishAllTVAsExternalAccessory": false,
        "cleanCache": false
    },
    {
        "platform": "FRITZ!Box",
        "name": "My FRITZ!Box",
        "username": "-",
        "password": "-",
        "url": "http://fritz.box",
        "interval": 600,
        "concurrent": true,
        "devices": {
            "wifi": {
                "name": "Guest WLAN",
                "display": true
            }
        },
        "plugin_map": {
            "plugin_name": "homebridge-fritz"
        }
    },
    {
        "platform": "xiaomifan",
        "devices": [
            {
                "name": "Xiaomi Fan 2",
                "ip": "192.168.2.17",
                "token": "-",
                "pollingInterval": 10,
                "moveControl": false,
                "buzzerControl": false,
                "ledControl": false,
                "naturalModeButton": true,
                "shutdownTimer": false,
                "angleButtons": [
                    30,
                    60,
                    90,
                    120
                ]
            }
        ]
    }
]

}

askovi commented 4 years ago

Please post your logs

TheBassfly commented 4 years ago

23.8.2020, 17:05:34 HOOBS listening on port 8080. 23.8.2020, 17:05:37 Loaded plugin "homebridge-delay-switch". 23.8.2020, 17:05:37 Loaded plugin "homebridge-fritz". 23.8.2020, 17:05:40 Loaded plugin "homebridge-harmony". 23.8.2020, 17:05:40 Loaded plugin "homebridge-weather". 23.8.2020, 17:05:48 Loaded plugin "homebridge-xiaomi-fan". 23.8.2020, 17:05:48 Loaded plugin "homebridge-xiaomi-roborock-vacuum". 23.8.2020, 17:05:49 Loaded plugin "hue". 23.8.2020, 17:05:49 [Hue] homebridge-hue v0.11.63, node v12.16.1, homebridge v3.2.6 23.8.2020, 17:05:49 [HarmonyHub] HarmonyPlatform Init 23.8.2020, 17:05:49 [Roborock S50] INF createRoom | undefined | Room Gäste-WC (16) 23.8.2020, 17:05:49 [Roborock S50] INF createRoom | undefined | Room Esszimmer (17) 23.8.2020, 17:05:49 [Roborock S50] INF createRoom | undefined | Room Flur (18) 23.8.2020, 17:05:49 [Roborock S50] INF createRoom | undefined | Room Wohnzimmer (19) 23.8.2020, 17:05:49 [Roborock S50] INF createRoom | undefined | Room Küche (20) 23.8.2020, 17:05:49 [Roborock S50] INF createRoom | undefined | Room Büro (21) 23.8.2020, 17:05:49 [Roborock S50] INF createRoom | undefined | Room Eingang (22) 23.8.2020, 17:05:49 [Roborock S50] INF createRoom | undefined | Room Hauswirtschaftsraum (23) 23.8.2020, 17:05:49 HAP Warning: Characteristic 000000AC-0000-1000-8000-0026BB765291 not in required or optional characteristics for service 00000040-0000-1000-8000-0026BB765291. Adding anyway. 23.8.2020, 17:05:49 HAP Warning: Characteristic 000000AB-0000-1000-8000-0026BB765291 not in required or optional characteristics for service 00000040-0000-1000-8000-0026BB765291. Adding anyway. 23.8.2020, 17:05:49 [HarmonyHub] DidFinishLaunching 23.8.2020, 17:05:49 [HarmonyHub] (HarmonyHub)INFO - Loading activities... 23.8.2020, 17:05:49 [xiaomifan] Init - initializing devices 23.8.2020, 17:05:49 [xiaomifan] Init - initializing device with name: Xiaomi Fan 2 23.8.2020, 17:05:49 Xiaomi Fan 2 is running on port 46253. 23.8.2020, 17:05:49 [Hue] Philips hue: Philips BSB002 bridge v1940042020, api v1.40.0 23.8.2020, 17:05:49 [xiaomifan] [Xiaomi Fan 2] Found Fan zhimi.fan.za3 23.8.2020, 17:05:49 [Roborock S50] STA getDevice | Connected to: 192.168.2.21 23.8.2020, 17:05:49 [Roborock S50] STA getDevice | Model: roborock.vacuum.s5 23.8.2020, 17:05:49 [Roborock S50] STA getDevice | State: charger-offline 23.8.2020, 17:05:49 [Roborock S50] STA getDevice | FanSpeed: 103 23.8.2020, 17:05:49 [Roborock S50] STA getDevice | BatteryLevel: 91 23.8.2020, 17:05:50 [Roborock S50] INF getSerialNumber | roborock.vacuum.s5 | Serial Number is R0018S91017266 23.8.2020, 17:05:50 [Roborock S50] STA getDevice | Serialnumber: R0018S91017266 23.8.2020, 17:05:50 [Roborock S50] INF getFirmware | roborock.vacuum.s5 | Firmwareversion is 3.5.7_002008 23.8.2020, 17:05:50 [Roborock S50] STA getDevice | Firmwareversion: 3.5.7_002008 23.8.2020, 17:05:50 [Roborock S50] INF changedCleaning | roborock.vacuum.s5 | Cleaning is OFF. 23.8.2020, 17:05:50 [Roborock S50] MON changedCharging | roborock.vacuum.s5 | ChargingState is now false 23.8.2020, 17:05:50 [Roborock S50] INF changedCharging | roborock.vacuum.s5 | Charging is cancelled 23.8.2020, 17:05:50 [Roborock S50] INF changedCharging | roborock.vacuum.s5 | Robot not anymore in dock. 23.8.2020, 17:05:50 [Roborock S50] MON changedSpeed | roborock.vacuum.s5 | FanSpeed is now 103% 23.8.2020, 17:05:50 [Roborock S50] INF changedSpeed | roborock.vacuum.s5 | Speed was changed to 103% (Turbo), for HomeKit 80% 23.8.2020, 17:05:50 [Roborock S50] WAR changedError | roborock.vacuum.s5 | Robot has an ERROR - charger-offline, Charger is offline 23.8.2020, 17:05:50 [xiaomifan] [Xiaomi Fan 2] Fan total use time: 540 minutes. 23.8.2020, 17:05:50 [Hue] Philips hue: 4 accessories 23.8.2020, 17:05:50 [Hue] masked debug info dumped to /home/hoobs/.hoobs/etc/homebridge-hue.json.gz 23.8.2020, 17:05:50 [Hue] Initializing platform accessory "Philips hue"... 23.8.2020, 17:05:50 [Hue] Philips hue: 2 services 23.8.2020, 17:05:50 [Hue] Initializing platform accessory "Zirkulation"... 23.8.2020, 17:05:50 [Hue] Initializing platform accessory "Sonos Bad"... 23.8.2020, 17:05:50 [Hue] Initializing platform accessory "Karl-Heinz"... 23.8.2020, 17:05:50 [My FRITZ!Box] FRITZ!Box platform login successful 23.8.2020, 17:05:50 [My FRITZ!Box] Discovering accessories 23.8.2020, 17:05:50 [My FRITZ!Box] Using tr64 api for guest Wifi 23.8.2020, 17:05:51 [HarmonyHub] (HarmonyHub)INFO - Discovered Activity : AppleTV 23.8.2020, 17:05:51 [HarmonyHub] (HarmonyHub)INFO - Discovered Activity : Wii spielen 23.8.2020, 17:05:51 [HarmonyHub] (HarmonyHub)INFO - Discovered Activity : Fernsehen 23.8.2020, 17:05:51 [HarmonyHub] (HarmonyHub)INFO - Discovered Activity : BluRay 23.8.2020, 17:05:51 [HarmonyHub] (HarmonyHub)INFO - Discovered Activity : Switch 23.8.2020, 17:05:53 [My FRITZ!Box] Updating guest WLAN 23.8.2020, 17:05:53 [My FRITZ!Box] Alarm sensors found: none 23.8.2020, 17:05:53 [My FRITZ!Box] Buttons found: none 23.8.2020, 17:05:54 [My FRITZ!Box] Outlets found: 087610089419,087610219054 23.8.2020, 17:05:54 [My FRITZ!Box] Updating outlet 087610089419 23.8.2020, 17:05:54 [My FRITZ!Box] Updating outlet 087610219054 23.8.2020, 17:05:54 [My FRITZ!Box] Thermostats found: none 23.8.2020, 17:05:54 [My FRITZ!Box] Sensors found: none 23.8.2020, 17:05:54 [My FRITZ!Box] Initializing platform accessory "Guest WLAN"... 23.8.2020, 17:05:54 [My FRITZ!Box] Initializing platform accessory "TV Bank"... 23.8.2020, 17:05:54 [My FRITZ!Box] Initializing platform accessory "Katzenbrunnen"... 23.8.2020, 17:05:54 Bridge is running on port 51827.

TheBassfly commented 4 years ago

Small update: I tried the workaround mentioned here:

https://github.com/hoobs-org/HOOBS/issues/704#issuecomment-661619584

So in root mode the fan worked in Homekit. But the switch back to my normal hoobs doesn't work. Homekit is working but the Gui-Page is not reachable anymore.

TheBassfly commented 4 years ago

Maybe you can help me out with this, because the developer of the plug in only says, that's my personal problem because others have no issues with this plug-in an hoobs.

TheBassfly commented 4 years ago

Or do I have to use the root instance of hoobs permanently? Then the question is how?

TheBassfly commented 4 years ago

No clue?

hfanieng commented 4 years ago

I still have the same problem with Hoobs:

25.8.2020, 12:42:19 [xiaomifan] Init - initializing devices 25.8.2020, 12:42:19 [xiaomifan] Init - initializing device with name: Ventilator 25.8.2020, 12:42:19 Ventilator is running on port 59158. 25.8.2020, 12:28:05 [xiaomifan] [Ventilator] Connected to Fan zhimi.fan.za4 25.8.2020, 12:28:07 [xiaomifan] [Ventilator] Fan total use time: 1395 minutes.

I tried also a clean installation of Hoobs and starts it as root, but I can't get the plugin to work as expected

TheBassfly commented 4 years ago

With the workaround above the Fan Plugin worked for me, but I still don't know how I can use this information now in the standard hoobs instance. Or do I have to move everything to a Root instance? This would cost me a lot of work then.

TheBassfly commented 4 years ago

Please post your logs

Nothing new here? Or do you ignore this issue?

askovi commented 4 years ago

I don't have this accessory so I cannot test the plugin myself. Your logs are not showing any issue. I looked more into the plugin issues and i noticed you said here you got it working? https://github.com/merdok/homebridge-xiaomi-fan/issues/46 If you did please close this issue.

TheBassfly commented 4 years ago

Yes

In the meantime it is working.

Thanks.