Console.log() isn't the only Javascript debug tool. Visual Studio Code has great features to track bugs. Use VS Code's debugging feature for Javascript.
Home Assistant is a fantastic tool for muxing home devices and services. This post is about how to run Home Assistant via LinuxServer.io’s Docker Image.