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'
Plugin..dnpwwo/Domoticz-Google-Plugin
Moderator: leecollings
-
- Posts: 1
- Joined: Tuesday 03 September 2019 9:16
- Target OS: -
- Domoticz version:
- Contact:
Who is online
Users browsing this forum: No registered users and 1 guest