Giter VIP home page Giter VIP logo

Comments (5)

danimtb avatar danimtb commented on July 23, 2024

Hi @kikura!

Seems you dasshio json configuration is wrong.

As the field service_data uses json format, and Hassio addons do not support more than two nested arrays in json (see warning in the readme), you have to scape " like this -> \"

This should be your right config:

{
  "timeout": 20,
  "buttons": [
    {
      "name": "Doorbell",
      "address": "B4:7C:9C:F9:27:E1",
      "domain": "media_player",
      "service": "tts.google_say",
      "service_data": "{\"entity_id\": \"media_player.downstairs\", \"message\": \"someones at the door\"}"
    }
  ]
}

from dasshio.

kikura avatar kikura commented on July 23, 2024

Apologies, but in the original file the escape characters were there, they just didn't copy and paste correctly onto this page.

Nevertheless, I have cut and pasted your config from above and it still doesn't work.

from dasshio.

danimtb avatar danimtb commented on July 23, 2024

Could you post here versions of hassio, hass and dasshio?

Have you checked that you can call that service from the service tab in your home asssitant? Is that working?

from dasshio.

kikura avatar kikura commented on July 23, 2024

Hi.

Many thanks for your help. After some messing around, I discovered that in my config above, domain should be "tts" and service should be "google_say".

Nick

from dasshio.

danimtb avatar danimtb commented on July 23, 2024

You are welcome 😄 Please feel free to close this issue if it is working now with dasshio 😉

from dasshio.

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.