Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: [11/09/2024, 09:18:11] [SwitchBot] Curtain: Living Room Curtain Standby ... #1042

Open
nyjklein opened this issue Sep 11, 2024 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@nyjklein
Copy link

Describe the Bug

After upgrade to v3.8.0 log contains these new (useless) messages every 30 seconds. This is with logging set to standard or default.

[11/09/2024, 09:18:11] [SwitchBot] Curtain: Living Room Curtain Standby ...

30 seconds is the status update interval for the curtain device.

To Reproduce

update to v3.8.0. Restart,

Expected Behavior

Don't display useless log messages.

Relevant Log Output

[11/09/2024, 09:21:21] [SwitchBot] Launched child bridge with PID 276974
[11/09/2024, 09:21:22] Registering platform '@switchbot/homebridge-switchbot.SwitchBot'
[11/09/2024, 09:21:22] [SwitchBot] Loaded @switchbot/homebridge-switchbot v3.8.0 child bridge successfully
[11/09/2024, 09:21:22] Loaded 9 cached accessories from cachedAccessories.0E524B5C18A9.
[11/09/2024, 09:21:23] Homebridge v1.8.4 (HAP v0.12.2) (SwitchBot) is running on port 34903.
[11/09/2024, 09:21:23] 

NOTICE TO USERS AND PLUGIN DEVELOPERS
> Homebridge 2.0 is on the way and brings some breaking changes to existing plugins.
> Please visit the following link to learn more about the changes and how to prepare:
> https://github.com/homebridge/homebridge/wiki/Updating-To-Homebridge-v2.0

[11/09/2024, 09:21:23] [SwitchBot] Restoring existing accessory from cache: Outdoor Meter SwB deviceId: CFD41B916DA3
[11/09/2024, 09:21:23] [SwitchBot] Restoring existing accessory from cache: Dining Room SwB deviceId: E0C8750159BB
[11/09/2024, 09:21:23] [SwitchBot] Restoring existing accessory from cache: Bedroom SwBP deviceId: E3D163DE2E31
[11/09/2024, 09:21:24] [SwitchBot] Restoring existing accessory from cache: Motion Sensor 2E deviceId: EBA08112E12E
[11/09/2024, 09:21:24] [SwitchBot] Restoring existing accessory from cache: Small Bathroom SwB deviceId: F1BAF4B4E58E
[11/09/2024, 09:21:24] [SwitchBot] Restoring existing accessory from cache: Main Bathroom SwB deviceId: F3745EADBBFE
[11/09/2024, 09:21:24] [SwitchBot] Restoring existing accessory from cache: Living Room SwBP deviceId: F4B27AC3DF57
[11/09/2024, 09:21:24] [SwitchBot] Restoring existing accessory from cache: Office SwBP deviceId: FA500E1417E8
[11/09/2024, 09:21:24] [SwitchBot] Restoring existing accessory from cache: Living Room Curtain deviceId: FD1E6D06B532
[11/09/2024, 09:21:25] [SwitchBot] Curtain: Living Room Curtain Standby ...
[11/09/2024, 09:21:55] [SwitchBot] Curtain: Living Room Curtain Standby ...
[11/09/2024, 09:22:25] [SwitchBot] Curtain: Living Room Curtain Standby ...
[11/09/2024, 09:22:55] [SwitchBot] Curtain: Living Room Curtain Standby ...
[11/09/2024, 09:23:24] [SwitchBot] Curtain: Living Room Curtain Standby ...
[11/09/2024, 09:23:55] [SwitchBot] Curtain: Living Room Curtain Standby ...
[11/09/2024, 09:24:25] [SwitchBot] Curtain: Living Room Curtain Standby ...
[11/09/2024, 09:24:55] [SwitchBot] Curtain: Living Room Curtain Standby ...
[11/09/2024, 09:25:25] [SwitchBot] Curtain: Living Room Curtain Standby ...
[11/09/2024, 09:25:55] [SwitchBot] Curtain: Living Room Curtain Standby ...
[11/09/2024, 09:26:25] [SwitchBot] Curtain: Living Room Curtain Standby ...

Config for homebridge-switchbot

{
                "deviceId": "FD1E6D06B532",
                "configDeviceName": "Living Room Curtain",
                "hide_device": false,
                "configDeviceType": "Curtain",
                "connectionType": "OpenAPI",
                "curtain": {
                    "set_minStep": 10,
                    "set_min": 5,
                    "set_max": 96,
                    "setOpenMode": "0",
                    "setCloseMode": "0",
                    "hide_lightsensor": true
                },
                "refreshRate": 30,
                "logging": "standard"
            }

Screenshots

No response

Device and Model

?

Node.js Version

v20.17.0

NPM Version

?

Homebridge Version

v1.8.4

Homebridge Switchbot Plugin Version

v3.8.0

Homebridge Config UI X Plugin Version

v4.58.0

Operating System

Debian GNU/Linux Bookworm

@donavanbecker
Copy link
Collaborator

@nyjklein I will try to make it so that this only logs once after checking status.

@nyjklein
Copy link
Author

Thanks. That would be great. For now I've set logging to None for the curtain device.

@donavanbecker
Copy link
Collaborator

I have something worked out but want to combine some loggings then I will push out a beta for you.

@donavanbecker
Copy link
Collaborator

Can you try the latest beta:

npm version

Click here to find out how to install Beta

@nyjklein
Copy link
Author

Beta 2 looks good.
Thanks.

@donavanbecker
Copy link
Collaborator

perfect I will release 3.8.1 then.

@nyjklein
Copy link
Author

Updated to 3.8.1 yesterday afternoon and all was fine. Then spontaneously early this morning this happened:
[14/09/2024, 05:50:25] [Homebridge UI] Creating temporary backup archive at /tmp/homebridge-backup-JTK1w0/homebridge-backup-0E1CBB1ABFAB.1726307425009.tar.gz
[14/09/2024, 07:11:42] [SwitchBot] Curtain: Living Room Curtain Checking Status ...
[14/09/2024, 07:11:47] [SwitchBot] Curtain: Living Room Curtain Checking Status ...
[14/09/2024, 07:11:52] [SwitchBot] Curtain: Living Room Curtain Checking Status ...
[14/09/2024, 07:11:57] [SwitchBot] Curtain: Living Room Curtain Checking Status ...
[14/09/2024, 07:12:02] [SwitchBot] Curtain: Living Room Curtain Checking Status ...
[14/09/2024, 07:12:07] [SwitchBot] Curtain: Living Room Curtain Checking Status ...
[14/09/2024, 07:12:12] [SwitchBot] Curtain: Living Room Curtain Checking Status ...
[14/09/2024, 07:12:12] [SwitchBot] Curtain: Living Room Curtain Checking Status ...
[14/09/2024, 07:12:17] [SwitchBot] Curtain: Living Room Curtain Checking Status ...
[14/09/2024, 07:12:22] [SwitchBot] Curtain: Living Room Curtain Checking Status ...
[14/09/2024, 07:12:27] [SwitchBot] Curtain: Living Room Curtain Checking Status ...
[14/09/2024, 07:12:32] [SwitchBot] Curtain: Living Room Curtain Checking Status ...
[14/09/2024, 07:12:37] [SwitchBot] Curtain: Living Room Curtain Checking Status ...
[14/09/2024, 07:12:42] [SwitchBot] Curtain: Living Room Curtain Checking Status ...
... for about 15 minutes, then:
[14/09/2024, 07:28:07] [SwitchBot] Curtain: Living Room Curtain Checking Status ...
[14/09/2024, 07:28:12] [SwitchBot] Curtain: Living Room Curtain Checking Status ...
[14/09/2024, 07:28:12] [SwitchBot] Curtain: Living Room Curtain Checking Status ...
[14/09/2024, 07:28:17] [SwitchBot] Curtain: Living Room Curtain Standby ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants