NestOAuthAPI Error

Please use template to report bugs and problems. Post here your questions when not sure where else to post
Only for bugs in the Domoticz application! other problems go in different subforums!
Forum rules
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.

Use the following template when posting here:

Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....

If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly

If you are replying, please do not quote images/code from the first post

Please mark your topic as Solved when the problem is solved.
Post Reply
User avatar
Ascari
Posts: 31
Joined: Thursday 28 September 2017 21:35
Target OS: Raspberry Pi
Domoticz version: 4.9
Location: Belgium
Contact:

NestOAuthAPI Error

Post by Ascari » Thursday 26 July 2018 13:19

Hello,

I add my Nest V3 with NestOAuthAPI everything work perfectly and after 1h my logs are full with error log.
2018-07-26 12:39:03.992 Error: NestOAuthAPI: Error while performing login: Got empty response body while getting structures. Response code: HTTP/1.1 307 Temporary Redirect
2018-07-26 12:39:03.993 Error: NestOAuthAPI: Login failed: token did not validate.
All my handler works and update I don't understand.
I try to remove and add again but same problem.

Help.

I usse the Version: 4.9701 (last satble)

simon_rb
Posts: 709
Joined: Wednesday 07 August 2013 19:09
Target OS: -
Domoticz version:
Location: UK
Contact:

Re: NestOAuthAPI Error

Post by simon_rb » Saturday 08 September 2018 16:06

I have the exact same issue. I was using the old version which worked great until I updated to Stretch. Doing this seems to have broken the original Nest thermostat plugin.

I am trying the OAuth one and getting same error as you..

Did you manage to get it working?

User avatar
Ascari
Posts: 31
Joined: Thursday 28 September 2017 21:35
Target OS: Raspberry Pi
Domoticz version: 4.9
Location: Belgium
Contact:

Re: NestOAuthAPI Error

Post by Ascari » Sunday 09 September 2018 10:46

I use the old Nest plugin now because I try with new install, new rpi on Strech et Jessie and the same issue.
The old work perfectly.

simon_rb
Posts: 709
Joined: Wednesday 07 August 2013 19:09
Target OS: -
Domoticz version:
Location: UK
Contact:

Re: NestOAuthAPI Error

Post by simon_rb » Sunday 09 September 2018 11:47

Ascari wrote:
Sunday 09 September 2018 10:46
I use the old Nest plugin now because I try with new install, new rpi on Strech et Jessie and the same issue.
The old work perfectly.
Have you got the old one working on Stretch? Mine stopped working :(

poudenes
Posts: 546
Joined: Wednesday 08 March 2017 10:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: NestOAuthAPI Error

Post by poudenes » Monday 10 September 2018 10:02

The NestOAuthAPI gives long time problems. It work in beginning but later you see errors.
Thats why i using the normal Plugin with login/password without errors for long time
RPi3 with OSMC - RPi3 with Domoticz - Dashticz - MiLight - Nanolead Aurora - KaKu - Logitech Hamony - Nest - RFLink

User avatar
Ascari
Posts: 31
Joined: Thursday 28 September 2017 21:35
Target OS: Raspberry Pi
Domoticz version: 4.9
Location: Belgium
Contact:

Re: NestOAuthAPI Error

Post by Ascari » Monday 10 September 2018 10:22

@simon_rb : No nothing work perfectly with Stretch for me.
BLEA Presence nok working
NEST Error and old methode nok avalaible.
Xiaomi Cleaner Robot nok working.

I keep my RpI3b (not B+) and Jessie, I hope I can use Stretch in the futur.

simon_rb
Posts: 709
Joined: Wednesday 07 August 2013 19:09
Target OS: -
Domoticz version:
Location: UK
Contact:

Re: NestOAuthAPI Error

Post by simon_rb » Monday 10 September 2018 10:38

poudenes wrote:
Monday 10 September 2018 10:02
The NestOAuthAPI gives long time problems. It work in beginning but later you see errors.
Thats why i using the normal Plugin with login/password without errors for long time
Does the original plugin work with Stretch and lastest stable release? I get Login Error, triple checked and login details are correct.

Many Thanks

poudenes
Posts: 546
Joined: Wednesday 08 March 2017 10:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: NestOAuthAPI Error

Post by poudenes » Monday 10 September 2018 16:36

Yes here no problem at all:

Type of Nest: Nest Thermostat/Protect

Rasbian Stretch updated
Version: 4.9985
Build Hash: 40583442
Compile Date: 2018-09-05 11:27:40
dzVents Version: 2.4.7
Python Version: 3.6.4 (default, Aug 29 2018, 13:38:25) [GCC 6.3.0 20170516]
RPi3 with OSMC - RPi3 with Domoticz - Dashticz - MiLight - Nanolead Aurora - KaKu - Logitech Hamony - Nest - RFLink

mrmadalex
Posts: 1
Joined: Sunday 16 September 2018 12:15
Target OS: -
Domoticz version:
Contact:

Re: NestOAuthAPI Error

Post by mrmadalex » Sunday 16 September 2018 12:28

I experience same issues on Domoticz 4.9xxx.

Running in Docker Container on Synology (x86), Debian Stretch and cannot get the nest plugin (old or new) to login properly.
When reverting back to Domoticz 3.x there is no problem.

The container build script is below. Does anybody recognize the use of a wrong library or program which is incompatible with Domoticz 4.x?


FROM debian:stretch
MAINTAINER Alexander

# install packages &
## OpenZwave installation &
# grep git version of openzwave &
# untar the files &
# compile &
# "install" in order to be found by domoticz &
## Domoticz installation &
# clone git source in src &
# Domoticz needs the full history to be able to calculate the version string &
# prepare makefile &
# compile &
# remove git and tmp dirs

ARG VCS_REF
ARG BUILD_DATE

ARG BRANCH_NAME

LABEL org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url="https://github.com/domoticz/domoticz" \
org.label-schema.url="https://domoticz.com/" \
org.label-schema.name="Domoticz" \
org.label-schema.docker.dockerfile="/Dockerfile" \
org.label-schema.license="GPLv3" \
org.label-schema.build-date=$BUILD_DATE


# install packages
RUN apt-get update && apt-get install -yq \
libboost1.61-dev \
libboost-system1.61-dev \
libboost-thread1.61-dev \
subversion \
git \
libssl1.0.2 libssl-dev \
cmake \
libsqlite3-0 libsqlite3-dev \
curl libcurl3 libcurl4-openssl-dev \
libusb-0.1-4 libusb-dev \
zlib1g-dev \
libudev-dev \
libpython3-dev python3-pip \
&& \
cp /usr/share/zoneinfo/Europe/Paris /etc/localtime


RUN apt-get install -yq wget && mkdir boost &&\
cd boost &&\
wget https://dl.bintray.com/boostorg/release ... 6_0.tar.gz &&\
tar xfz boost_1_66_0.tar.gz &&\
rm boost_1_66_0.tar.gz &&\
cd boost_1_66_0/ &&\
./bootstrap.sh &&\
./bjam install --prefix=/usr/local/boost threading=multi link=static --with-thread --with-date_time --with-system --with-atomic --with-regex &&\
cd ../../ &&\
rm -Rf boost/

ENV BOOST_ROOT /usr/local/boost/

RUN git clone --depth 2 https://github.com/OpenZWave/open-zwave.git /src/open-zwave && \
cd /src/open-zwave && \
make && \
ln -s /src/open-zwave /src/open-zwave-read-only && \
git clone -b ${BRANCH_NAME:-master} --depth 2 https://github.com/domoticz/domoticz.git /src/domoticz && \
cd /src/domoticz && \
git fetch --unshallow && \
cmake -DCMAKE_BUILD_TYPE=Release . && \
make && \
rm -rf /src/domoticz/.git && \
rm -rf /src/open-zwave/.git && \
apt-get remove -y git cmake linux-headers-amd64 build-essential libssl-dev libboost-dev libboost-thread-dev libboost-system-dev libsqlite3-dev libcurl4-openssl-dev libusb-dev zlib1g-dev libudev-dev && \
apt-get autoremove -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*


VOLUME /config

EXPOSE 8080

ENTRYPOINT ["/src/domoticz/domoticz", "-dbase", "/config/domoticz.db", "-log", "/config/domoticz.log"]
CMD ["-www", "8080"]

User avatar
Ascari
Posts: 31
Joined: Thursday 28 September 2017 21:35
Target OS: Raspberry Pi
Domoticz version: 4.9
Location: Belgium
Contact:

Re: NestOAuthAPI Error

Post by Ascari » Sunday 16 September 2018 21:47

I try a new install on a new RPI only with Domoticz and NestAPI and after 60min again error.

The old methode work for me but it's borring to try and not find a solution with API

poudenes
Posts: 546
Joined: Wednesday 08 March 2017 10:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: NestOAuthAPI Error

Post by poudenes » Monday 17 September 2018 11:08

Ascari wrote:I try a new install on a new RPI only with Domoticz and NestAPI and after 60min again error.

The old methode work for me but it's borring to try and not find a solution with API
I'm wondering what is main difference.... Or only the login method is more secure with Auth


Verzonden vanaf mijn iPhone met Tapatalk Pro
RPi3 with OSMC - RPi3 with Domoticz - Dashticz - MiLight - Nanolead Aurora - KaKu - Logitech Hamony - Nest - RFLink

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest