Author Topic: help to make personal greating message Schlage and sonos  (Read 97 times)

Offline markan79

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
help to make personal greating message Schlage and sonos
« on: June 09, 2018, 10:35:28 am »
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