@raf Thanks man, but for some reason this module doesn’t want to work on my MM…
This is what I have on my MMM-TuyaSL.js file:
Module.register(“MMM-TuyaSL”, {
// Default module config.
defaults: {
colour: false,
updateInterval: 300 * 1000, // minimal is 5 minutes (300*1000 ms) => TUYA policy
userName: 'xxxxxxxxxxxx@gmail.com',
password: 'xxxxxxxxxxxxx',
countryCode: 'EU',
bizType: 'tuya',
from: 'tuya',
showOnlyOnline: false,
showOnlyOn: false,
showLabel: true,
timeout: 3000,
animationSpeed: 2.5 * 1000, // Speed of the update animation. (milliseconds)
},
And this is what I have on my config.js file:
{
module: ‘MMM-TuyaSL’,
position: ‘top_right’,
header: ‘TuyaSL’,
config: {
userName: ‘xxxxxxxxxxxxx@gmail.com’,
password: ‘xxxxxxxxxxxxxx’,
countryCode: ‘EU’,
showOnlyOnline: false,
showOnlyOn: false,
colour: true,
updateInterval: 300 * 1000,
timeout: 10 * 1000,
}
},