Skip to content
This repository has been archived by the owner on Mar 6, 2022. It is now read-only.

fix SCREEN_WAKEUP behavior #88

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

dtreskunov
Copy link

There were two issues.

First: in my case, the SCREEN_WAKEUP socket notification was being sent from node_helper.js of another module. The browser code in MMM-PIR-Sensor.js would receive this notification and relay it using the sendNotification function. However, the handler on the server-side in node_helper.js would not see it since it is only responding to notifications sent via sendSocketNotification.

Second: after the screen was woken up, it would never go back to sleep unless the PIR sensor reported some movement followed by no movement.

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

Successfully merging this pull request may close these issues.

1 participant