Plugin..dnpwwo/Domoticz-Google-Plugin

Alexa, Google Home and Siri

Moderator: leecollings

Post Reply
nachtcreme
Posts: 1
Joined: Tuesday 03 September 2019 9:16
Target OS: -
Domoticz version:
Contact:

Plugin..dnpwwo/Domoticz-Google-Plugin

Post 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'
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest