25
submitted 1 month ago by [email protected] to c/[email protected]

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 1 month ago* (last edited 1 month ago)

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 1 month ago

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

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

homeassistant

11474 readers
4 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