haruny / adt-pulse-mqtt

ADT Pulse Bridge for Home Assistant
MIT License
10 stars 5 forks source link

only getting one device #42

Closed gary-albano closed 3 years ago

gary-albano commented 3 years ago

With this version, I seem to pull one device, and it was getting in my case my back door -or- office motion. it was not pulling all the sensors. I have both haruny and digitalcraig version I am using digitalcraig right now, and seems to be working. Note: I had to remove the repo and re add it to get the updated version (haruny), it fix the previous issue, but then I found this new issue. If you guys are on discord, I don't mind using discord for some contact to help test and what not. MrCrash#5397

digitalcraig commented 3 years ago

Did you resolve the mqtt connection issue? The reason it didn't pick up the dependency changes were because I didn't bump the version number. I'll be releasing 2.3.1 soon with those changes and some other refactoring. If it's working for now, I'd recommend waiting for that to do any further troubleshooting.

However, if you want to post your /myhome//ajax/orb.jsp source from the pulse portal and add-on logs (feel free to scrub anything identifying), I can run it through the automated tests I'm working on There should should be no differences between the two repos other than one is locally built and one is hosted on Docker Hub. The codebases are nearly identical so I can't explain why one only sees one sensor and the other shows them all.

gary-albano commented 3 years ago

The example of only getting one sensor

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.

> pulse-adt-mqtt@2.3.0 start /usr/src/app
> node server.js

1/23/2021, 5:39:25 PM Pulse.pulse Spanning
1/23/2021, 5:39:25 PM Pulse: New Client undefined
1/23/2021, 5:39:25 PM Pulse: Login called Authenticating
MQTT Sub to: home/alarm/cmd
1/23/2021, 5:39:26 PM Pulse: Authentication Received Pathname: /myhome/20.0.0-244/access/signin.jsp
1/23/2021, 5:39:26 PM Pulse: Authentication Page Version: 20.0.0-244
1/23/2021, 5:39:26 PM Pulse: Authentication New URL Prefix /myhome/20.0.0-244
1/23/2021, 5:39:26 PM Pulse: Authentication  Calling https://portal.adtpulse.com/myhome/20.0.0-244/access/signin.jsp?e=n&e=n&&partner=adt
1/23/2021, 5:39:30 PM Pulse.Sync: Sync stuck?
1/23/2021, 5:39:30 PM Pulse: Authentication Success
1/23/2021, 5:39:30 PM Pulse: updateAll
1/23/2021, 5:39:30 PM Pulse.getAlarmStatus: Getting Alarm Statuses
1/23/2021, 5:39:30 PM Pulse.Sync: Syncing 2-0-0
1/23/2021, 5:39:30 PM Pulse: updateAll
1/23/2021, 5:39:30 PM Pulse.getAlarmStatus: Getting Alarm Statuses
1/23/2021, 5:39:31 PM: Pushing alarm state: disarmed to home/alarm/state
1/23/2021, 5:39:31 PM Pulse.getDeviceStatus: Getting Device Statuses
1/23/2021, 5:39:31 PM Pulse.getZoneStatus(via Orb): Getting Zone Statuses
1/23/2021, 5:39:31 PM Pulse.getDeviceStatus No other devices found
1/23/2021, 5:39:31 PM Pulse.getDeviceStatus: Getting Device Statuses
1/23/2021, 5:39:31 PM Pulse.getZoneStatus(via Orb): Getting Zone Statuses
1/23/2021, 5:39:31 PMADT Pulse: Get zone status (via orb) success.
1/23/2021, 5:39:31 PM Sensor: sensor-2 Name: back door Tags: sensor State devStatOK
1/23/2021, 5:39:31 PM: Pushing device state: devStatOK to topic adt/zone/back door/state
1/23/2021, 5:39:31 PM Pulse.getDeviceStatus No other devices found
1/23/2021, 5:39:31 PMADT Pulse: Get zone status (via orb) success.
1/23/2021, 5:39:31 PM Sensor: sensor-2 Name: back door Tags: sensor State devStatOK
1/23/2021, 5:39:35 PM Pulse.Sync: Syncing 172884-172767-0
1/23/2021, 5:39:35 PM Pulse: updateAll
1/23/2021, 5:39:35 PM Pulse.getAlarmStatus: Getting Alarm Statuses
1/23/2021, 5:39:35 PM Pulse.getDeviceStatus: Getting Device Statuses
1/23/2021, 5:39:35 PM Pulse.getZoneStatus(via Orb): Getting Zone Statuses
1/23/2021, 5:39:35 PM Pulse.getDeviceStatus No other devices found
1/23/2021, 5:39:35 PMADT Pulse: Get zone status (via orb) success.
1/23/2021, 5:39:35 PM Sensor: sensor-2 Name: back door Tags: sensor State devStatOK
1/23/2021, 5:39:35 PM: Pushing device state: devStatOK to topic adt/zone/back door/state
1/23/2021, 5:39:40 PM Pulse.Sync: Syncing 172884-172767-0
1/23/2021, 5:39:45 PM Pulse.Sync: Syncing 172884-172767-0
gary-albano commented 3 years ago

getting all the sensors

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.

> pulse-adt-mqtt@2.3.0 start /usr/src/app
> node server.js

1/23/2021, 5:41:43 PM Pulse.pulse Spanning
1/23/2021, 5:41:43 PM Pulse: New Client undefined
1/23/2021, 5:41:43 PM Pulse: Login called Authenticating
MQTT Sub to: home/alarm/cmd
1/23/2021, 5:41:44 PM Pulse: Authentication Received Pathname: /myhome/20.0.0-244/access/signin.jsp
1/23/2021, 5:41:44 PM Pulse: Authentication Page Version: 20.0.0-244
1/23/2021, 5:41:44 PM Pulse: Authentication New URL Prefix /myhome/20.0.0-244
1/23/2021, 5:41:44 PM Pulse: Authentication  Calling https://portal.adtpulse.com/myhome/20.0.0-244/access/signin.jsp?e=n&e=n&&partner=adt
1/23/2021, 5:41:48 PM Pulse.Sync: Sync stuck?
1/23/2021, 5:41:49 PM Pulse: Authentication Success
1/23/2021, 5:41:49 PM Pulse: updateAll
1/23/2021, 5:41:49 PM Pulse.getAlarmStatus: Getting Alarm Statuses
1/23/2021, 5:41:49 PM Pulse.Sync: Syncing 2-0-0
1/23/2021, 5:41:49 PM Pulse: updateAll
1/23/2021, 5:41:49 PM Pulse.getAlarmStatus: Getting Alarm Statuses
1/23/2021, 5:41:49 PM: Pushing alarm state: disarmed to home/alarm/state
1/23/2021, 5:41:49 PM Pulse.getDeviceStatus: Getting Device Statuses
1/23/2021, 5:41:49 PM Pulse.getZoneStatus(via Orb): Getting Zone Statuses
1/23/2021, 5:41:50 PM Pulse.getDeviceStatus: Getting Device Statuses
1/23/2021, 5:41:50 PM Pulse.getZoneStatus(via Orb): Getting Zone Statuses
1/23/2021, 5:41:50 PM Pulse.getDeviceStatus No other devices found
1/23/2021, 5:41:50 PMADT Pulse: Get zone status (via orb) success.
1/23/2021, 5:41:50 PM Sensor: sensor-2 Name: back door Tags: sensor State devStatOK
1/23/2021, 5:41:50 PM: Pushing device state: devStatOK to topic adt/zone/back door/state
1/23/2021, 5:41:50 PM Sensor: sensor-1 Name: front door Tags: sensor State devStatOK
1/23/2021, 5:41:50 PM: Pushing device state: devStatOK to topic adt/zone/front door/state
1/23/2021, 5:41:50 PM Sensor: sensor-4 Name: kids window Tags: sensor State devStatOK
1/23/2021, 5:41:50 PM: Pushing device state: devStatOK to topic adt/zone/kids window/state
1/23/2021, 5:41:50 PM Sensor: sensor-8 Name: living room smoke Tags: sensor State devStatOK
1/23/2021, 5:41:50 PM: Pushing device state: devStatOK to topic adt/zone/living room smoke/state
1/23/2021, 5:41:50 PM Sensor: sensor-7 Name: livingroom glass break detecto Tags: sensor State devStatOK
1/23/2021, 5:41:50 PM: Pushing device state: devStatOK to topic adt/zone/livingroom glass break detecto/state
1/23/2021, 5:41:50 PM Sensor: sensor-10 Name: master bedroom glass break Tags: sensor State devStatOK
1/23/2021, 5:41:50 PM: Pushing device state: devStatOK to topic adt/zone/master bedroom glass break/state
1/23/2021, 5:41:50 PM Sensor: sensor-5 Name: master bedroom motion detector Tags: sensor State devStatOK
1/23/2021, 5:41:50 PM: Pushing device state: devStatOK to topic adt/zone/master bedroom motion detector/state
1/23/2021, 5:41:50 PM Sensor: sensor-9 Name: office glassbreak Tags: sensor State devStatOK
1/23/2021, 5:41:50 PM: Pushing device state: devStatOK to topic adt/zone/office glassbreak/state
1/23/2021, 5:41:50 PM Sensor: sensor-6 Name: office motion detector Tags: sensor State devStatOK
1/23/2021, 5:41:50 PM: Pushing device state: devStatOK to topic adt/zone/office motion detector/state
1/23/2021, 5:41:50 PM Sensor: sensor-3 Name: side door Tags: sensor State devStatOK
1/23/2021, 5:41:50 PM: Pushing device state: devStatOK to topic adt/zone/side door/state
1/23/2021, 5:41:50 PM Pulse.getDeviceStatus No other devices found
1/23/2021, 5:41:50 PMADT Pulse: Get zone status (via orb) success.
1/23/2021, 5:41:50 PM Sensor: sensor-2 Name: back door Tags: sensor State devStatOK
1/23/2021, 5:41:50 PM Sensor: sensor-1 Name: front door Tags: sensor State devStatOK
1/23/2021, 5:41:50 PM Sensor: sensor-4 Name: kids window Tags: sensor State devStatOK
1/23/2021, 5:41:50 PM Sensor: sensor-8 Name: living room smoke Tags: sensor State devStatOK
1/23/2021, 5:41:50 PM Sensor: sensor-7 Name: livingroom glass break detecto Tags: sensor State devStatOK
1/23/2021, 5:41:50 PM Sensor: sensor-10 Name: master bedroom glass break Tags: sensor State devStatOK
1/23/2021, 5:41:50 PM Sensor: sensor-5 Name: master bedroom motion detector Tags: sensor State devStatOK
1/23/2021, 5:41:50 PM Sensor: sensor-9 Name: office glassbreak Tags: sensor State devStatOK
1/23/2021, 5:41:50 PM Sensor: sensor-6 Name: office motion detector Tags: sensor State devStatOK
1/23/2021, 5:41:50 PM Sensor: sensor-3 Name: side door Tags: sensor State devStatOK
1/23/2021, 5:41:53 PM Pulse.Sync: Syncing 172884-172767-0
1/23/2021, 5:41:53 PM Pulse: updateAll
1/23/2021, 5:41:53 PM Pulse.getAlarmStatus: Getting Alarm Statuses
1/23/2021, 5:41:54 PM Pulse.getDeviceStatus: Getting Device Statuses
1/23/2021, 5:41:54 PM Pulse.getZoneStatus(via Orb): Getting Zone Statuses
1/23/2021, 5:41:54 PM Pulse.getDeviceStatus No other devices found
1/23/2021, 5:41:54 PMADT Pulse: Get zone status (via orb) success.
1/23/2021, 5:41:54 PM Sensor: sensor-2 Name: back door Tags: sensor State devStatOK
1/23/2021, 5:41:54 PM: Pushing device state: devStatOK to topic adt/zone/back door/state
1/23/2021, 5:41:54 PM Sensor: sensor-1 Name: front door Tags: sensor State devStatOK
1/23/2021, 5:41:54 PM: Pushing device state: devStatOK to topic adt/zone/front door/state
1/23/2021, 5:41:54 PM Sensor: sensor-4 Name: kids window Tags: sensor State devStatOK
1/23/2021, 5:41:54 PM: Pushing device state: devStatOK to topic adt/zone/kids window/state
1/23/2021, 5:41:54 PM Sensor: sensor-8 Name: living room smoke Tags: sensor State devStatOK
1/23/2021, 5:41:54 PM: Pushing device state: devStatOK to topic adt/zone/living room smoke/state
1/23/2021, 5:41:54 PM Sensor: sensor-7 Name: livingroom glass break detecto Tags: sensor State devStatOK
1/23/2021, 5:41:54 PM: Pushing device state: devStatOK to topic adt/zone/livingroom glass break detecto/state
1/23/2021, 5:41:54 PM Sensor: sensor-10 Name: master bedroom glass break Tags: sensor State devStatOK
1/23/2021, 5:41:54 PM: Pushing device state: devStatOK to topic adt/zone/master bedroom glass break/state
1/23/2021, 5:41:54 PM Sensor: sensor-5 Name: master bedroom motion detector Tags: sensor State devStatOK
1/23/2021, 5:41:54 PM: Pushing device state: devStatOK to topic adt/zone/master bedroom motion detector/state
1/23/2021, 5:41:54 PM Sensor: sensor-9 Name: office glassbreak Tags: sensor State devStatOK
1/23/2021, 5:41:54 PM: Pushing device state: devStatOK to topic adt/zone/office glassbreak/state
1/23/2021, 5:41:54 PM Sensor: sensor-6 Name: office motion detector Tags: sensor State devStatOK
1/23/2021, 5:41:54 PM: Pushing device state: devStatOK to topic adt/zone/office motion detector/state
1/23/2021, 5:41:54 PM Sensor: sensor-3 Name: side door Tags: sensor State devStatOK
1/23/2021, 5:41:54 PM: Pushing device state: devStatOK to topic adt/zone/side door/state
1/23/2021, 5:41:58 PM Pulse.Sync: Syncing 172884-172767-0
1/23/2021, 5:42:03 PM Pulse.Sync: Syncing 172884-172767-0
gary-albano commented 3 years ago

if I missed something "I should not be posting" or need more info let me know.

digitalcraig commented 3 years ago

I've saved what I needed of your orb.jsp so you can edit your post to remove it. I'd recommend closing this issue and if you continue having problems, open a new issue here.

gary-albano commented 3 years ago

Very well