Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions movus_fitmachine/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# MyQ YAML
50 changes: 50 additions & 0 deletions movus_fitmachine/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
version: 4

api:
name: MOVUS Vibration Monitoring
description: Interfaces with Movus MachineCloud Dashboard by Movus Australia
version: 4.0.0
author:
name: David Stone
email: david.stone@gpselec.com.au
url: https://gpselec.com.au

httpsVerification: false

variables:
baseUrl:
default: https://api.movus.com.au
required: true
hidden: true
apiKey:
required: true

authType:
type: none

headers:
- key: Authorization
value: "{{var::apiKey}}"

functions:
devices:
url: "{{var::baseUrl}}/public/prod/devices"
method: get
schedule:
type: timer
duration: 5
unit: minutes
actions:
- action: tag
type: jsonExpand
udts:
- id: fitMachine
defPath: "{{var::apiName}}/movusFitMachine"
items: "{{jsonPath::$._embedded.devices[?(@.sensor_type == 'fitmachine')]}}"
path: "{{var::apiName}}/vibrationDevice"
name: "{{jsonPath::item::$.id}}"
- id: fitPower
defPath: "{{var::apiName}}/movusFitPower"
items: "{{jsonPath::$._embedded.devices[?(@.sensor_type == 'fitpower')]}}"
path: "{{var::apiName}}/powerDevice"
name: "{{jsonPath::item::$.id}}"