Math/code problem: Where is the vacuum located?

rooms is defined in the first line. It’s a list of dictionaries. That’s iterating this:

{% set rooms = [ 
  {
    'name': 'A',
    'cleaning': states('input_boolean.zone_a') | bool(True),
    'area': 15
  },{
    'name': 'B',
    'cleaning': states('input_boolean.zone_b') | bool(False),
    'area': 10
  },{
    'name': 'C',
    'cleaning': states('input_boolean.zone_c') | bool(True),
    'area': 5
  }
] %}

image

1 Like

anyways, thanks a lot mate. I’ll create the entities, test it and we’ll move from there.

I appreciate

Hey mate,

I haven’t yet tested your code but reading through it I got the idea and I managed to build something similar in NR. I appreciate the time you took.