this post was submitted on 24 May 2024
26 points (100.0% liked)

homeassistant

12019 readers
15 users here now

Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. Available for free at home-assistant.io

founded 1 year ago
MODERATORS
 

I'm trying to automate my dumb roomba. For this I ideally need a couple of buttons. I'm lost at how to add another button, that would have a different name and a different sent byte.

Additional question - to get info from the roomba (charging, battery, etc.) I need to send a similar byte series and then receive two unsigned bytes. I have no idea how to do that.

Roomba documentation: https://efcms.engr.utk.edu/ef230-2021-01/projects/roomba-s/create_2_Open_Interface_Spec.pdf

top 2 comments
sorted by: hot top controversial new old
[โ€“] [email protected] 6 points 5 months ago* (last edited 5 months ago) (1 children)

I cant test this, but should it be something like:

# Example button configuration
button:
  - platform: template
    name: Livingroom Lazy Mood 1
    id: my_button

    # Optional variables:
    icon: "mdi:emoticon-outline"
    on_press:
      - logger.log: "Button 1 pressed"
  - platform: template
    name: Livingroom Lazy Mood 2
    id: my_button2

    # Optional variables:
    icon: "mdi:emoticon-outline"
    on_press:
      - logger.log: "Button 2 pressed"

As for the other thing, that might be something you need to write your own driver for? if you need some inspiration, this repo has a driver for mitsubishi heatpumps, which does something similar (read/write to a uart): https://github.com/echavet/MitsubishiCN105ESPHome

[โ€“] [email protected] 6 points 5 months ago

Thank you! This worked perfectly. And thanks for the link, will look into that