question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't display Rooms names or Texts

See original GitHub issue

Checklist

  • I have updated the integration to the latest version available
  • I have checked if the problem is already reported

The problem

I can’t get to display either rooms names or even texts with my Dreame D9. Rooms names are correctly retrieved (I’ve checked attributes and all ik OK), but there’s nothing on the map.

According to Pillow docs, using load_default() of ImageFont should use a default font is nothing is specified. This is what is doing the component: font = ImageFont.load_default()

But maybe no font can be used on Raspberry HASS (HomeAssistant OS 8)?

About the “texts” function, I’ve also tried using a font like that but it’s not working:

texts:
  - text: "My Room"
    x: 50
    y: 50
    font: "/local/fonts/Arial.ttf"
    font_size: 25

What version of am integration has described problem?

v2.2.0

What was the last working version of an integration?

No response

What vacuum model do you have problems with?

Dreame D9

What version of Home Assistant do you use?

Home Assistant Core 2022.6.4

What type of installation are you running?

Home Assistant OS

Camera’s configuration

camera:
  - platform: xiaomi_cloud_map_extractor
    host: !secret xiaomi_vacuum_host
    token: !secret xiaomi_vacuum_token
    username: !secret xiaomi_cloud_username
    password: !secret xiaomi_cloud_password
    country: "de"
    draw: ["all"]
    map_transformation:
      scale: 3
      rotate: 90
      trim: 
        left: 27
        top: 21
        bottom: 3
    texts:
      - text: "My Room"
        x: 50
        y: 50
        font: "/local/fonts/Arial.ttf"
        font_size: 25

Errors shown in the HA logs (if applicable)

No response

Additional information

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
PiotrMachowskicommented, Jun 8, 2022

Room names are rendered when each label has a retrieved position, as far as I remember it works only for some Viomi models.

Your type of installation unfortunately doesn’t seem to have any built-in fonts and I haven’t had much success with loading ones from files as well.

Duplicate of #20 #75

0reactions
webjibcommented, Jun 9, 2022

This is what I thought, but that doesn’t work either. I’m using a custom card derived from Vacuum-Card, but I have to say that you did a wonderful job with the Map Card!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create and manage room mailboxes - Microsoft Learn
Describes an issue that prevents the Show a Room list option from being displayed in the Room Finder pane in Outlook. Provides a...
Read more >
Message: Room Label text can only be modified through the ...
QUESTION. Whenever I open the specification dialog of a room label, this Information message displays: "Room Label text can only be modified ...
Read more >
How to Create Group Chat Names on iPhone and Android
This article explains how to give your group text chats a unique name that every member can see, making it easier to tell...
Read more >
Changing Your Display Name in Zoom Rooms
To change a display name while already connected to a Zoom room, students should follow the steps below: From inside of the Zoom...
Read more >
About spaces and group conversations - Google Chat Help
Member names are listed. Description, The room creator chooses a room description. ... Can share files with the group, but can't view a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found