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
471 stars 67 forks source link

Double click don't work #74

Closed Umarkhabiliy closed 2 years ago

Umarkhabiliy commented 2 years ago

does not light up when pressed on an object?

adizanni commented 2 years ago

Hello @Umarkhabiliy, I'm really sorry but I cannot help. In my model it is working fine. If you do not see errors in the console and the light is visible when you switch it on from home assistant, then I really do not know what is going on

Umarkhabiliy commented 2 years ago

can you share sample full configuration code, then i can check my problem

adizanni commented 2 years ago

hello @Umarkhabiliy, this example works for me. 1 light, double click works

type: custom:floor3d-card
entities:
  - entity: switch.plug_parent_room_on_off
    type3d: light
    object_id: LampMBR_2
    light:
      lumens: '500'
      shadow: 'yes'
      vertical_alignment: top
object_groups:
  - object_group: ''
path: /local/home/
objfile: home.obj?ver=1
mtlfile: home.mtl?ver=1
name: 'New Home '
shadow: 'yes'
Umarkhabiliy commented 2 years ago

I have another question, can I add an icon button next to the object? I apologize a thousand times, I'm new to this field and I ask about simple things

adizanni commented 2 years ago

You can create whatever object you want in the model and then associate it to the entities in the card. I do not create visual things in the model, I just reuse the ones that are already inside the model

Umarkhabiliy commented 2 years ago

You can create whatever object you want in the model and then associate it to the entities in the card. I do not create visual things in the model, I just reuse the ones that are already inside the model

It is not possible to use an existing object, so I want to try adding a new object, I wonder why my objects do not work when clicked

adizanni commented 2 years ago

I'm sorry I cannot solve your problems without information, send me your models configurations, logs. After I can tell you if there is a bug or if you do something wrong. There are plenty of file sharing on the internet use one and send me the files.

Umarkhabiliy commented 2 years ago

deepin-screen-recorder_Select-area_20220115134619.gif

did you mean this configuration?

Umarkhabiliy commented 2 years ago

Mr can you help me how to add iconbutton to card?

adizanni commented 2 years ago

Try to remove the shadow at the top level and at the light level:

type: custom:floor3d-card entities:

adizanni commented 2 years ago

If you have a user in home assistant forum you can send me private messages I'm user @adizanni. If needed we can exchange file sharing links

Umarkhabiliy commented 2 years ago

Thank you Mr. I solved problem.

ndbroadbent commented 2 years ago

If anyone else finds this: The click actions don't work when lovelace is in edit mode. Click "Done" before testing clicks

hitnrun30 commented 2 years ago

Well I am now getting this. First I can't see the levels and I also cant get the double click. What is up with this?