autoremote#

class platypush.plugins.autoremote.AutoremotePlugin(devices=None, key=None, password=None, **kwargs)[source]#

Bases: Plugin

This plugin allows you to send messages and notifications to an Android device that runs AutoRemote (https://joaoapps.com/autoremote/). You can also build custom actions to run on your Android device upon AutoRemote events using Tasker (https://tasker.joaoapps.com/).

__init__(devices=None, key=None, password=None, **kwargs)[source]#
Parameters:
  • devices (dict) –

    Set this attribute if you want to control multiple AutoRemote devices. This will be a map in the format:

    {
        'device_name': {
            'key': 'AUTOREMOTE_KEY',
            'password': 'DEVICE_PASSWORD'
        },
        ...
    }
    

  • key (str) – The key associated to your device. Open the link in your AutoRemote app and copy the key in the target URL. Set this value if you want to communicate with only one AutoRemote device.

  • password (str) – AutoRemote password configured on the device (default: None). Set this value if you want to communicate with only one AutoRemote device.

send_message(msg, key=None, password=None, devices=None, target=None, sender=None, ttl=None, group=None, *_, **__)[source]#

Sends a message to AutoRemote.

Parameters:
  • msg – Message to send

  • key (str) – Set it if you want to override the default devices (default: None, message sent to all the configured devices)

  • password (str) – Set it if you want to override the default password (default: None)

  • devices (list) – Set it if you want to send the message to a specific list of configured devices (default: None, message sent to all the configured devices)

  • target (str) – Message target (default: None)

  • sender – Message sender (default: None)

  • ttl (int) – Message time-to-live in seconds (default: None)

  • group (str) – Message group name (default: None)

send_notification(text=None, key=None, password=None, devices=None, title=None, target=None, sender=None, ttl=None, group=None, sound=None, vibration=None, url=None, id=None, action=None, icon=None, led=None, ledon=None, ledoff=None, picture=None, share=False, msg=None, action1=None, action1_name=None, action1_icon=None, action2=None, action2_name=None, action2_icon=None, action3=None, action3_name=None, action3_icon=None, persistent=False, statusbar_icon=None, ticker=None, dismiss_on_touch=False, priority=0, number=None, content_info=None, subtext=None, max_progress=None, progress=None, indeterminate_progress=False, action_on_dismiss=None, cancel=False, *_, **__)[source]#

Sends a notification to AutoRemote. Click on your AutoRemote URL -> Send Notification for a detailed explanation of the attributes.