Domoticz-Google-Plugin icon indicating copy to clipboard operation
Domoticz-Google-Plugin copied to clipboard

speak example

Open edwindarter opened this issue 5 years ago • 4 comments

can you please set an example how to let my googlehome speak "main light is on" when i turn it on. in domoticz thanks

edwindarter avatar Jun 02 '19 10:06 edwindarter

From a Lua event?

Would be something like:

    commandArray = {}
    for deviceName,deviceValue in pairs(devicechanged) do
        if (deviceName=='Main Light') then
            commandArray['googlehome'] = "SendNotification main light is on"
        end
    end

dnpwwo avatar Jun 03 '19 11:06 dnpwwo

is this also working with dzvents? and can you gife me an exemple?

thnx!

Gerard-Oedzes avatar Sep 22 '19 21:09 Gerard-Oedzes

would like to know how to do this with dzvents also

pcfreak1 avatar Oct 22 '19 09:10 pcfreak1

Hi saw your question here : Since gtts 2.2.1 the notifications are working correctly (within 2 seconds). (install with : sudo pip3 install gtts==2.2.1) Script commands when using dzVents : domoticz.notify(subject, message [,priority][,sound][,extra],"Google_Devices",domoticz.NSS_GOOGLE_DEVICES) e.g. domoticz.notify("","Hello","","","","Google_Devices",domoticz.NSS_GOOGLE_DEVICES) or domoticz.sendCommand("SendNotification", "#Hello####Google_Devices",domoticz.NSS_GOOGLE_DEVICES)

frankdpGH avatar Nov 29 '20 18:11 frankdpGH