Giter VIP home page Giter VIP logo

Comments (7)

edenhaus avatar edenhaus commented on September 6, 2024

Sorry completely overseen your issue. Does it still exist?

from docs.

GerryCrooked avatar GerryCrooked commented on September 6, 2024

Hi there, jub still existing :D sorry, i was away last week
and i really dont know what im doing different act. as a test i even renamend my Deebot to Susi as well, so i literally copied your code ;-) still starting at Nr. 2

from docs.

mohamadfarhanmelb avatar mohamadfarhanmelb commented on September 6, 2024

hi @GerryCrooked, I have the exact same issue. I managed to copy the code from the Advanced UI and sort out all the icons and stuff, but when I clicked on the rooms (to select which rooms to start cleaning), the number starts with 2 instead of 1. I am trying to figure out why that is such a case but cant find anything..

Running HA 2023.6.1

from docs.

mohamadfarhanmelb avatar mohamadfarhanmelb commented on September 6, 2024

Found it @GerryCrooked ...

  state: >
    {% set room_name = "living_room" %}
    {% set queue = trigger.to_state.state.split(",") %}
    {{ queue.index(room_name)+1 if room_name in queue else 0 }}

you need ti create the above under template: for each room_name
I changed mine to this and it worked, started from 1

  state: >
    {% set room_name = "living_room" %}
    {% set queue = trigger.to_state.state.split(",") %}
    {{ queue.index(room_name) if room_name in queue else 0 }}                       #<--- took out the + 1 in this statement

from docs.

edenhaus avatar edenhaus commented on September 6, 2024

@mohamadfarhanmelb Please don't delete the +1 , because it is required

I think both of you have some value (ex. a value from setting up) in the input_text entity. Can you please open the developer tools and verify that your input_text entity is empty (no , or any value), if no room is selected

from docs.

mohamadfarhanmelb avatar mohamadfarhanmelb commented on September 6, 2024

@edenhaus yeah a mistake there.... the array input_text.xxxxxxx already has "unknown" as its first entry.
Any new button that I clicked after that will be added on to the list, for example, "nknown,laundry".
Any idea what could have caused this?

Also, out of the blye, wondering how can I create a specific queue for multiple area of the same type.
For example...

rooms:
bedroom:
- 1
- 13

I have classified 2 area as of type bedroom in my Ecovacs app.
How do I create a qeuue specficially for bedroom1 and bedroom13?

  • unique_id: deebot_dobby_queue_bedroom1
    name: deebot_dobby_queue_bedroom1
    state: >
    {% set room_name = "bedroom" %} <---- what do I put the room_name as for bedroom1
    {% set queue = trigger.to_state.state.split(",") %}
    {{ queue.index(room_name)+1 if room_name in queue else 0 }}
  • unique_id: deebot_dobby_queue_bedroom13
    name: deebot_dobby_queue_bedroom13
    state: >
    {% set room_name = "bedroom" %} <---- what do I put the room_name as for bedroom13
    {% set queue = trigger.to_state.state.split(",") %}
    {{ queue.index(room_name)+1 if room_name in queue else 0 }}

from docs.

edenhaus avatar edenhaus commented on September 6, 2024

Use the developer tools to set the input_text entity to an empty state (in other words to delete/clear the state). Afterwards the count should start with 1

I have classified 2 area as of type bedroom in my Ecovacs app.
How do I create a qeuue specficially for bedroom1 and bedroom13?

This is not possible with the current example, but you can extend it to support this functionality. Feel free to open a PR to update the example

from docs.

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.