Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

speak example #8

Open
edwindarter opened this issue Jun 2, 2019 · 4 comments
Open

speak example #8

edwindarter opened this issue Jun 2, 2019 · 4 comments

Comments

@edwindarter
Copy link

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

@dnpwwo
Copy link
Owner

dnpwwo commented Jun 3, 2019

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

@Gerard-Oedzes
Copy link

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

thnx!

@pcfreak1
Copy link

would like to know how to do this with dzvents also

@frankdpGH
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants