adizanni / floor3d-card

Your Home Digital Twin: aka floor3d-card. Visualize Home Assistant state and perform actions using objects in a 3D home model based on Three.js.
https://github.com/adizanni/floor3d-card
MIT License
453 stars 65 forks source link

Not able to group object with id #181

Closed Frazou1 closed 5 months ago

Frazou1 commented 5 months ago

Checklist:

Release with the issue:

Last working release (if known):

Browser and Operating System:

Description of problem:

Javascript errors shown in the web inspector (if applicable):

Additional information:

adizanni commented 5 months ago

Hello @Frazou1, I would need more info here (ex. your card yaml config, a link to the model in obj format, etc).

Frazou1 commented 5 months ago
    object_groups:
      - object_group: Salon_light
        objects:
          - object_id: border_510
          - object_id: border_504
          - object_id: border_507
          - object_id: border_501
    entities:
      - entity: light.lumiere_table
        type3d: light
        object_id: Sphere_104_459
        light:
          shadow: 'yes'
          vertical_alignment: bottom
      - entity: light.lumiere_salon
        type3d: light
        light: {}
        object_id: Salon_light
adizanni commented 5 months ago

When you refer an object group you need to put it between bracket:

- entity: light.lumiere_salon
        type3d: light
        light: {}
        object_id: <Salon_light>
Frazou1 commented 5 months ago

Thanks you so munch ! Working now !