hi.. i know how make talk sonos.. but i try to get the CodeId of my schlage was intered.
i show you what i trying to make.
–dont no how that work
local USERID = luup.variable_get(“urn:upnp-org:serviceId:DoorLock1”, “sl_UserCode”, 3)
– dont found the command for make that
switch USERID then
CASE 1
NomName = “Karine et MarcQuand”
CASE 2
NomName = “MarcQuand”
CASE 3
else
NomName = “Toi”
MAISON = “moi”
end
----That work perfect all is ok in that
luup.call_action(LS_SID, “Say”, {Text= string.format(“Bonjour %s, il est %s %s. Bienvenu chez %s!”,NomName,local_hours, local_minutes,MAISON ), Language=“fr-CA”, GroupZones=“None”,Volume=60, SameVolumeForAll=“true”},SONOS)
thx for your help