PiotrMachowski / Home-Assistant-Lovelace-Local-Conditional-card

This card can show and hide a specific card on current device while not affecting other windows. It does not require any integration to run.
MIT License
64 stars 6 forks source link

Hassio Integration does not add services #2

Closed Chaosflori25 closed 4 years ago

Chaosflori25 commented 4 years ago

I love your Plugin and your demo looks amazing, but when I tried to add it via HACS the services did not get added to my Hassio config. Can I add them manually? And if yes how?

PiotrMachowski commented 4 years ago

I am not sure what you mean, which services? You have to add this card to resources and then just use it in the UI.

Chaosflori25 commented 4 years ago

I got this error when I've tested your demo: image

PiotrMachowski commented 4 years ago

Please share your UI config

Chaosflori25 commented 4 years ago
   - card:

      entities:
        - switch.av_input_tape
      title: Inputs
      type: button
    default: hide
    id: Input_t
    type: 'custom:local-conditional-card'
  - entities:
      - action_name: Toggle
        icon: 'mdi:power'
        name: Sun1
        service: local_conditional_card.toggle
        service_data:
          ids:
            - imput_t
        type: call-service
PiotrMachowski commented 4 years ago

Could you format it correctly?

Chaosflori25 commented 4 years ago
  - card:
      entities:
        - switch.av_input_tape
      title: Inputs
      type: button
    default: hide
    id: Input_t
    type: 'custom:local-conditional-card'
  - entities:
      - action_name: Toggle
        icon: 'mdi:power'
        name: Sun1
        service: local_conditional_card.toggle
        service_data:
          ids:
            - imput_t
        type: call-service

That's my current config for this test

PiotrMachowski commented 4 years ago
  1. You have typo in ids: imput_t instead of Input_t
  2. You have wrong configuration of button card. It should have parameter entity instead of entities

Corrected configuration:


  - card:
      entity: switch.av_input_tape
      type: button
    default: hide
    id: Input_t
    type: 'custom:local-conditional-card'
  - entities:
      - action_name: Toggle
        icon: 'mdi:power'
        name: Sun1
        service: local_conditional_card.toggle
        service_data:
          ids:
            - Input_t
        type: call-service
    type: entities