# Shelly 2,5 com lovelace-slider-entity-row

**URL:** <https://forum.cpha.pt/t/shelly-2-5-com-lovelace-slider-entity-row/7623>\
**Category:** Pedidos de Tutoriais\
**Created:** [10 Abril , 2021 12:23 UTC](https://forum.cpha.pt/t/shelly-2-5-com-lovelace-slider-entity-row/7623 "2021-04-10T12:23:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sampaionuno](https://forum.cpha.pt/user_avatar/forum.cpha.pt/sampaionuno/32/9926_2.png) [@sampaionuno](https://forum.cpha.pt/u/sampaionuno)\
**Post date:** [10 Abril , 2021 12:23 UTC](https://forum.cpha.pt/t/shelly-2-5-com-lovelace-slider-entity-row/7623/1 "2021-04-10T12:23:44Z")

</div>

Boa tarde. Com ajuda de um user estive a tentar colocar uma barra percentagen do estore mas ficamos encravados. Passo a explicar:  
Dentro da pasta customize\_glob.yaml colocamos o seguinte:

```auto
#Estores
"cover.estores_*":
  templates:
    entity_picture: >
      if (state === 'closed') return '/local/estores/blinds_00.png';
      if (attributes.current_position <= 10) return '/local/estores/blinds_10.png';
      if (attributes.current_position <= 20) return '/local/estores/blinds_20.png';
      if (attributes.current_position <= 30) return '/local/estores/blinds_30.png';
      if (attributes.current_position <= 40) return '/local/estores/blinds_40.png';
      if (attributes.current_position <= 50) return '/local/estores/blinds_50.png';
      if (attributes.current_position <= 60) return '/local/estores/blinds_60.png';
      if (attributes.current_position <= 70) return '/local/estores/blinds_70.png';
      if (attributes.current_position <= 80) return '/local/estores/blinds_80.png';
      if (attributes.current_position <= 90) return '/local/estores/blinds_90.png';
      return '/local/estores/blinds_99.png';
      
      binary_sensor.openclose*:
  templates:
    icon: >
      if (state == 'Open') return 'mdi:leak-off';
      if (state == 'Closed') return 'mdi:leak';
      return 'mdi:close-circle-outline';
    icon_color: >
      if (state == 'unavailable') return 'rgb(251,210,41)';
      if (state == 'Closed') return 'rgb(193,193,193)';
      return 'rgb(54,95,140)';

```

1. dentro da pasta www/conf/estores/ colocamos as imagens
2. Hacs frontend e instalaei no repo slide-entity-row
3. no card fizesmos isto:

```auto
type: entities
entities:
  - entity: cover.shelly_shsw_25_483fda8dc4a5
    name: Estore sala
    icon: 'mdi:blinds'
  - type: '‘custom:slider-entity-row’'
entity: cover.shelly_shsw_25_3c6105e5bc51
full_row: true
title: Estores
state_color: true
show_header_toggle: false

```

e aparece este erro no card:  
O editor visual não é suportado para esta configuração:

- Key “entity” is not expected or not supported by the visual editor.
- Key “full\_row” is not expected or not supported by the visual editor.

Você ainda pode editar sua configuração no YAML.

Será que sabem o que está mal ou o que falta fazer?  
Obrigado.

---

<div class="post-metadata">

**Author:** ![Marco\_Lima\_HA](https://forum.cpha.pt/user_avatar/forum.cpha.pt/marco_lima_ha/32/9272_2.png) [@Marco\_Lima\_HA](https://forum.cpha.pt/u/Marco_Lima_HA)\
**Post date:** [11 Abril , 2021 09:17 UTC](https://forum.cpha.pt/t/shelly-2-5-com-lovelace-slider-entity-row/7623/2 "2021-04-11T09:17:04Z")

</div>

A pasta onde colocaste as imagens nao corresponde a do codigo… o “conf” esta a mais
