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

caching: On: true (as boolean; from 'off') ?? #73

Open
pyrrol opened this issue Jan 18, 2021 · 9 comments
Open

caching: On: true (as boolean; from 'off') ?? #73

pyrrol opened this issue Jan 18, 2021 · 9 comments

Comments

@pyrrol
Copy link

pyrrol commented Jan 18, 2021

Hi,

I get a strange caching for a Multilevel Switch (Z-Wave dimmer ZMNHDD1) without further homebridgeMapping applied: caching On:true for off.

The homebridge.log reports:

[1/15/2021, 4:56:58 PM] [FHEM] ZWD4.1: executing set cmd for On with value false
[1/15/2021, 4:56:58 PM] [FHEM]   executing: http://127.0.0.1:8083/fhem?
cmd=set%20ZWD4.1%20off&fwcsrf=csrf_233194561868642&XHR=1
2021-01-15 16:56:58 caching: ZWD4.1-state: off
[1/15/2021, 4:56:59 PM] [FHEM]     caching: On: true (as boolean; from 'off')
[1/15/2021, 4:56:59 PM] [FHEM]     caching: Brightness: 0 (as number; from 'off')`

Could this be linked to issue #32 - also see this lighting up to 100%

It doesn't seem to help to use nocache in the mapping.
Any ideas where to investigate or how to workaround?

@justme-1968
Copy link
Owner

please run homebridge with -D for more output and provide a list of the fhem device

@bircni
Copy link

bircni commented Sep 21, 2022

Haven't found a workaround for nearly a year now - how to fix this?
@justme-1968 can yo help us?

@justme-1968
Copy link
Owner

please try adding default=XX

@bircni
Copy link

bircni commented Sep 22, 2022

Where do I add this?

@justme-1968
Copy link
Owner

in the homebridgeMapping

@bircni
Copy link

bircni commented Sep 23, 2022

So replace XX with an int ?

@bircni
Copy link

bircni commented Sep 26, 2022

So I tried both but nothing worked for me here

[9/26/2022, 3:05:03 PM] [Homebridgename] caching: Brightness: 100 (as number; from '99.5') 2022-09-26 15:05:03 caching: lightname-state: 99.5 [9/26/2022, 3:05:03 PM] [Homebridgename] caching: On: true (as boolean; from '99.5') 2022-09-26 15:05:08 caching: lightname-pct: 18 [9/26/2022, 3:05:08 PM] [Homebridgename] caching: Brightness: 18 (as number; from '18') 2022-09-26 15:05:08 caching: lightname-state: 18 [9/26/2022, 3:05:08 PM] [Homebridgename] caching: On: true (as boolean; from '18')

@justme-1968
Copy link
Owner

sorry for the late answer...

i know what the problem is, but i have at the moment no idea how to fix it without a mayor rewrite of the event interface. i have to think some more...

@bircni
Copy link

bircni commented Sep 28, 2022

Maybe you can skip the first command or wait a short time if a second one occurs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants