Bonjour,
vous pouvez utiliser le centre de notification pour afficher vos propres notifications,
avec une telle scène LUA
--[[
%% properties
%% events
%% globals
--]]
function doNotify(text, devid)
api.post('/notificationCenter', {
type = 'GenericDeviceNotification',
canBeDeleted = true,
-- priority can be
-- alert -- red alert sign
-- warning -- yellow warning sign
-- info -- same as warning
priority = 'alert',
data = {
deviceId = devid,
text = text,
title = text
}
})
end
doNotify('UPS power loss', 818)
818 est dans mon cas "Wallplug", il doit être valide module/deviceid
Amusez-vous bien