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
448 stars 65 forks source link

Allow transparency to be set for room colorcondition #144

Open justinhunt1223 opened 1 year ago

justinhunt1223 commented 1 year ago

This will allow transparency to be specified in the colorcondition. If no state is matched, the default transparency will be used. Using the color name of transparent throws unnecessary console errors.

Example configuration:

entities:
  - entity: <an entity>
    type3d: room
    object_id: <a room object (generally the floor) with a name containing "room". >
    room:
      elevation: 254
      transparency: 100 #default if no transparency is specified in colorcondition.
      attribute: state
    colorcondition:
      - color: yellow
        transparency: 80
        state: 'on'
FragMenthor commented 10 months ago

Hello. I really would like to use this feature for presence detection, is there an updated working version with this code? Thaks in advance!