Page 1 of 1

Python Event: Email/Pushbullet Question

Posted: Monday 02 October 2017 22:42
by Deanm
I’m in the process of migrating over from LUA Events to use Python Events. Most of my Lua scripts I have converted in to python but having an issue with one.

In LUA I can send an email with the following command.

commandArray['SendEmail']=(mess)

Does anyone know what the Python equivalent command would be.

Ideally I’m looking to send a Pushbullet message using the built-in Domoticz settings. Is this possible either in Python or LUA.

Cheers

Dean

Re: Python Event: Email/Pushbullet Question

Posted: Tuesday 03 October 2017 1:36
by ben53252642
I would make use of the Domoticz HTTP API to send the notification.

http://<domoticz_ip>:PORT/json.htm?type=command&param=sendnotification&subject=subject&body=thebody

Re: Python Event: Email/Pushbullet Question

Posted: Wednesday 04 October 2017 7:29
by Deanm
Never thought of using JSON for this. I use JSON a lot in a Python Script I run outside of Domoticz.

Thank you for the info but I looked and could not see this command documented anywhere. I have a problem with the command. When I send the command I get an email and a pushbullet notification.

Under the email settings I have unticked the “Send Email Notifications Alerts” but made no difference. Just not sure what that setting is for.

When running a LUA Script I only get an email. Ideally I only want Pushbullet alerts. Think I might just remove my email settings.

Dean