Page 1 of 1

Plugin..dnpwwo/Domoticz-Google-Plugin

Posted: Tuesday 03 September 2019 9:29
by nachtcreme
Hello,

I'm trying to use my Google home as a Chime when someone presses the doorbell.
I found and installed the plugin https://github.com/dnpwwo/Domoticz-Google-Plugin. I want to make a script in Lua (or another scripting language) that only when a particular value is send to domoticz the notification is send to the google home.

I'm doing something wrong, but i dont kow what. kan anyone help me?
thanks!
================================

local alarm = 'doorbell'
local valuetrigger = '123456'

commandArray = {}

for deviceName,deviceValue in pairs(otherdevices) do
if (deviceName== doorbell) then

if tonumber(deviceValue) = tonumber(valuetrigger) then
commandArray['Google Home downstairs'] = "SendNotification Here's someone at the door'