Naboo2604 / homeassistant

GNU General Public License v3.0
2 stars 1 forks source link

Configuration Error #1

Open KrockX opened 10 months ago

KrockX commented 10 months ago

Hi Naboo,

thanks for your hard work on this :)

I got an issue and im sure it is my fault but maby you can help me. Below my card text and the error i get:

- type: 'custom:flex-horseshoe-card'
entities:
  - entity: sensor.bwt_perla_regenerativ_level
    decimals: 0
    unit: '%'
    name: 'Salt Level'
  - entity: sensor.bwt_perla_regenerativ_days
    decimals: 0
    unit: 'D'
    name: 'Days'
    icon: mdi:water
  - entity: sensor.bwt_perla_total_output_daily
    decimals: 0
    unit: 'L/Day'
    name: 'Flow'
    icon: mdi:faucet
  - entity: sensor.bwt_perla_customer_service
    name: 'Last Service Customer:'
    icon: mdi:calendar
  - entity: sensor.bwt_perla_technician_service
    name: 'Last Service Technican:'
    icon: mdi:calendar
show:
  horseshoe_style: autostopminmax
layout:
  hlines:
    - id: 0
      xpos: 50
      ypos: 46
      length: 65
      styles:
        - opacity: 0.2;
  vlines:
    - id: 0
      xpos: 50
      ypos: 62
      length: 30
      styles:
        - opacity: 0.2;
  states:
    - id: 0
      entity_index: 0
      xpos: 50
      ypos: 40
      styles:
        - font-size: 3em;
        - opacity: 0.9;
    - id: 1
      entity_index: 1
      xpos: 46
      ypos: 61
      styles:
        - font-size: 1.6em;
        - text-anchor: end;
    - id: 2
      entity_index: 2
      xpos: 54
      ypos: 61
      styles:
        - font-size: 1.6em;
        - text-anchor: start;
    - id: 3
      entity_index: 3
      xpos: 67
      ypos: 88
      styles:
        - font-size: 0.7em;
    - id: 4
      entity_index: 4
      xpos: 67
      ypos: 95
      styles:
        - font-size: 0.7em;
  names:
    - id: 0
      entity_index: 0
      xpos: 50
      ypos: 21
      styles:
        - font-size: 1.0em;
        - opacity: 0.4;
    - id: 1
      entity_index: 1
      xpos: 46
      ypos: 70
      styles:
        - font-size: 0.8em;
        - text-anchor: end;
        - opacity: 0.7;
    - id: 2
      entity_index: 2
      xpos: 54
      ypos: 70
      styles:
        - font-size: 0.8em;
        - text-anchor: start;
        - opacity: 0.7;
    - id: 3
      entity_index: 3
      xpos: 45
      ypos: 88
      styles:
        - font-size: 0.4em;
        - text-anchor: end;
        - opacity: 0.7;
    - id: 4
      entity_index: 4
      xpos: 45
      ypos: 95
      styles:
        - font-size: 0.4em;
        - text-anchor: end;
        - opacity: 0.7;
  icons:
    - id: 0
      entity_index: 1
      xpos: 28
      ypos: 70
      align: end
      size: 0.5
      styles:
        - opacity: 0.7;
    - id: 1
      entity_index: 2
      xpos: 85
      ypos: 70
      align: end
      size: 0.5
      styles:
        - opacity: 0.7;
horseshoe_scale:
  min: 0
  max: 100
color_stops:
  '0': '#00c6fb'
  '10': '#FFE9B9'
  '20': '#FFDA8A'
  '30': '#FFCB5B'
  '40': '#FFBF37'
  '50': '#ffb414'
  '60': '#FFAD12'
  '70': '#FFA40E'
  '80': '#FF9C0B'
  '90': '#005bea'

Error: Konfigurationsfehler erkannt: end of the stream or a document separator is expected (2:1)

1 | - type: 'custom:flex-horseshoe-card' 2 | entities: -----^ 3 | - entity: sensor.bwt_perla_reg ... 4 | decimals: 0

Thanks for your Support and Kind Regards KrockX

Naboo2604 commented 10 months ago

Hi KrockX,

you welcome – I think there is a typo in the first line of your yaml – please try:

type: ‘custom:flex-horseshoe-card’

..let me know if this works.

From: KrockX @.> Sent: Samstag, 13. Jänner 2024 23:00 To: Naboo2604/homeassistant @.> Cc: Subscribed @.***> Subject: [Naboo2604/homeassistant] Configuration Error (Issue #1)

Hi Naboo,

thanks for your hard work on this :)

I got an issue and im sure it is my fault but maby you can help me. Below my card text and the error i get:

entities:

show:

horseshoe_style: autostopminmax

layout:

hlines:

- id: 0

  xpos: 50

  ypos: 46

  length: 65

  styles:

    - opacity: 0.2;

vlines:

- id: 0

  xpos: 50

  ypos: 62

  length: 30

  styles:

    - opacity: 0.2;

states:

- id: 0

  entity_index: 0

  xpos: 50

  ypos: 40

  styles:

    - font-size: 3em;

    - opacity: 0.9;

- id: 1

  entity_index: 1

  xpos: 46

  ypos: 61

  styles:

    - font-size: 1.6em;

    - text-anchor: end;

- id: 2

  entity_index: 2

  xpos: 54

  ypos: 61

  styles:

    - font-size: 1.6em;

    - text-anchor: start;

- id: 3

  entity_index: 3

  xpos: 67

  ypos: 88

  styles:

    - font-size: 0.7em;

- id: 4

  entity_index: 4

  xpos: 67

  ypos: 95

  styles:

    - font-size: 0.7em;

names:

- id: 0

  entity_index: 0

  xpos: 50

  ypos: 21

  styles:

    - font-size: 1.0em;

    - opacity: 0.4;

- id: 1

  entity_index: 1

  xpos: 46

  ypos: 70

  styles:

    - font-size: 0.8em;

    - text-anchor: end;

    - opacity: 0.7;

- id: 2

  entity_index: 2

  xpos: 54

  ypos: 70

  styles:

    - font-size: 0.8em;

    - text-anchor: start;

    - opacity: 0.7;

- id: 3

  entity_index: 3

  xpos: 45

  ypos: 88

  styles:

    - font-size: 0.4em;

    - text-anchor: end;

    - opacity: 0.7;

- id: 4

  entity_index: 4

  xpos: 45

  ypos: 95

  styles:

    - font-size: 0.4em;

    - text-anchor: end;

    - opacity: 0.7;

icons:

- id: 0

  entity_index: 1

  xpos: 28

  ypos: 70

  align: end

  size: 0.5

  styles:

    - opacity: 0.7;

- id: 1

  entity_index: 2

  xpos: 85

  ypos: 70

  align: end

  size: 0.5

  styles:

    - opacity: 0.7;

horseshoe_scale:

min: 0

max: 100

color_stops:

'0': '#00c6fb'

'10': '#FFE9B9'

'20': '#FFDA8A'

'30': '#FFCB5B'

'40': '#FFBF37'

'50': '#ffb414'

'60': '#FFAD12'

'70': '#FFA40E'

'80': '#FF9C0B'

'90': '#005bea'

Error: Konfigurationsfehler erkannt: end of the stream or a document separator is expected (2:1)

1 | - type: 'custom:flex-horseshoe-card' 2 | entities: -----^ 3 | - entity: sensor.bwt_perla_reg ... 4 | decimals: 0

Thanks for your Support and Kind Regards KrockX

— Reply to this email directly, view it on GitHubhttps://github.com/Naboo2604/homeassistant/issues/1, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADFXI2PLA4ZVHTNYEIQCTS3YOL7WJAVCNFSM6AAAAABBZTDCBSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGA4DANBYHE3TQMY. You are receiving this because you are subscribed to this thread.Message ID: @.**@.>>

KrockX commented 10 months ago

Hi @Naboo2604 ,

thanks for your reply. Now it shows another error :/ image

Naboo2604 commented 10 months ago

Hi,

did you have these entities in HA available?

sensor.bwt_perla_regenerativ_level sensor.bwt_perla_regenerativ_days

(all this entities provided by the integration from @dkarv)

From: KrockX @.> Sent: Sonntag, 14. Jänner 2024 12:44 To: Naboo2604/homeassistant @.> Cc: Markus Winkler @.>; Mention @.> Subject: Re: [Naboo2604/homeassistant] Configuration Error (Issue #1)

Hi @Naboo2604https://github.com/Naboo2604 ,

thanks for your reply. Now it shows another error :/ image.png (view on web)https://github.com/Naboo2604/homeassistant/assets/129213130/69183d69-efec-4041-a8b8-a1f8e2e81a6f

— Reply to this email directly, view it on GitHubhttps://github.com/Naboo2604/homeassistant/issues/1#issuecomment-1890927830, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADFXI2KQSVOFPT3HLYNOL5LYOPAGZAVCNFSM6AAAAABBZTDCBSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJQHEZDOOBTGA. You are receiving this because you were mentioned.Message ID: @.**@.>>

KrockX commented 10 months ago

Hi, yes they are already used in another Tab image and the Picture works, maby i have an issue with the horse-shoe-cards... image

Naboo2604 commented 10 months ago

Hi,

hmm – very strange – that’s my screenshot of the card config:

@.***

…what does the auto-suggestion feature display if you type in “sensor.bwt_perla_r” in the editor?

Is this what you see:

@.***

From: KrockX @.> Sent: Sonntag, 14. Jänner 2024 16:45 To: Naboo2604/homeassistant @.> Cc: Markus Winkler @.>; Mention @.> Subject: Re: [Naboo2604/homeassistant] Configuration Error (Issue #1)

Hi, yes they are already used in another Tab image.png (view on web)https://github.com/Naboo2604/homeassistant/assets/129213130/436c18cb-39f0-44f9-bfd1-e7e53e60a8a8

— Reply to this email directly, view it on GitHubhttps://github.com/Naboo2604/homeassistant/issues/1#issuecomment-1890987318, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADFXI2NG2S6NJNT6VEH6PBDYOP4QDAVCNFSM6AAAAABBZTDCBSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJQHE4DOMZRHA. You are receiving this because you were mentioned.Message ID: @.**@.>>

KrockX commented 10 months ago

Hi Naboo, your Screenshots are missing, please Reupload :) Im Trying to set up the Horseshoe now step by step maby thats may actual stand :D image

KrockX commented 10 months ago

Hi Naboo, i found the mistake. In your flex-horseshoe-card.yaml there was the a false named Sensor, thats why it cant get a state image But the Horse-shoe-Card keeps blank image