MortenVinding / Robomow-ESP32

ESP32 based bluetooth Robomow controller
8 stars 5 forks source link

HomeAssistant integration #7

Closed filepgeregly closed 4 months ago

filepgeregly commented 4 months ago

I'm trying to integrate it to HA, but i get constanty the following errors:

Configuration errors
Invalid config for 'homeassistant' at robomow.yaml, line 1: 'switch' is an invalid option for 'homeassistant', check: customize->switch
Invalid config for 'homeassistant' at robomow.yaml, line 22: 'rest_command' is an invalid option for 'homeassistant', check: customize->rest_command
Invalid config for 'homeassistant' at robomow.yaml, line 40: 'sensor' is an invalid option for 'homeassistant', check: customize->sensor

What is the problem? Is that YAML is valid, for the current HA version?

torroa commented 4 months ago

Yeah, I could not get it to work without including the sensors, switches and rest_commands directly in configuration.yaml. You also need several scripts, like thise one:

alias: Robomow Flaeche sequence:

  • service: rest_command.robomowflaeche metadata: {} data: {}
  • delay: hours: 0 minutes: 0 seconds: 10 milliseconds: 0
  • service: homeassistant.update_entity metadata: {} data: {} target: entity_id: sensor.robomow mode: single icon: mdi:grass
MortenVinding commented 4 months ago

I'm trying to integrate it to HA, but i get constanty the following errors:

Sorry I made a mistake. Have updated the README now. This is what it should have been:

========================================= Copy robomow.yaml to config/packages/robomow.yaml make dir config/packages if non existent

Add this to config/configuration.yaml

homeassistant:  
  packages: !include_dir_named packages
filepgeregly commented 4 months ago

Thanks, it's working now!