Barma-lej / halandroid

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

Error in landroid.yaml #39

Closed mkmilamk closed 2 years ago

mkmilamk commented 2 years ago

Can I ask, please, for solution of this error? I made every step of installation and after checking of configuration I got this error. "Error loading /config/configuration.yaml: mapping values are not allowed here in "/config/packages/landroid.yaml", line 25, column 67" Thank you.

Barma-lej commented 2 years ago

Remove lines from 13 to 125 in /config/packages/landroid.yaml

mkmilamk commented 2 years ago

Hello

I removed lines, still error

I do not know if you mean number of line with empty lines on begin or without. Up is width, next is without.

Best regards

Miloslav Kothera

Dne 28.03.2022 v 12:19 Barma-lej napsal(a):

Remove lines from 13 to 125 in /config/packages/landroid.yaml

— Reply to this email directly, view it on GitHub https://github.com/Barma-lej/halandroid/issues/39#issuecomment-1080467759, or unsubscribe https://github.com/notifications/unsubscribe-auth/AX4AVGTMJF4IG3XRITPPOBDVCGBUFANCNFSM5R2H37MQ. You are receiving this because you authored the thread.Message ID: @.***>

Barma-lej commented 2 years ago

You can copy source from here and paste into /config/packages/landroid.yaml

mkmilamk commented 2 years ago

Hello,

my be I now, where is problem.

When I dovnloaded landroid.yaml from github, inside is html text (see attachment). When I open landroid.yaml on github and copy text to empty landroid.yaml, configuration is without errors (see attachment). Is it now landroid.yaml correct?

Best regards

Miloslav Kothera

Dne 28.03.2022 v 12:19 Barma-lej napsal(a):

Remove lines from 13 to 125 in /config/packages/landroid.yaml

— Reply to this email directly, view it on GitHub https://github.com/Barma-lej/halandroid/issues/39#issuecomment-1080467759, or unsubscribe https://github.com/notifications/unsubscribe-auth/AX4AVGTMJF4IG3XRITPPOBDVCGBUFANCNFSM5R2H37MQ. You are receiving this because you authored the thread.Message ID: @.***>

Worx Landroid (M500 WR141E) package

https://github.com/Barma-lej/halandroid

Based on Landroid Cloud by @MTrab

https://github.com/MTrab/landroid_cloud

Cloud

landroid_cloud: email: !secret mower_mail password: !secret mower_pass

type: landxcape

type: kress

Recorder

recorder: exclude: entities:

Swithes

  #- swith.mower_mowing
  #- swith.mower_home
  #- swith.mower_edgecut
  #- swith.mower_partymode
  #- swith.mower_lock

  # Sensors ###############
  - sensor.landroid_front_ip
  #- sensor.mower_bladetime
  #- sensor.mower_current bladetime
  #- sensor.mower_totaltime
  #- sensor.mower_distance
  #- sensor.mower_lastupdate
  #- sensor.mower_wifi
  #- sensor.mower_yaw
  #- sensor.mower_roll
  #- sensor.mower_pitch

  # Input selects #########
  - input_select.mower_zone

  # Input numbers #########
  - input_number.mower_raindelay
  - input_number.mower_timeextension
  - input_number.mower_zone0_distance
  - input_number.mower_zone1_distance
  - input_number.mower_zone2_distance
  - input_number.mower_zone3_distance
  - input_number.mower_zone0_probability
  - input_number.mower_zone1_probability
  - input_number.mower_zone2_probability
  - input_number.mower_zone3_probability

  # Input booleans ########
  - input_boolean.mower_sched_settings
  - input_boolean.mower_info_toggle
  - input_boolean.mower_zone_enable
  - input_boolean.mower_view_config
  - input_boolean.mower_view_setzones

  # Automations ######
  - automation.mower_notify_status
  - automation.mower_notify_error
  - automation.mower_sync_values
  - automation.mower_views_switch

  # Scripts ##########
  - script.mower_set_config
  - script.mower_setzone
  - script.mower_setzones
  - script.mower_views_toggle

Logbook

logbook: exclude: entities:

Swithes

  #- swith.mower_mowing
  #- swith.mower_home
  #- swith.mower_edgecut
  #- swith.mower_partymode
  #- swith.mower_lock

  # Sensors ###############
  - sensor.mower_ip
  #- sensor.mower_bladetime
  #- sensor.mower_current bladetime
  #- sensor.mower_totaltime
  #- sensor.mower_distance
  #- sensor.mower_lastupdate
  #- sensor.mower_wifi
  #- sensor.mower_yaw
  #- sensor.mower_roll
  #- sensor.mower_pitch

  # Input selects #########
  - input_select.mower_zone

  # Input numbers #########
  - input_number.mower_raindelay
  - input_number.mower_timeextension
  - input_number.mower_zone0_distance
  - input_number.mower_zone1_distance
  - input_number.mower_zone2_distance
  - input_number.mower_zone3_distance
  - input_number.mower_zone0_probability
  - input_number.mower_zone1_probability
  - input_number.mower_zone2_probability
  - input_number.mower_zone3_probability

  # Input booleans ########
  - input_boolean.mower_sched_settings
  - input_boolean.mower_info_toggle
  - input_boolean.mower_zone_enable
  - input_boolean.mower_view_config
  - input_boolean.mower_view_setzones

  # Automations ######
  - automation.mower_notify_status
  - automation.mower_notify_error
  - automation.mower_sync_values
  - automation.mower_views_switch

  # Scripts ##########
  - script.mower_set_config
  - script.mower_setzone
  - script.mower_setzones
  - script.mower_views_toggle

Switch

switch:

Sensor

sensor.landroid_mower_battery

sensor.landroid_mower_error

sensor.landroid_mower_status

template:

Input Select

input_select: mower_zone: name: Mower zone initial: "0" options:

Input Number

input_number: mower_raindelay: name: Rain delay initial: 150 min: 0 max: 300 step: 30 unit_of_measurement: "min" icon: mdi:weather-lightning-rainy

mower_timeextension: name: Time extension initial: 0 min: -100 max: 100 step: 10 unit_of_measurement: "%" icon: mdi:clock-out

Multizone

mower_zone0_distance: name: "Zone 0: Distance" initial: 0 min: 0 max: 1000 step: 1 unit_of_measurement: "m" icon: mdi:numeric-0-box-outline mower_zone1_distance: name: "Zone 1: Distance" initial: 0 min: 0 max: 1000 step: 1 unit_of_measurement: "m" icon: mdi:numeric-1-box-outline mower_zone2_distance: name: "Zone 2: Distance" initial: 0 min: 0 max: 1000 step: 1 unit_of_measurement: "m" icon: mdi:numeric-2-box-outline mower_zone3_distance: name: "Zone 3: Distance" initial: 0 min: 0 max: 1000 step: 1 unit_of_measurement: "m" icon: mdi:numeric-3-box-outline

mower_zone0_probability: name: "Zone 0: Probability" initial: 0 min: 0 max: 100 step: 10 unit_of_measurement: "%" icon: mdi:numeric-0-circle-outline mower_zone1_probability: name: "Zone 1: Probability" initial: 0 min: 0 max: 100 step: 10 unit_of_measurement: "%" icon: mdi:numeric-1-circle-outline mower_zone2_probability: name: "Zone 2: Probability" initial: 0 min: 0 max: 100 step: 10 unit_of_measurement: "%" icon: mdi:numeric-2-circle-outline mower_zone3_probability: name: "Zone 3: Probability" initial: 0 min: 0 max: 100 step: 10 unit_of_measurement: "%" icon: mdi:numeric-3-circle-outline

Input Boolean

input_boolean:

Booleans for Lovelace

mower_sched_settings: name: Scheduler settings initial: false icon: mdi:timer

mower_info_toggle: name: Info toggle initial: false icon: mdi:information

mower_zone_enable: name: Enable multizone initial: false icon: mdi:vector-difference

Booleans for views in Lovelace

mower_view_config: name: Configuration icon: mdi:tools mower_view_setzones: name: Multizone icon: mdi:vector-difference

Automations

automation:

Scripts

Services

landroid_cloud.start

landroid_cloud.home

landroid_cloud.pause

landroid_cloud.configure landroid_cloud.config (can be used to set rain delay and time extension)

landroid_cloud.partymode (if a partymode capable device was found)

landroid_cloud.setzone

landroid_cloud.lock

landroid_cloud.restart

landroid_cloud.edgecut (only for models with the function available in the app)

script: mower_set_config: alias: Mower set rain delay and time extension sequence: service: landroid_cloud.config data: id: "{{ state_attr('sensor.landroid_mower_status','id') }}" raindelay: "{{ states('input_number.mower_raindelay') | int(0) }}" timeextension: "{{ states('input_number.mower_timeextension') | int(0) }}"

mower_setzone: alias: Mower set mowing zone mode: restart sequence:

Barma-lej commented 2 years ago

Is it now landroid.yaml correct?

Yes

mkmilamk commented 2 years ago

thank you,

I apologize, that I am so stupid, that I thaut, that in yaml file coud be html code.

Best regards

Miloslav Kothera

Dne 28.03.2022 v 17:36 Barma-lej napsal(a):

Is it now landroid.yaml correct?

Yes

— Reply to this email directly, view it on GitHub https://github.com/Barma-lej/halandroid/issues/39#issuecomment-1080806832, or unsubscribe https://github.com/notifications/unsubscribe-auth/AX4AVGXCHJAUQTIYSQWSK6TVCHGYHANCNFSM5R2H37MQ. You are receiving this because you authored the thread.Message ID: @.***>

infohannes commented 2 years ago

Hello Barma-lej

at first thanks for your great work! Every think is working fine without setup from my multizone If I select a zone number, then I get this script error: script/mower_setzone can only concatenate str(not "int") to str...

Can you or any other person here help me?

I use Home Assistant 2022.4.0