Iotsa Devices

{% set module = "buttons" %} {% if set %} {% set modButton = {} %} {% set _ = modButton.update(url=new_url) if change_url else None %} {% set _ = modButton.update(url=new_url_2) if change_url_2 else None %} {% set _ = modButton.update(fingerprint=new_fingerprint) if change_fingerprint else None %} {% set _ = modButton.update(fingerprint=new_fingerprint_2) if change_fingerprint_2 else None %} {% set _ = modButton.update(token=new_token) if change_token else None %} {% set _ = modButton.update(token=igor.access.externalRepresentation(token, new_token_2)) if change_token_2 else None %} {% set _ = modButton.update(credentials=new_credentials) if change_credentials else None %} {% set _ = modButton.update(onPress=not not new_onPress) if change_onPress else None %} {% set _ = modButton.update(onRelease=not not new_onRelease) if change_onRelease else None %} {% set error = pluginObject._setIndexed(device, module, index, modButton, protocol=protocol, credentials=credentials, port=port, noverify=noverify, token=token) %} {% if error %}

Error while changing button {{index}} settings: {{error}}

{% endif %} {% endif %} {% set deviceStatus = pluginObject._getorset(device, module=module, protocol=protocol, credentials=credentials, port=port, noverify=noverify, includeConfig=True, token=token) %} {% set device = deviceStatus.device %} {% set config = deviceStatus.get('config', {}) %} {% set buttonStatus = deviceStatus.get(module, {}) %} {% set buttons = buttonStatus.buttons %} {% set message = deviceStatus.message %} {% if message %}

User Intervention Required

Message: {{message}}

{% if message[:4] == '502 ' %}

If the SSL certificate of iotsa device "{{device}}" is not trusted by this Igor please try to connect using the form at the bottom of the iotsa device list page and select the Do not check SSL certificates option.

{% elif message[:4] == '401 ' %}

To allow access to module "{{module}}" iotsa device "{{device}}" requires either a trusted capability (which Igor does not have yet) or username/passord credentials. You can use the latter by selecting this device on the form at the bottom of iotsa device list and providing them in the credentials field.

{% endif %} {% endif %}

Status for device {{device}}, module {{module}}

{% for button in buttons %} {% for k, v in button.items() %} {% if loop.first %} {% endif %} {% endfor %} {% endfor %}
Button Key Value
{{loop.index0}}{{k}} {{v}}

Changing button actions

{% if config.currentMode == 1 %}

Device {{device}} is in configuration mode, you have {{config.modeTimeout}} seconds to change button settings.

{% elif config.requestedMode == 1 %}

You have requested configuration mode, but not rebooted {{device}} yet. Please do so within {{config.requestedModeTimeout}} seconds and select refresh to reload this page.

{% else %}

To change button actions {{device}} must probably be in configuration mode. You can request the device to go to configuration mode on the device status page.

{% endif %} {% for button in buttons %}

Modify button {{loop.index0}} configuration

Key Change? Value Help
url URL to contact on button changes
Igor action to trigger when button changes
fingerprint Certificate fingerprint to check when contacting URL (https only)
Check that URL is served by this Igor (https only)
token Bearer token supplied when contacting URL
Carry bearer token with Igor capability for action.
credentials Credentials supplied when contacting URL (username:password)
onPress Call URL when button is pressed
onRelease Call URL when button is released
{% endfor %}
Return to {{device}} device status page.
{% if returnTo %} Return to {{returnTo}}.
{% endif %} Return to iotsa device setup page.
Return to Igor homepage