| 1 | package Device::WallyHome::Test::Data; | ||
| 2 | 2 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 2 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | 2 | our $VERSION = '0.21.3'; | |
| 6 | |||
| 7 | |||
| 8 | #== PUBLIC METHODS ============================================================= | ||
| 9 | |||
| 10 | 1 | ▶ | sub sampleResponse_places_1 { |
|
Subroutine
sampleResponse_places_1: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 11 | 1 | return q| | |
| 12 | [ | ||
| 13 | { | ||
| 14 | "id": "abcdef01234", | ||
| 15 | "accountId": "000-111-222-3333-44-5555", | ||
| 16 | "label": "Wally Labs", | ||
| 17 | "fullAddress": { | ||
| 18 | "line1": "Office", | ||
| 19 | "line2": "1415 NE 45th St", | ||
| 20 | "city": "Seattle", | ||
| 21 | "state": "WA", | ||
| 22 | "zip": "98105" | ||
| 23 | }, | ||
| 24 | "address": "Office, 1415 NE 45th St, Seattle, WA 98105", | ||
| 25 | "suspended": false, | ||
| 26 | "buzzerEnabled": true, | ||
| 27 | "sensorIds": ["90-7a-f1-ff-ff-ff"], | ||
| 28 | "nestAdjustments": {}, | ||
| 29 | "nestEnabled": true, | ||
| 30 | "rapidResponseSupport": ["rapidResponseSupport"] | ||
| 31 | } ] | ||
| 32 | |; | ||
| 33 | } | ||
| 34 | |||
| 35 | 1 | ▶ | sub sampleResponse_sensors_1 { |
|
Subroutine
sampleResponse_sensors_1: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 36 | 1 | return q| | |
| 37 | [ | ||
| 38 | { | ||
| 39 | "snid":"90-7a-f1-ff-ff-ff", | ||
| 40 | "offline":false, | ||
| 41 | "suspended":false, | ||
| 42 | "paired":"2016-07-06T17:11:58.001Z", | ||
| 43 | "updated":"2016-07-06T20:48:35.872Z", | ||
| 44 | "alarmed":false, | ||
| 45 | "signalStrength":0, | ||
| 46 | "recentSignalStrength":55.737163247999995, | ||
| 47 | "hardwareType":"FourInOneSensor", | ||
| 48 | "location":{ | ||
| 49 | "id":"00003bd0c9e77c0021fc60e1", | ||
| 50 | "placeId":"abcdef01234", | ||
| 51 | "sensorId":"90-7a-f1-ff-ff-ff", | ||
| 52 | "room":"Kitchen", | ||
| 53 | "appliance":"Sink", | ||
| 54 | "floor":"Main Floor", | ||
| 55 | "functionalType":"LEAK", | ||
| 56 | "created":"2016-07-06T17:11:44.926Z", | ||
| 57 | "updated":"2016-07-06T17:11:44.920Z" | ||
| 58 | }, | ||
| 59 | "thresholds":{ | ||
| 60 | "TEMP":{ | ||
| 61 | "name":"TEMP", | ||
| 62 | "min":10, | ||
| 63 | "max":38 | ||
| 64 | }, | ||
| 65 | "RH":{ | ||
| 66 | "name":"RH", | ||
| 67 | "min":30 | ||
| 68 | } | ||
| 69 | }, | ||
| 70 | "state":{ | ||
| 71 | "RH":{ | ||
| 72 | "value":56, | ||
| 73 | "at":"2016-07-06T20:48:35.315Z" | ||
| 74 | }, | ||
| 75 | "TEMP":{ | ||
| 76 | "value":21, | ||
| 77 | "at":"2016-07-06T20:48:35.315Z" | ||
| 78 | }, | ||
| 79 | "LEAK":{ | ||
| 80 | "value":0, | ||
| 81 | "at":"2016-07-06T20:48:35.315Z" | ||
| 82 | }, | ||
| 83 | "SENSOR":{ | ||
| 84 | "value":0, | ||
| 85 | "at":"2016-07-06T20:48:35.315Z" | ||
| 86 | }, | ||
| 87 | "COND":{ | ||
| 88 | "value":0, | ||
| 89 | "at":"2016-07-06T20:48:35.315Z" | ||
| 90 | } | ||
| 91 | }, | ||
| 92 | "activities":[ | ||
| 93 | { | ||
| 94 | "snid":"90-7a-f1-ff-ff-ff", | ||
| 95 | "created":"2014-10-13T21:37:36.472Z", | ||
| 96 | "type":"alarm", | ||
| 97 | "state":"open", | ||
| 98 | "viewParams":{ | ||
| 99 | "floor":"Main Floor", | ||
| 100 | "location":"Main Floor Kitchen Sink", | ||
| 101 | "label":"Wally Labs", | ||
| 102 | "appliance":"Sink", | ||
| 103 | "room":"Kitchen" | ||
| 104 | } | ||
| 105 | } | ||
| 106 | ] | ||
| 107 | } | ||
| 108 | ] | ||
| 109 | |; | ||
| 110 | } | ||
| 111 | |||
| 112 | |||
| 113 | 2 | __PACKAGE__->meta->make_immutable; | |
| 114 | |||
| 115 | 2 | 1; | |