homebridge-switchbot
homebridge-switchbot copied to clipboard
Support Request: 3 speed IR fan support?
Describe Your Problem
As soon as I 'enable rotation speed' for my IR fan, the plugin gives a warning that disables my devices. How should I enable speed control for a 3 speed fan, if possible at all? In the config example I used the defaults, but I get the same error with all settings.
Relevant log output
This is the warning that appears in the homebridge logs, after that the devices become unresponsive:
[2/15/2022, 2:39:11 PM] [@switchbot/homebridge-switchbot] This plugin generated a warning from the characteristic 'Rotation Speed': characteristic was supplied illegal value: number 0 exceeded minimum of 1. See https://git.io/JtMGR for more info.
Config for homebridge-switchbot
"options": {
"irdevices": [
{
"deviceId": "02-202202081352-74320829",
"configRemoteType": "Fan",
"irfan": {
"rotation_speed": false,
"set_minStep": 1,
"set_min": 0,
"set_max": 100
}
}
]
Screenshots
No response
Device & Model
Switchbot Hub Mini
Node.js Version
v16.14.0
NPM Version
v8.3.1
Homebridge Version
v1.4.0
Homebridge SwitchBot Plugin Version
v1.12.4
Homebridge Config UI X Plugin Version
v4.42.0
Operating System
Docker / Raspbian (tried both)
first set your "set_min": 0,
to 1 so "set_min": 1,
.
first set your
"set_min": 0,
to 1 so"set_min": 1,
.
I tried that, but I get the exact same warning and behaviour. I enabled debug logging as well, but nothing strange's logged.
that's what the warning is saying though.
Yeah, I thought it'd be that easy as well, but it doesn't matter what values I enter. As long as "rotation_speed": true, I get the same warning.
please change to 1 and repost logs.
My config now:
"options": {
"irdevices": [
{
"deviceId": "02-202202081352-74320829",
"configRemoteType": "Fan",
"irfan": {
"swing_mode": false,
"rotation_speed": true,
"set_minStep": 1,
"set_min": 1,
"set_max": 100
all switchbot logging:
[2/15/2022, 3:53:15 PM] [SwitchBot] deviceListInfoStatus: {"statusCode":100,"body":{"deviceList":[{"deviceId":"F081288C1ECF","deviceName":"Hub Mini CF","deviceType":"Hub Mini","hubDeviceId":"000000000000"}],"infraredRemoteList":[{"deviceId":"02-202202081352-74320829","deviceName":"Plafond Ventilator","remoteType":"Fan","hubDeviceId":"F081288C1ECF"},{"deviceId":"02-202202081355-97988588","deviceName":"Plafondlamp","remoteType":"Light","hubDeviceId":"F081288C1ECF"}]},"message":"success"}
[2/15/2022, 3:53:15 PM] [SwitchBot] [DEBUG] {"statusCode":100,"body":{"deviceList":[{"deviceId":"F081288C1ECF","deviceName":"Hub Mini CF","deviceType":"Hub Mini","hubDeviceId":"000000000000"}],"infraredRemoteList":[{"deviceId":"02-202202081352-74320829","deviceName":"Plafond Ventilator","remoteType":"Fan","hubDeviceId":"F081288C1ECF"},{"deviceId":"02-202202081355-97988588","deviceName":"Plafondlamp","remoteType":"Light","hubDeviceId":"F081288C1ECF"}]},"message":"success"}
[2/15/2022, 3:53:15 PM] [SwitchBot] Total SwitchBot Devices Found: 1
[2/15/2022, 3:53:15 PM] [SwitchBot] [DEBUG] SwitchBot Device Config Not Set: undefined
[2/15/2022, 3:53:15 PM] [SwitchBot] [DEBUG] Discovered Hub Mini: F081288C1ECF
[2/15/2022, 3:53:15 PM] [SwitchBot] Total IR Devices Found: 2
[2/15/2022, 3:53:15 PM] [SwitchBot] [DEBUG] IR Device Config Set: [{"deviceId":"02-202202081352-74320829","configRemoteType":"Fan","irfan":{"swing_mode":false,"rotation_speed":true,"set_minStep":1,"set_min":1,"set_max":100},"logging":"none"}]
[2/15/2022, 3:53:15 PM] [SwitchBot] [DEBUG] IR Devices: [{"deviceId":"02-202202081352-74320829","configRemoteType":"Fan","irfan":{"swing_mode":false,"rotation_speed":true,"set_minStep":1,"set_min":1,"set_max":100},"logging":"none","deviceName":"Plafond Ventilator","remoteType":"Fan","hubDeviceId":"F081288C1ECF"},{"deviceId":"02-202202081355-97988588","deviceName":"Plafondlamp","remoteType":"Light","hubDeviceId":"F081288C1ECF"}]
[2/15/2022, 3:53:15 PM] [SwitchBot] [DEBUG] Discovered Fan: 02-202202081352-74320829
[2/15/2022, 3:53:15 PM] [SwitchBot] Restoring existing accessory from cache: Plafond Ventilator DeviceID: 02-202202081352-74320829
[2/15/2022, 3:53:15 PM] [SwitchBot] [DEBUG] Discovered Light: 02-202202081355-97988588
[2/15/2022, 3:53:15 PM] [SwitchBot] Restoring existing accessory from cache: Plafondlamp DeviceID: 02-202202081355-97988588
[2/15/2022, 3:53:15 PM] [SwitchBot] [DEBUG] Fan uuid: 02-202202081352-74320829-Fan, (c51e4663-4e55-400d-a059-3681af8b2a74)
[2/15/2022, 3:53:15 PM] [SwitchBot] [DEBUG] Light: Plafondlamp Using Platform Config Logging: debug
[2/15/2022, 3:53:15 PM] [SwitchBot] [DEBUG] Light uuid: 02-202202081355-97988588-Light, (71055946-73f3-4628-b175-c8409abc6d68)
[2/15/2022, 3:54:00 PM] [@switchbot/homebridge-switchbot] This plugin generated a warning from the characteristic 'Rotation Speed': characteristic was supplied illegal value: number 0 exceeded minimum of 1. See https://git.io/JtMGR for more info.
@donavanbecker I think I found something. There seemed to be two conflicting buttons in the switchbot app fan configuration. I got rid of that and now the warning doesn't appear anymore. Now I only have to find out what's the best setting for a fan with 3 speed buttons, since I haven't figured it out yet
@donavanbecker I think I found something. There seemed to be two conflicting buttons in the switchbot app fan configuration. I got rid of that and now the warning doesn't appear anymore. Now I only have to find out what's the best setting for a fan with 3 speed buttons, since I haven't figured it out yet
I will look to see if I can add these commands to the plugin. but no promise.
Thanks! It’s a nice to have of course, but all effort’s appreciated