Barma-lej / halandroid

Worx Landroid package for Home Assistant based on Landroid Cloud by @MTrab
MIT License
112 stars 49 forks source link

Installation KO #67

Closed floow77 closed 2 years ago

floow77 commented 2 years ago

Hello,

When I add: packages: !include_dir_named packages

I have this error (check config): Package landroid setup failed. Component script cannot be merged. Dict expected in main config.

What is wrong ? Thanks

qbahc commented 2 years ago

Probably you did Landroid Cloud update. Was information if you use Barma-lej it will NOT work.

floow77 commented 2 years ago

I don't understand... what should I do ?

Barma-lej commented 2 years ago

Can you publish your configuration.yaml?

floow77 commented 2 years ago
default_config:

homeassistant:
  packages: !include_dir_named packages

  time_zone: Europe/Paris
  customize: !include customize.yaml

  allowlist_external_dirs:
    - /config/

lovelace:
  mode: storage

frontend:
  themes: !include_dir_merge_named themes/

browser_mod:
  prefix: "browser_mod_"

group: !include groups.yaml
automation: !include_dir_merge_list automation/
script: !include_dir_merge_list scripts/
scene: !include scenes.yaml
light: !include light.yaml
device_tracker: !include_dir_merge_list device_tracker/
sensor: !include_dir_merge_list sensor/

mqtt:
  sensor: !include mqtt_sensor.yaml
  switch: !include mqtt_switch.yaml

switch: !include_dir_merge_list switch/
input_boolean: !include input_boolean/input_boolean.yaml
input_select: !include input_select/input_select.yaml
input_datetime: !include input_DateTime/input_DateTime.yaml
input_number: !include input_number/input_number.yaml
climate: !include climate.yaml
rest_command: !include rest_command.yaml
cover: !include cover.yaml
utility_meter: !include utility_meter.yaml

python_script:
P3RF3CTION commented 2 years ago

as @qbahc already mentioned the Update of Landroid Cloud to version 2.1 is causing the issue Landroid Cloud 2.1.0 Releas Notes

floow77 commented 2 years ago

OK, I downgraded Landroid Cloud to version 2.0.3 and I still have the same error: "Package landroid setup failed. Component script cannot be merged. Dict expected in main config."

Barma-lej commented 2 years ago

Try to komment this line:

# script: !include_dir_merge_list scripts/

This is error splitting up your config

floow77 commented 2 years ago

Thanks, check configuration is OK but how I retrieve my previous scripts ?

Barma-lej commented 2 years ago

You can move all scripts from landroid.yaml to scripts/ladroid_scrtipts.yaml and comment out this line:

script: !include_dir_merge_list scripts/
floow77 commented 2 years ago

thanks, it's working