Open papounet-git opened 3 years ago
This is the case (although enabling/disabling motion control is not working properly for stick up cams, I want to look into fixing that). I am currently looking into how to add support for modes, and will hopefully get a PR for that in the not too distant future. I am not familiar with Homey app development yet, so will have to learn that as I go.
Thanks, it would be a real plus if the app would evolve in that direction. Good luck and keep us posted.
@papounet-git In my fork of this app I have a working version of modes: https://github.com/tokreutz/com.ring/tree/f/mode-device I hope to get my PR on a fix for motion detection for stickup cams in first, as the modes support is based on that branch.
If you want you can test the mode support using the above branch to validate that it works as expected.
@papounet-git In my fork of this app I have a working version of modes: https://github.com/tokreutz/com.ring/tree/f/mode-device I hope to get my PR on a fix for motion detection for stickup cams in first, as the modes support is based on that branch.
If you want you can test the mode support using the above branch to validate that it works as expected.
Hello ! I have tried your app, but I got an error when I try to change mode : "invalid_authentication 400 Not allowed to use this api to change mode"
Interesting. Let me check if i have missed anything.
Thanks!
@Airwolf33 It works very well for me, so not sure what the problem might be. Can you describe the actions you made to get this error? was it enable/disable modes, or changing the mode values, or both? Are you able to get the mode values synced in Homey when you change them in the app?
It might be the host I'm currently using for changing modes, which is 'prd-api-us.prd.rings.solutions'. which region/country do you live in? I live in Norway, but there might be certain origins that get a different uri for their accounts (not sure why I get the us in mine, but...)
@tokreutz It happens when I try to change mode using Homey, from disarmed to armed for exemple. The mode values are synced with homey. If I arm Ring using Ring App, it is armed in homey. But I can't change the mode using homey, it shows the error message above. I live in France.
If it can help, I also use Homebridge ring app to change mode using Apple Homekit, and it works well. I use it as a workaround... But if it can works directly with homey, it will be great !
@Airwolf33 Thanks for the tip on homebridge! I had a look at the homebridge codebase and found the correct uri for the mode apis. I have pushed an update that works for me, and hopefully works for you as well :)
@tokreutz Same error message for me :-(
@Airwolf33 , are you sure? it should be sending the same requests as the homebridge app, so that is strange indeed. Can you double check that you pulled the latest from the branch, and that perhaps that the code references the 'app.ring.com' uri in \lib\Api.js?
@tokreutz Yes, I think I have the latest from the branch... In \lib\Api.js I have Static ComRingApp = "app.ring.com" line 27... I have deleted Ring App from homey and re-install it, created a new Device "Modes", put my id and password, my 2-fact code... and same error message : invalid_authentication 400 {"error":999005,"msg":"Not allowed to use this api to change mode"}
@Airwolf33 , I did a minor change and added some log details. can you try one more time? Not sure why you are seeing this error, and not sure what it means. Why Homebridge is allowed to use this API, and Homey is not is unclear to me. The requests should be the same.
@tokreutz Same error, but message is now "Bad Request 400 {"error":999005,"msg":"Not allowed to use this api to change mode"}" and no longer "invalid_authentication 400"...
@Airwolf33 , are you allowes to disable the mode from homey using the onoff button? And if so, can you enable it again? And if so, can you now switch modes?
@tokreutz Yes I can enable / disable the mode using on/off button (but nothing happens when I switch it) I have tried to disable and enable it again, same error when I try to switch modes (Bad Request 400...)
@tokreutz if it can help, I use Ring doorbells, Stick up cams, but also Ring Alarm. Maybe the fact that I use Ring Alarm is a clue... But with Homebridge it works... for doorbells, cams and Ring Alarm...
Are you the "owner" of the home location? Put differently, is it your credentials that operate the Homebridge integration, or has the home location been shared with you, and your user is not permitted to change mode like that..?
Im not sure how Ring authorization works :/
@tokreutz Yes I am the "Owner" of the home location, the "admin" ! And I use same credentials in homebridge integration... Sorry, it doesn't help a lot !
@Airwolf33 , I have a feeling that it has to do with the Ring Alarm security panel. I see that the Homebridge app handles that type of communication, but that is far too complex for me to do without a device. Maybe the best approach is to make use of the same ring library that Homebridge uses in the Homey app, but that is also quite a lot of work. I can't guarantee that I will start that journey any time soon unfortunately.
@tokreutz Ok ! Thank you for your help !
@Airwolf33 , I couldn't help myself. I implemented modes using https://github.com/dgreif/ring (the ring api implementation used in Homebridge), and I think I have added support for mode when also having an alarm station active on the location. I can't validate it properly since I don't have an alarm, can you give it a go?
I have added the npm dependency to the project, so you will have to run npm i --only=prod
. This increases the size of the app substantially, so it takes a little longer to install.
@tokreutz Great ! I will try it tomorrow ! Just a question for npm (I am a newbie !!) : under windows terminal i type « npm i --only=prod homey » once Ring app is installed ?
I assume you install the app using the homey cli (as described here https://apps-sdk-v3.developer.athom.com/tutorial-Getting%20Started.html) .
You need to run npm i --only=prod
only once, and before you run either homey app install
or homey app run
.
@tokreutz Here is the result : When I try to add "modes" device in homey, it ask for my credentials and 2FA code. Then it show "looking for device" and nothing happens until "timeout after 3000ms". Try again : credentials are stored, so it only show "looking for device" and "timeout after 3000ms"
@Airwolf33 I made some updates, can you try again?
@tokreutz Same as this morning, timed out after 3000ms
@Airwolf33 , if you install the app using homey app run
there will be some errors in the logs that can help identify what the error is. Are you able to try that and come back with the errors? Logs will be output in the console.
Thanks again for testing this out :)
@tokreutz com.amazon.ring running... 2021-04-13 13:58:08 [log] [ManagerDrivers] [doorbell] onInit 2021-04-13 13:58:08 [log] [ManagerDrivers] [chime] onInit 2021-04-13 13:58:08 [log] [ManagerDrivers] [stickupcam] onInit 2021-04-13 13:58:08 [log] [ManagerDrivers] [mode] onInit _verifyAuthentication _authenticate _https_auth_mfa_refresh _https_auth_mfa_refresh: update cached refresh token for later use _onSetSettings ringRefreshToken _onSetSettings ringBearer _https_token _onSetSettings ringAccesstoken _refreshDevice _https GET api.ring.com /clients_api/dings/active null _refreshDevice _https GET api.ring.com /clients_api/dings/active null _refreshDevice _https GET api.ring.com /clients_api/dings/active null _refreshDevice _https GET api.ring.com /clients_api/dings/active null _refreshDevice _https GET api.ring.com /clients_api/dings/active null _refreshDevice _https GET api.ring.com /clients_api/dings/active null
I go to Homey, add device, Mode, and no timeout this time !!
2021-04-13 14:00:15 [log] [ManagerDrivers] [mode] onPair start view loading, check validation API is already authenticated, skip authentication 2021-04-13 14:00:17 [log] [ManagerDrivers] [mode] _onPairListDevices 2021-04-13 14:00:17 [log] [ManagerDrivers] [mode] [ Location { subscriptions: [ [Subscriber], [Subscriber] ], locationDetails: { location_id: '', My location owner_id: My Id, name: 'My name', geo_coordinates: [Object], address: [Object], user_verified: true, geo_service_verified: 'address_coordinates', created_at: '2020-05-18T03:18:28Z', updated_at: '2020-05-18T03:18:28Z' }, cameras: [ [RingCamera], [RingCamera], [RingCamera], [RingCamera], [RingCamera], [RingCamera], [RingCamera], [RingCamera] ], chimes: [ [RingChime] ], options: { hasHubs: true, hasAlarmBaseStation: true, locationModePollingSeconds: 10 }, restClient: RingRestClient { authOptions: [Object], refreshToken: 'my token', hardwareIdPromise: [Promise], authPromise: [Promise], sessionPromise: [Promise], using2fa: false, onRefreshTokenUpdated: [ReplaySubject] }, seq: 1, onMessage: Subject { _isScalar: false, observers: [Array], closed: false, isStopped: false, hasError: false, thrownError: null }, onDataUpdate: Subject { _isScalar: false, observers: [Array], closed: false, isStopped: false, hasError: false, thrownError: null }, onDeviceDataUpdate: AnonymousSubject { _isScalar: false, observers: [], closed: false, isStopped: false, hasError: false, thrownError: null, destination: [AnonymousSubject], source: [AnonymousSubject], operator: [MapOperator] }, onDeviceList: AnonymousSubject { _isScalar: false, observers: [], closed: false, isStopped: false, hasError: false, thrownError: null, destination: [Subject], source: [Subject], operator: [FilterOperator] }, onDevices: AnonymousSubject { _isScalar: false, observers: [], closed: false, isStopped: false, hasError: false, thrownError: null, destination: [AnonymousSubject], source: [AnonymousSubject], operator: [RefCountOperator] }, onSessionInfo: AnonymousSubject { _isScalar: false, observers: [], closed: false, isStopped: false, hasError: false, thrownError: null, destination: [AnonymousSubject], source: [AnonymousSubject], operator: [MapOperator] }, onConnected: BehaviorSubject { _isScalar: false, observers: [], closed: false, isStopped: false, hasError: false, thrownError: null, _value: false }, onLocationMode: ReplaySubject { _isScalar: false, observers: [], closed: false, isStopped: false, hasError: false, thrownError: null, scheduler: undefined, _events: [], _infiniteTimeWindow: true, _bufferSize: 1, _windowTime: Infinity, next: [Function] }, onLocationModeRequested: Subject { _isScalar: false, observers: [], closed: false, isStopped: false, hasError: false, thrownError: null }, reconnecting: false, disconnected: false, receivedAssetDeviceLists: [], offlineAssets: [], hasHubs: true, hasAlarmBaseStation: true } ] 2021-04-13 14:00:17 [log] [ManagerDrivers] [mode] [ { name: 'my name', data: { id: 'my id' } } ] _refreshDevice _https GET api.ring.com /clients_api/dings/active null 2021-04-13 14:00:19 [log] [ManagerDrivers] [mode] [0] Device init 2021-04-13 14:00:19 [log] [ManagerDrivers] [mode] [0] Name: Exireuil 2021-04-13 14:00:19 [log] [ManagerDrivers] [mode] [0] Class: homealarm 2021-04-13 14:00:19 [log] [ManagerDrivers] [mode] [0] onAdded _refreshDevice
@tokreutz mode is created, but not synced with Ring App, and when I try to change mode, I got "Response code 400 (Bad Request)
@Airwolf33 , I added some more logging, can you do the same experiment again?
@tokreutz
com.amazon.ring running... 2021-04-13 14:35:53 [log] [ManagerDrivers] [doorbell] onInit 2021-04-13 14:35:53 [log] [ManagerDrivers] [chime] onInit 2021-04-13 14:35:53 [log] [ManagerDrivers] [stickupcam] onInit 2021-04-13 14:35:53 [log] [ManagerDrivers] [mode] onInit _verifyAuthentication _authenticate _https_auth_mfa_refresh _https_auth_mfa_refresh: update cached refresh token for later use _onSetSettings ringRefreshToken _onSetSettings ringBearer _https_token _onSetSettings ringAccesstoken _refreshDevice _https GET api.ring.com /clients_api/dings/active null _refreshDevice _https GET api.ring.com /clients_api/dings/active null _refreshDevice _https GET api.ring.com /clients_api/dings/active null 2021-04-13 14:36:10 [log] [ManagerDrivers] [mode] onPair start view loading, check validation API is already authenticated, skip authentication 2021-04-13 14:36:11 [log] [ManagerDrivers] [mode] _onPairListDevices 2021-04-13 14:36:11 [log] [ManagerDrivers] [mode] [ Location { subscriptions: [ [Subscriber], [Subscriber] ], locationDetails: { location_id: 'MYID', owner_id: MYID, name: 'MYNAME', geo_coordinates: [Object], address: [Object], user_verified: true, geo_service_verified: 'address_coordinates', created_at: '2020-05-18T03:18:28Z', updated_at: '2020-05-18T03:18:28Z' }, cameras: [ [RingCamera], [RingCamera], [RingCamera], [RingCamera], [RingCamera], [RingCamera], [RingCamera], [RingCamera] ], chimes: [ [RingChime] ], options: { hasHubs: true, hasAlarmBaseStation: true, locationModePollingSeconds: 10 }, restClient: RingRestClient { authOptions: [Object], refreshToken: 'MYTOKEN', hardwareIdPromise: [Promise], authPromise: [Promise], sessionPromise: [Promise], using2fa: false, onRefreshTokenUpdated: [ReplaySubject] }, seq: 1, onMessage: Subject { _isScalar: false, observers: [Array], closed: false, isStopped: false, hasError: false, thrownError: null }, onDataUpdate: Subject { _isScalar: false, observers: [Array], closed: false, isStopped: false, hasError: false, thrownError: null }, onDeviceDataUpdate: AnonymousSubject { _isScalar: false, observers: [], closed: false, isStopped: false, hasError: false, thrownError: null, destination: [AnonymousSubject], source: [AnonymousSubject], operator: [MapOperator] }, onDeviceList: AnonymousSubject { _isScalar: false, observers: [], closed: false, isStopped: false, hasError: false, thrownError: null, destination: [Subject], source: [Subject], operator: [FilterOperator] }, onDevices: AnonymousSubject { _isScalar: false, observers: [], closed: false, isStopped: false, hasError: false, thrownError: null, destination: [AnonymousSubject], source: [AnonymousSubject], operator: [RefCountOperator] }, onSessionInfo: AnonymousSubject { _isScalar: false, observers: [], closed: false, isStopped: false, hasError: false, thrownError: null, destination: [AnonymousSubject], source: [AnonymousSubject], operator: [MapOperator] }, onConnected: BehaviorSubject { _isScalar: false, observers: [], closed: false, isStopped: false, hasError: false, thrownError: null, _value: false }, onLocationMode: ReplaySubject { _isScalar: false, observers: [], closed: false, isStopped: false, hasError: false, thrownError: null, scheduler: undefined, _events: [], _infiniteTimeWindow: true, _bufferSize: 1, _windowTime: Infinity, next: [Function] }, onLocationModeRequested: Subject { _isScalar: false, observers: [], closed: false, isStopped: false, hasError: false, thrownError: null }, reconnecting: false, disconnected: false, receivedAssetDeviceLists: [], offlineAssets: [], hasHubs: true, hasAlarmBaseStation: true } ] 2021-04-13 14:36:11 [log] [ManagerDrivers] [mode] [ { name: 'MY NAME', data: { id: 'MY ID' } } ] _refreshDevice _https GET api.ring.com /clients_api/dings/active null 2021-04-13 14:36:13 [log] [ManagerDrivers] [mode] [0] Device init 2021-04-13 14:36:13 [log] [ManagerDrivers] [mode] [0] Name: MY ALARM NAME 2021-04-13 14:36:13 [log] [ManagerDrivers] [mode] [0] Class: homealarm 2021-04-13 14:36:13 [log] [ManagerDrivers] [mode] [0] onAdded 2021-04-13 14:36:18 [log] [ManagerDrivers] [mode] [0] onCapabilityHomeAlarmState: disarmed setMode supportsLocationModeSwitching true _refreshDevice _https GET api.ring.com /clients_api/dings/active null _refreshDevice _https GET api.ring.com /clients_api/dings/active null _refreshDevice _https GET api.ring.com /clients_api/dings/active null _refreshDevice _https GET api.ring.com /clients_api/dings/active null
@tokreutz at the end I have tried do change mode from "Blank" to "DISARMED" using homey app, but got Error 400
@Airwolf33 I found something based on the logs that might cause this behavior. Can you try again, and then if you still get an error, please share the logs so that I can debug again.
@tokreutz New error : When I try to change mode : Unable to set location mode
_https GET api.ring.com /clients_api/dings/active null 2021-04-13 15:14:23 [log] [ManagerDrivers] [mode] [0] onCapabilityHomeAlarmState: partially_armed 2021-04-13 15:14:24 [log] [ManagerDrivers] [mode] [0] refreshMode disarmed 2021-04-13 15:14:24 [log] [ManagerDrivers] [mode] [0] refreshMode disarmed setMode currentMode { mode: 'disarmed', lastUpdateTimeMS: 1618290002422, securityStatus: { lu: 1618290002422, md: 'none', returnTopic: 'core-ct-response.30021.303' }, readOnly: false, notYetParticipatingInMode: [], responseTimestamp: 1618319663000 } setMode supportsLocationModeSwitching false hasAlarmBaseStation|hasHubs true true 2021-04-13 15:14:24 [err] [ManagerDrivers] [mode] [0] Error: invalid_device_by_appid at Remote Process { code: 404 } 2021-04-13 15:14:24 [err] [ManagerDrivers] [mode] [0] Error: invalid_device_by_appid at Remote Process { code: 404 } _refreshDevice _https GET api.ring.com /clients_api/dings/active null 2021-04-13 15:14:27 [log] [ManagerDrivers] [mode] [0] onCapabilityHomeAlarmState: partially_armed 2021-04-13 15:14:27 [log] [ManagerDrivers] [mode] [0] refreshMode disarmed 2021-04-13 15:14:27 [log] [ManagerDrivers] [mode] [0] refreshMode disarmed setMode currentMode { mode: 'disarmed', lastUpdateTimeMS: 1618290002422, securityStatus: { lu: 1618290002422, md: 'none', returnTopic: 'core-ct-response.30021.303' }, readOnly: false, notYetParticipatingInMode: [], responseTimestamp: 1618319667000 } setMode supportsLocationModeSwitching false hasAlarmBaseStation|hasHubs true true 2021-04-13 15:14:27 [err] [ManagerDrivers] [mode] [0] Error: invalid_device_by_appid at Remote Process { code: 404 } 2021-04-13 15:14:27 [err] [ManagerDrivers] [mode] [0] Error: invalid_device_by_appid at Remote Process { code: 404 } _refreshDevice _https GET api.ring.com /clients_api/dings/active null _refreshDevice _https GET api.ring.com /clients_api/dings/active null _refreshDevice _https GET api.ring.com /clients_api/dings/active null _refreshDevice _https GET api.ring.com /clients_api/dings/active null _refreshDevice _https GET api.ring.com /clients_api/dings/active null
@Airwolf33 , are you willing to try again? I found a bug that might be the cause. Thanks.
@tokreutz WE GOT IT !!! It works !! Thanks a lot !!
Great! Then I know what to do to get a PR ready ;)
Thanks again for testing this out 😊
@tokreutz Just one thing : I can change mode using Homey. It's ok. And in Ring App mode is synced. But if I change mode using Ring App, it is not synced in Homey.
@Airwolf33 , I have attempted to get the alarm state using the Ring Alarm base station in a new update to my branch, and I hope I got the API right (sort of writing in the blind with no device on my own). I hope you can help out testing this one again?
Regardless if it works or not, I will be very interested in the logs for this version.
Thanks.
@tokreutz Same as before : I can change mode using Homey. It's ok. And in Ring App mode is synced. But if I change mode using Ring App, it is not synced in Homey
com.amazon.ring running... 2021-04-20 20:19:02 [log] [ManagerDrivers] [doorbell] onInit 2021-04-20 20:19:02 [log] [ManagerDrivers] [chime] onInit 2021-04-20 20:19:02 [log] [ManagerDrivers] [stickupcam] onInit 2021-04-20 20:19:02 [log] [ManagerDrivers] [mode] onInit _verifyAuthentication _authenticate _https_auth_mfa_refresh _https_auth_mfa_refresh: update cached refresh token for later use _onSetSettings ringRefreshToken _onSetSettings ringBearer _https_token _onSetSettings ringAccesstoken _refreshDevice _https GET api.ring.com /clients_api/dings/active null _refreshDevice _https GET api.ring.com /clients_api/dings/active null 2021-04-20 20:19:14 [log] [ManagerDrivers] [mode] onPair start view loading, check validation API is already authenticated, skip authentication 2021-04-20 20:19:16 [log] [ManagerDrivers] [mode] _onPairListDevices _refreshDevice _https GET api.ring.com /clients_api/dings/active null 2021-04-20 20:19:18 [log] [ManagerDrivers] [mode] [0] Device init 2021-04-20 20:19:18 [log] [ManagerDrivers] [mode] [0] Name: Exireuil 2021-04-20 20:19:18 [log] [ManagerDrivers] [mode] [0] Class: homealarm 2021-04-20 20:19:18 [log] [ManagerDrivers] [mode] [0] onAdded _refreshDevice _https GET api.ring.com /clients_api/dings/active null _refreshDevice _https GET api.ring.com /clients_api/dings/active null _refreshDevice _https GET api.ring.com /clients_api/dings/active null_https GET api.ring.com /clients_api/dings/active null 2021-04-20 20:20:57 [log] [ManagerDrivers] [mode] [0] onCapabilityHomeAlarmState: disarmed _refreshDevice _https GET api.ring.com /clients_api/dings/active null _refreshDevices _https GET api.ring.com /clients_api/ring_devices null _verifyAuthentication _refreshDevice _https GET api.ring.com /clients_api/dings/active null 2021-04-20 20:21:04 [log] [ManagerDrivers] [mode] [0] refreshModeDevice use_alarm_mode 2021-04-20 20:21:04 [log] [ManagerDrivers] [mode] [0] useAlarmMode use_alarm_mode _refreshDevice _https GET api.ring.com /clients_api/dings/active null _refreshDevice _https GET api.ring.com /clients_api/dings/active null 2021-04-20 20:21:17 [log] [ManagerDrivers] [mode] [0] onCapabilityHomeAlarmState: partially_armed _refreshDevice _https GET api.ring.com /clients_api/dings/active null _refreshDevice _https GET api.ring.com /clients_api/dings/active null _refreshDevice _https GET api.ring.com /clients_api/dings/active null _refreshDevice _https GET api.ring.com /clients_api/dings/active null _refreshDevice _https GET api.ring.com /clients_api/dings/active null _refreshDevice
@Airwolf33, Pushed an update. Care to try again?
@tokreutz Same as before, its not synced Ring -> Homey, but its ok Homey-> Ring
2021-04-21 08:35:03 [log] [ManagerDrivers] [mode] [0] refreshAlarmMode {
acStatus: 'ok',
adapterType: 'none',
batteryStatus: 'charged',
catalogId: 'ID',
categoryId: 31,
commStatus: 'ok',
commandTypes: {
'hub.action': { requiresTrust: false },
'hub.check-cellular': { requiresTrust: false },
'hub.force-broadband': { requiresTrust: false },
'hub.force-cell': { requiresTrust: false },
'hub.reboot': { requiresTrust: false },
'hub.reset-system': { requiresTrust: false },
'hub.scan-cell': { requiresTrust: false },
'locale.get-supported': { requiresTrust: false },
'locale.set': { requiresTrust: false }
},
deviceFoundTime: 1601563280986,
deviceType: 'hub.redsky',
lastCommTime: 0,
lastUpdate: 1618982770115,
managerId: 'redsky',
name: 'Base Station',
pollInterval: 0,
roomId: 7,
serialNumber: 'SERIAL',
setupByPluginStatus: 'complete',
setupByUserStatus: 'unset',
subCategoryId: 0,
tags: [ 'unremovable' ],
tamperStatus: 'ok',
zid: '1ID',
APN: 'ringsol-prod01.com.attz',
batteryBackup: 'charged',
brightness: 1,
hasSubscription: true,
lastNetworkLatencyEvent: 1618971300000,
locale: 'fr-fr',
networkConnection: 'wlan0',
networks: {
ppp0: {
cellConnectionType: 'LTE',
gateway: 'IP',
interfaceStatus: 'inactive',
ipAddress: 'IP',
name: 'CARRIER',
networkMask: 'SUB MASK',
provider: 'att',
rssi: -103,
signalStrength: 'three',
type: 'cellular'
},
wlan0: {
bssid: 'MACID',
dns: [Array],
gateway: 'IP',
interfaceStatus: 'active',
ipAddress: 'IP',
name: 'WiFi',
networkMask: 'SUBMASK',
rssi: -42,
signalStrength: 'four',
ssid: 'SSID',
type: 'wifi'
}
},
platform: { hwregion: 'E', product: 'AV2' },
version: { buildNumber: '32', softwareVersion: '1.38.0' },
volume: 0.8608757
}
(node:25545) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'getAlarmMode' of undefined
at DeviceMode.refreshAlarmMode (/drivers/mode/device.js:77:42)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:25545) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:25545) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
2021-04-21 08:35:04 [log] [ManagerDrivers] [mode] _refreshModeDevices
2021-04-21 08:35:04 [log] [ManagerDrivers] [mode] [0] refreshModeDevice use_alarm_mode
2021-04-21 08:35:04 [log] [ManagerDrivers] [mode] [0] useAlarmMode use_alarm_mode
2021-04-21 08:35:04 [log] [ManagerDrivers] [mode] _refreshLocationsDevices
_refreshDevice
_https GET api.ring.com /clients_api/dings/active null
2021-04-21 08:35:07 [log] [ManagerDrivers] [mode] _refreshModeDevices
2021-04-21 08:35:07 [log] [ManagerDrivers] [mode] [0] refreshModeDevice use_alarm_mode
2021-04-21 08:35:07 [log] [ManagerDrivers] [mode] [0] useAlarmMode use_alarm_mode
2021-04-21 08:35:07 [log] [ManagerDrivers] [mode] _refreshLocationsDevices
_refreshDevice
_https GET api.ring.com /clients_api/dings/active null
2021-04-21 08:35:10 [log] [ManagerDrivers] [mode] _refreshModeDevices
2021-04-21 08:35:10 [log] [ManagerDrivers] [mode] [0] refreshModeDevice use_alarm_mode
2021-04-21 08:35:10 [log] [ManagerDrivers] [mode] [0] useAlarmMode use_alarm_mode
2021-04-21 08:35:10 [log] [ManagerDrivers] [mode] _refreshLocationsDevices
2021-04-21 08:35:13 [log] [ManagerDrivers] [mode] _refreshModeDevices
2021-04-21 08:35:13 [log] [ManagerDrivers] [mode] [0] refreshModeDevice use_alarm_mode
2021-04-21 08:35:13 [log] [ManagerDrivers] [mode] [0] useAlarmMode use_alarm_mode
2021-04-21 08:35:13 [log] [ManagerDrivers] [mode] _refreshLocationsDevices
_refreshDevice
_https GET api.ring.com /clients_api/dings/active null
2021-04-21 08:35:16 [log] [ManagerDrivers] [mode] _refreshModeDevices
2021-04-21 08:35:16 [log] [ManagerDrivers] [mode] [0] refreshModeDevice use_alarm_mode
2021-04-21 08:35:16 [log] [ManagerDrivers] [mode] [0] useAlarmMode use_alarm_mode
2021-04-21 08:35:16 [log] [ManagerDrivers] [mode] _refreshLocationsDevices
2021-04-21 08:35:19 [log] [ManagerDrivers] [mode] _refreshModeDevices
2021-04-21 08:35:19 [log] [ManagerDrivers] [mode] [0] refreshModeDevice use_alarm_mode
2021-04-21 08:35:19 [log] [ManagerDrivers] [mode] [0] useAlarmMode use_alarm_mode
2021-04-21 08:35:19 [log] [ManagerDrivers] [mode] _refreshLocationsDevices
_refreshDevice
_https GET api.ring.com /clients_api/dings/active null
2021-04-21 08:35:22 [log] [ManagerDrivers] [mode] _refreshModeDevices
2021-04-21 08:35:22 [log] [ManagerDrivers] [mode] [0] refreshModeDevice use_alarm_mode
2021-04-21 08:35:22 [log] [ManagerDrivers] [mode] [0] useAlarmMode use_alarm_mode
2021-04-21 08:35:22 [log] [ManagerDrivers] [mode] _refreshLocationsDevices
Thanks @Airwolf33 , posted another update.
@tokreutz Same as before
2021-04-21 10:28:13 [log] [ManagerDrivers] [mode] [0] none 2021-04-21 10:28:13 [log] [ManagerDrivers] [mode] _refreshLocationsDevices 2021-04-21 10:28:16 [log] [ManagerDrivers] [mode] _refreshModeDevices 2021-04-21 10:28:16 [log] [ManagerDrivers] [mode] [0] refreshModeDevice use_alarm_mode 2021-04-21 10:28:16 [log] [ManagerDrivers] [mode] [0] useAlarmMode use_alarm_mode 2021-04-21 10:28:16 [log] [ManagerDrivers] [mode] _refreshLocationsDevices _refreshDevice _https GET api.ring.com /clients_api/dings/active null 2021-04-21 10:28:19 [log] [ManagerDrivers] [mode] _refreshModeDevices 2021-04-21 10:28:19 [log] [ManagerDrivers] [mode] [0] refreshModeDevice use_alarm_mode 2021-04-21 10:28:19 [log] [ManagerDrivers] [mode] [0] useAlarmMode use_alarm_mode 2021-04-21 10:28:19 [log] [ManagerDrivers] [mode] _refreshLocationsDevices 2021-04-21 10:28:22 [log] [ManagerDrivers] [mode] _refreshModeDevices 2021-04-21 10:28:22 [log] [ManagerDrivers] [mode] [0] refreshModeDevice use_alarm_mode 2021-04-21 10:28:22 [log] [ManagerDrivers] [mode] [0] useAlarmMode use_alarm_mode 2021-04-21 10:28:22 [log] [ManagerDrivers] [mode] [0] onCapabilityHomeAlarmState: partially_armed 2021-04-21 10:28:22 [log] [ManagerDrivers] [mode] _refreshLocationsDevices _refreshDevice _https GET api.ring.com /clients_api/dings/active null 2021-04-21 10:28:25 [log] [ManagerDrivers] [mode] _refreshModeDevices 2021-04-21 10:28:25 [log] [ManagerDrivers] [mode] [0] refreshModeDevice use_alarm_mode 2021-04-21 10:28:25 [log] [ManagerDrivers] [mode] [0] useAlarmMode use_alarm_mode 2021-04-21 10:28:25 [log] [ManagerDrivers] [mode] _refreshLocationsDevices _refreshDevice _https GET api.ring.com /clients_api/dings/active null 2021-04-21 10:28:28 [log] [ManagerDrivers] [mode] _refreshModeDevices 2021-04-21 10:28:28 [log] [ManagerDrivers] [mode] [0] refreshModeDevice use_alarm_mode 2021-04-21 10:28:28 [log] [ManagerDrivers] [mode] [0] useAlarmMode use_alarm_mode 2021-04-21 10:28:28 [log] [ManagerDrivers] [mode] _refreshLocationsDevices 2021-04-21 10:28:31 [log] [ManagerDrivers] [mode] _refreshModeDevices 2021-04-21 10:28:31 [log] [ManagerDrivers] [mode] [0] refreshModeDevice use_alarm_mode 2021-04-21 10:28:31 [log] [ManagerDrivers] [mode] [0] useAlarmMode use_alarm_mode 2021-04-21 10:28:31 [log] [ManagerDrivers] [mode] _refreshLocationsDevices _refreshDevice _https GET api.ring.com /clients_api/dings/active null 2021-04-21 10:28:34 [log] [ManagerDrivers] [mode] _refreshModeDevices 2021-04-21 10:28:34 [log] [ManagerDrivers] [mode] [0] refreshModeDevice use_alarm_mode 2021-04-21 10:28:34 [log] [ManagerDrivers] [mode] [0] useAlarmMode use_alarm_mode 2021-04-21 10:28:34 [log] [ManagerDrivers] [mode] _refreshLocationsDevices 2021-04-21 10:28:37 [log] [ManagerDrivers] [mode] _refreshModeDevices 2021-04-21 10:28:37 [log] [ManagerDrivers] [mode] [0] refreshModeDevice use_alarm_mode 2021-04-21 10:28:37 [log] [ManagerDrivers] [mode] [0] useAlarmMode use_alarm_mode 2021-04-21 10:28:37 [log] [ManagerDrivers] [mode] _refreshLocationsDevices _refreshDevice _https GET api.ring.com /clients_api/dings/active null 2021-04-21 10:28:40 [log] [ManagerDrivers] [mode] _refreshModeDevices 2021-04-21 10:28:40 [log] [ManagerDrivers] [mode] [0] refreshModeDevice use_alarm_mode 2021-04-21 10:28:40 [log] [ManagerDrivers] [mode] [0] useAlarmMode use_alarm_mode 2021-04-21 10:28:40 [log] [ManagerDrivers] [mode] _refreshLocationsDevices _refreshDevice _https GET api.ring.com /clients_api/dings/active null 2021-04-21 10:28:43 [log] [ManagerDrivers] [mode] _refreshModeDevices 2021-04-21 10:28:43 [log] [ManagerDrivers] [mode] [0] refreshModeDevice use_alarm_mode 2021-04-21 10:28:43 [log] [ManagerDrivers] [mode] [0] useAlarmMode use_alarm_mode 2021-04-21 10:28:43 [log] [ManagerDrivers] [mode] _refreshLocationsDevices 2021-04-21 10:28:46 [log] [ManagerDrivers] [mode] _refreshModeDevices 2021-04-21 10:28:46 [log] [ManagerDrivers] [mode] [0] refreshModeDevice use_alarm_mode 2021-04-21 10:28:46 [log] [ManagerDrivers] [mode] [0] useAlarmMode use_alarm_mode 2021-04-21 10:28:46 [log] [ManagerDrivers] [mode] _refreshLocationsDevices _refreshDevice _https GET api.ring.com /clients_api/dings/active null 2021-04-21 10:28:48 [log] [ManagerDrivers] [mode] [0] onCapabilityHomeAlarmState: disarmed 2021-04-21 10:28:49 [log] [ManagerDrivers] [mode] _refreshModeDevices 2021-04-21 10:28:49 [log] [ManagerDrivers] [mode] [0] refreshModeDevice use_alarm_mode 2021-04-21 10:28:49 [log] [ManagerDrivers] [mode] [0] useAlarmMode use_alarm_mode 2021-04-21 10:28:49 [log] [ManagerDrivers] [mode] _refreshLocationsDevices 2021-04-21 10:28:52 [log] [ManagerDrivers] [mode] _refreshModeDevices 2021-04-21 10:28:52 [log] [ManagerDrivers] [mode] [0] refreshModeDevice use_alarm_mode 2021-04-21 10:28:52 [log] [ManagerDrivers] [mode] [0] useAlarmMode use_alarm_mode 2021-04-21 10:28:52 [log] [ManagerDrivers] [mode] _refreshLocationsDevices _refreshDevice _https GET api.ring.com /clients_api/dings/active null 2021-04-21 10:28:55 [log] [ManagerDrivers] [mode] _refreshModeDevices 2021-04-21 10:28:55 [log] [ManagerDrivers] [mode] [0] refreshModeDevice use_alarm_mode 2021-04-21 10:28:55 [log] [ManagerDrivers] [mode] [0] useAlarmMode use_alarm_mode 2021-04-21 10:28:55 [log] [ManagerDrivers] [mode] _refreshLocationsDevices _refreshDevices _https GET api.ring.com /clients_api/ring_devices null _verifyAuthentication _refreshDevice _https GET api.ring.com /clients_api/dings/active null 2021-04-21 10:28:58 [log] [ManagerDrivers] [mode] _refreshModeDevices 2021-04-21 10:28:58 [log] [ManagerDrivers] [mode] [0] refreshModeDevice use_alarm_mode 2021-04-21 10:28:58 [log] [ManagerDrivers] [mode] [0] useAlarmMode use_alarm_mode 2021-04-21 10:28:58 [log] [ManagerDrivers] [mode] _refreshLocationsDevices 2021-04-21 10:29:01 [log] [ManagerDrivers] [mode] _refreshModeDevices 2021-04-21 10:29:01 [log] [ManagerDrivers] [mode] [0] refreshModeDevice use_alarm_mode 2021-04-21 10:29:01 [log] [ManagerDrivers] [mode] [0] useAlarmMode use_alarm_mode 2021-04-21 10:29:01 [log] [ManagerDrivers] [mode] _refreshLocationsDevices _refreshDevice _https GET api.ring.com /clients_api/dings/active null 2021-04-21 10:29:04 [log] [ManagerDrivers] [mode] _refreshModeDevices 2021-04-21 10:29:04 [log] [ManagerDrivers] [mode] [0] refreshModeDevice use_alarm_mode 2021-04-21 10:29:04 [log] [ManagerDrivers] [mode] [0] useAlarmMode use_alarm_mode 2021-04-21 10:29:04 [log] [ManagerDrivers] [mode] _refreshLocationsDevices 2021-04-21 10:29:07 [log] [ManagerDrivers] [mode] _refreshModeDevices 2021-04-21 10:29:07 [log] [ManagerDrivers] [mode] [0] refreshModeDevice use_alarm_mode 2021-04-21 10:29:07 [log] [ManagerDrivers] [mode] [0] useAlarmMode use_alarm_mode 2021-04-21 10:29:07 [log] [ManagerDrivers] [mode] _refreshLocationsDevices _refreshDevice _https GET api.ring.com /clients_api/dings/active null 2021-04-21 10:29:10 [log] [ManagerDrivers] [mode] _refreshModeDevices 2021-04-21 10:29:10 [log] [ManagerDrivers] [mode] [0] refreshModeDevice use_alarm_mode 2021-04-21 10:29:10 [log] [ManagerDrivers] [mode] [0] useAlarmMode use_alarm_mode 2021-04-21 10:29:10 [log] [ManagerDrivers] [mode] _refreshLocationsDevices _refreshDevice _https GET api.ring.com /clients_api/dings/active null 2021-04-21 10:29:13 [log] [ManagerDrivers] [mode] _refreshModeDevices 2021-04-21 10:29:13 [log] [ManagerDrivers] [mode] [0] refreshModeDevice use_alarm_mode 2021-04-21 10:29:13 [log] [ManagerDrivers] [mode] [0] useAlarmMode use_alarm_mode 2021-04-21 10:29:13 [log] [ManagerDrivers] [mode] _refreshLocationsDevices 2021-04-21 10:29:16 [log] [ManagerDrivers] [mode] _refreshModeDevices 2021-04-21 10:29:16 [log] [ManagerDrivers] [mode] [0] refreshModeDevice use_alarm_mode 2021-04-21 10:29:16 [log] [ManagerDrivers] [mode] [0] useAlarmMode use_alarm_mode 2021-04-21 10:29:16 [log] [ManagerDrivers] [mode] _refreshLocationsDevices
Thanks @Airwolf33 , pushed yet another update. from the logs you shared above, it seems I don't have everything from the beginning. I'm interested in the log lines just after the app starts. there are some things there that I think will be interesting to know regarding how the interaction with the Alarm works.
@tokreutz Same as before. To test, I do : In Homey -> change mode to Partially Armed -> Check in Ring app if it's Partially Armed. If Yes : Disarm in Ring App - > Go to Homey to check if it's disarmed. If it's not synced in homey : Disarm in Homey (but it does nothing as it was previously disarmed by Ring App)
2021-04-21 11:52:03 [log] [ManagerDrivers] [mode] [0] none 2021-04-21 11:52:03 [log] [ManagerDrivers] [mode] _refreshLocationsDevices 2021-04-21 11:52:06 [log] [ManagerDrivers] [mode] _refreshModeDevices 2021-04-21 11:52:06 [log] [ManagerDrivers] [mode] [0] refreshModeDevice use_alarm_mode 2021-04-21 11:52:06 [log] [ManagerDrivers] [mode] [0] useAlarmMode use_alarm_mode 2021-04-21 11:52:06 [log] [ManagerDrivers] [mode] _refreshLocationsDevices 2021-04-21 11:52:07 [log] [ManagerDrivers] [mode] [0] onCapabilityHomeAlarmState: partially_armed _refreshDevice _https GET api.ring.com /clients_api/dings/active null 2021-04-21 11:52:09 [log] [ManagerDrivers] [mode] _refreshModeDevices 2021-04-21 11:52:09 [log] [ManagerDrivers] [mode] [0] refreshModeDevice use_alarm_mode 2021-04-21 11:52:09 [log] [ManagerDrivers] [mode] [0] useAlarmMode use_alarm_mode 2021-04-21 11:52:09 [log] [ManagerDrivers] [mode] _refreshLocationsDevices 2021-04-21 11:52:12 [log] [ManagerDrivers] [mode] _refreshModeDevices 2021-04-21 11:52:12 [log] [ManagerDrivers] [mode] [0] refreshModeDevice use_alarm_mode 2021-04-21 11:52:12 [log] [ManagerDrivers] [mode] [0] useAlarmMode use_alarm_mode 2021-04-21 11:52:12 [log] [ManagerDrivers] [mode] _refreshLocationsDevices _refreshDevice _https GET api.ring.com /clients_api/dings/active null 2021-04-21 11:52:15 [log] [ManagerDrivers] [mode] _refreshModeDevices 2021-04-21 11:52:15 [log] [ManagerDrivers] [mode] [0] refreshModeDevice use_alarm_mode 2021-04-21 11:52:15 [log] [ManagerDrivers] [mode] [0] useAlarmMode use_alarm_mode 2021-04-21 11:52:15 [log] [ManagerDrivers] [mode] _refreshLocationsDevices _refreshDevice _https GET api.ring.com /clients_api/dings/active null 2021-04-21 11:52:18 [log] [ManagerDrivers] [mode] _refreshModeDevices 2021-04-21 11:52:18 [log] [ManagerDrivers] [mode] [0] refreshModeDevice use_alarm_mode 2021-04-21 11:52:18 [log] [ManagerDrivers] [mode] [0] useAlarmMode use_alarm_mode 2021-04-21 11:52:18 [log] [ManagerDrivers] [mode] _refreshLocationsDevices 2021-04-21 11:52:21 [log] [ManagerDrivers] [mode] _refreshModeDevices 2021-04-21 11:52:21 [log] [ManagerDrivers] [mode] [0] refreshModeDevice use_alarm_mode 2021-04-21 11:52:21 [log] [ManagerDrivers] [mode] [0] useAlarmMode use_alarm_mode 2021-04-21 11:52:21 [log] [ManagerDrivers] [mode] _refreshLocationsDevices _refreshDevice _https GET api.ring.com /clients_api/dings/active null 2021-04-21 11:52:24 [log] [ManagerDrivers] [mode] _refreshModeDevices 2021-04-21 11:52:24 [log] [ManagerDrivers] [mode] [0] refreshModeDevice use_alarm_mode 2021-04-21 11:52:24 [log] [ManagerDrivers] [mode] [0] useAlarmMode use_alarm_mode 2021-04-21 11:52:24 [log] [ManagerDrivers] [mode] _refreshLocationsDevices 2021-04-21 11:52:27 [log] [ManagerDrivers] [mode] _refreshModeDevices 2021-04-21 11:52:27 [log] [ManagerDrivers] [mode] [0] refreshModeDevice use_alarm_mode 2021-04-21 11:52:27 [log] [ManagerDrivers] [mode] [0] useAlarmMode use_alarm_mode 2021-04-21 11:52:27 [log] [ManagerDrivers] [mode] _refreshLocationsDevices _refreshDevice _https GET api.ring.com /clients_api/dings/active null 2021-04-21 11:52:30 [log] [ManagerDrivers] [mode] _refreshModeDevices 2021-04-21 11:52:30 [log] [ManagerDrivers] [mode] [0] refreshModeDevice use_alarm_mode 2021-04-21 11:52:30 [log] [ManagerDrivers] [mode] [0] useAlarmMode use_alarm_mode 2021-04-21 11:52:31 [log] [ManagerDrivers] [mode] _refreshLocationsDevices _refreshDevices _https GET api.ring.com /clients_api/ring_devices null _verifyAuthentication _refreshDevice _https GET api.ring.com /clients_api/dings/active null 2021-04-21 11:52:33 [log] [ManagerDrivers] [mode] _refreshModeDevices 2021-04-21 11:52:33 [log] [ManagerDrivers] [mode] [0] refreshModeDevice use_alarm_mode 2021-04-21 11:52:33 [log] [ManagerDrivers] [mode] [0] useAlarmMode use_alarm_mode 2021-04-21 11:52:34 [log] [ManagerDrivers] [mode] _refreshLocationsDevices 2021-04-21 11:52:36 [log] [ManagerDrivers] [mode] _refreshModeDevices 2021-04-21 11:52:36 [log] [ManagerDrivers] [mode] [0] refreshModeDevice use_alarm_mode 2021-04-21 11:52:36 [log] [ManagerDrivers] [mode] [0] useAlarmMode use_alarm_mode 2021-04-21 11:52:37 [log] [ManagerDrivers] [mode] _refreshLocationsDevices _refreshDevice _https GET api.ring.com /clients_api/dings/active null 2021-04-21 11:52:39 [log] [ManagerDrivers] [mode] _refreshModeDevices 2021-04-21 11:52:39 [log] [ManagerDrivers] [mode] [0] refreshModeDevice use_alarm_mode 2021-04-21 11:52:39 [log] [ManagerDrivers] [mode] [0] useAlarmMode use_alarm_mode 2021-04-21 11:52:40 [log] [ManagerDrivers] [mode] _refreshLocationsDevices 2021-04-21 11:52:42 [log] [ManagerDrivers] [mode] [0] onCapabilityHomeAlarmState: disarmed 2021-04-21 11:52:42 [log] [ManagerDrivers] [mode] _refreshModeDevices 2021-04-21 11:52:42 [log] [ManagerDrivers] [mode] [0] refreshModeDevice use_alarm_mode 2021-04-21 11:52:42 [log] [ManagerDrivers] [mode] [0] useAlarmMode use_alarm_mode 2021-04-21 11:52:43 [log] [ManagerDrivers] [mode] _refreshLocationsDevices _refreshDevice _https GET api.ring.com /clients_api/dings/active null 2021-04-21 11:52:45 [log] [ManagerDrivers] [mode] _refreshModeDevices 2021-04-21 11:52:45 [log] [ManagerDrivers] [mode] [0] refreshModeDevice use_alarm_mode 2021-04-21 11:52:45 [log] [ManagerDrivers] [mode] [0] useAlarmMode use_alarm_mode 2021-04-21 11:52:46 [log] [ManagerDrivers] [mode] _refreshLocationsDevices _refreshDevice _https GET api.ring.com /clients_api/dings/active null 2021-04-21 11:52:48 [log] [ManagerDrivers] [mode] _refreshModeDevices 2021-04-21 11:52:48 [log] [ManagerDrivers] [mode] [0] refreshModeDevice use_alarm_mode 2021-04-21 11:52:48 [log] [ManagerDrivers] [mode] [0] useAlarmMode use_alarm_mode 2021-04-21 11:52:49 [log] [ManagerDrivers] [mode] _refreshLocationsDevices 2021-04-21 11:52:51 [log] [ManagerDrivers] [mode] _refreshModeDevices 2021-04-21 11:52:51 [log] [ManagerDrivers] [mode] [0] refreshModeDevice use_alarm_mode 2021-04-21 11:52:51 [log] [ManagerDrivers] [mode] [0] useAlarmMode use_alarm_mode 2021-04-21 11:52:52 [log] [ManagerDrivers] [mode] _refreshLocationsDevices
@tokreutz here are the logs when the app start : Log.txt
I'm Sorry but I have to change my ID's with "ID" for privacy. If you want the unmasked log, maybe it's better to go private.
@Airwolf33 , I need more of the logs actually. Where can I reach out to you in a more private channel? Are you part of the Homey Slack? https://slack.athom.com/
@Airwolf33 , we'll follow up by mail.
Hello, Unless I missed something, Ring App allows to enable motion control per individual devices, but doesn’t allow to activate a Mode, which triggers action on the whole set of devices. Could you please confirm? Thanks Guillaume