Hey pimatic crowd,
at first: pimatic is awesome
To improve the system a little bit,
i have written an small plugin which implements a messaging system over any xmpp aka jabber service.
In my environment i don’t want to use a cloud service for that, so i have installed an ejabberd on my rPi.
Especially if it is possible to control pimatic, i think a private service is safer.
Now i receive at home over wireless or remote over vpn-access messages directly to my smart-phone jabber client.
Please feel free to test the plugin!, report me bugs and let me know which features are interesting.
Configuration
You can load the plugin by adding following in the config.json from your pimatic server:
{
"plugin": "xmpp",
"user": "pimatic-user@server.org",
"password": "secretpw",
"adminId": "admin-user@server.org",
"defaultId": "default-user@server.org",
"keepaliveInterval": 5
}
Usages in rules:
The messaging system provides a received event.
received "any message"
And also provides a send event.
send chat tojid:"admin-user@server.org" message:"triggerd event has occurred"
Chat client
The messaging system implements a chat bot which answers questions and execute actions.
The bot uses the rule action syntax. So all devices are out of the box accessible.
For example:
toggle device1
switch device2 on
set temp of heating to 28
Following commands are predefiend:
Built-in commands:
help
list devices
Available events:
“all created predicates”
ToDoList
- chatrooms for multiuser enviroments (password protected)
- xmpp device for xmpp user status
- built-in server ? for easy use of plugin