Coder Social home page Coder Social logo

Comments (7)

michbeck100 avatar michbeck100 commented on August 14, 2024

Looks fine to me. You could try to reset the port of pimatic-echo to the default instead of port 80. And of course make sure to use the most recent version.
Another hint would be if you could tell what the request to /api/3arqLKYLjcWiPo78tGnMWZ888bEW70167XQSgI7g/lights brings up. Maybe it shows no devices.

from pimatic-echo.

Mostum avatar Mostum commented on August 14, 2024

Isnt port 80 the default port?

from pimatic-echo.

MaxWinterstein avatar MaxWinterstein commented on August 14, 2024

@Mostum still having problems with this?

As seen in the logs file provided, there is a request from you alexa to [...]/api/[...]lights which means your alexa is reading the devices.

You can simply put this in your browser by adding your pimatic installation first.

e.g.:

  Request: /api/3arqLKYLjcWiPo78tGnMWZ888bEW70167XQSgI7g/lights
  GET Request to /api/3arqLKYLjcWiPo78tGnMWZ888bEW70167XQSgI7g/lights
  Headers: {
 >  "host": "192.168.178.24",

The host is your pimatic installation, the request the URL.
Please open http://192.168.178.24/api/3arqLKYLjcWiPo78tGnMWZ888bEW70167XQSgI7g/lights and show us the output.

from pimatic-echo.

Mostum avatar Mostum commented on August 14, 2024

Yes, still the same, here is the output from the browser

{}

And here are the logs from pimatic itself

15:03:18.656 [pimatic-echo] Request: /api/3arqLKYLjcWiPo78tGnMWZ888bEW70167XQSgI7g/lights
15:03:18.662 [pimatic-echo] GET Request to /api/3arqLKYLjcWiPo78tGnMWZ888bEW70167XQSgI7g/lights
15:03:18.666 [pimatic-echo] Headers: {
15:03:18.666 [pimatic-echo]> "host": "192.168.178.24",
15:03:18.666 [pimatic-echo]> "connection": "keep-alive",
15:03:18.666 [pimatic-echo]> "cache-control": "max-age=0",
15:03:18.666 [pimatic-echo]> "upgrade-insecure-requests": "1",
15:03:18.666 [pimatic-echo]> "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36",
15:03:18.666 [pimatic-echo]> "dnt": "1",
15:03:18.666 [pimatic-echo]> "accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,/;q=0.8",
15:03:18.666 [pimatic-echo]> "accept-encoding": "gzip, deflate",
15:03:18.666 [pimatic-echo]> "accept-language": "de-DE,de;q=0.9,en-GB;q=0.8,en;q=0.7,en-US;q=0.6",
15:03:18.666 [pimatic-echo]> "cookie": "pimatic.sess=eyJ0aGVtZSI6ImdyYXBoaXRlL3JveWFsIiwidXNlcm5hbWUiOiJhZG1pbiIsImxvZ2luVG9rZW4iOiJmYWE4ZDhmZTQ2MzBmNWI1YWIxZTk0MjkxNmMyZDk5MDNhZThhZTNlN2MxODdmNDQ5ZmUxOWMzY2ExOWU4YWE4Iiwicm9sZSI6ImFkbWluIiwicmVtZW1iZXJNZSI6dHJ1ZX0=; pimatic.sess.sig=HuhM4ZfRVG84vAewo5gFv-A2o5s; io=zuPMx_LX2fRgaeTUAAAE",
15:03:18.666 [pimatic-echo]> "if-none-match": "W/"2-vyGp6PvFo4RvsFtPoIWeCReyIC8""
15:03:18.666 [pimatic-echo]>}
15:03:18.743 [pimatic-echo] Request: /favicon.ico
15:03:18.746 [pimatic-echo] GET Request to /favicon.ico
15:03:18.749 [pimatic-echo] Headers: {
15:03:18.749 [pimatic-echo]> "host": "192.168.178.24",
15:03:18.749 [pimatic-echo]> "connection": "keep-alive",
15:03:18.749 [pimatic-echo]> "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36",
15:03:18.749 [pimatic-echo]> "dnt": "1",
15:03:18.749 [pimatic-echo]> "accept": "image/webp,image/apng,image/,/*;q=0.8",
15:03:18.749 [pimatic-echo]> "referer": "http://192.168.178.24/api/3arqLKYLjcWiPo78tGnMWZ888bEW70167XQSgI7g/lights",
15:03:18.749 [pimatic-echo]> "accept-encoding": "gzip, deflate",
15:03:18.749 [pimatic-echo]> "accept-language": "de-DE,de;q=0.9,en-GB;q=0.8,en;q=0.7,en-US;q=0.6",
15:03:18.749 [pimatic-echo]> "cookie": "pimatic.sess=eyJ0aGVtZSI6ImdyYXBoaXRlL3JveWFsIiwidXNlcm5hbWUiOiJhZG1pbiIsImxvZ2luVG9rZW4iOiJmYWE4ZDhmZTQ2MzBmNWI1YWIxZTk0MjkxNmMyZDk5MDNhZThhZTNlN2MxODdmNDQ5ZmUxOWMzY2ExOWU4YWE4Iiwicm9sZSI6ImFkbWluIiwicmVtZW1iZXJNZSI6dHJ1ZX0=; pimatic.sess.sig=HuhM4ZfRVG84vAewo5gFv-A2o5s; io=zuPMx_LX2fRgaeTUAAAE",
15:03:18.749 [pimatic-echo]> "if-none-match": "W/"0-2jmj7l5rSw0yVb/vlWAYkK/YBwk""
15:03:18.749 [pimatic-echo]>}

from pimatic-echo.

MaxWinterstein avatar MaxWinterstein commented on August 14, 2024

Yes, still the same, here is the output from the browser
{}

{} is a nice little empty object.
You may check the following:

  • make sure the pimatic-echo plugin is first in the config.json
  • make sure to have at least one device set to active within the echo configuraiton part, either via config.json like
    {
      "id": "wohnzimmer-heizung",
      "class": "MaxHeatingThermostat",
      "name": "Heizung",
      "rfAddress": "09e1a3",
      "guiShowPresetControl": false,
      "echo": {
        "name": "Wohnzimmer Heizung",
        "additionalNames": [],
        "active": true
      }
    },

or via gui
image

you may upload your pimatic config.json (remember to remove the user passwords if shown).

but i would guess, you have no device enabled.

from pimatic-echo.

Mostum avatar Mostum commented on August 14, 2024

make sure the pimatic-echo plugin is first in the config.json

That did the job for me, thanks a lot!

from pimatic-echo.

michbeck100 avatar michbeck100 commented on August 14, 2024

Closing issue as it is resolved

from pimatic-echo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.