本帖最后由 kkzxsews 于 2025-3-16 16:32 编辑
我也感觉这块没什么市场 我个人玩HA的乐趣就在于自己瞎折腾 付费的话等于是直接跳过折腾快进到索然无味 那还玩啥
不过还是感谢楼主分享 之前你开源的插件我自己打包后已经用上了 比我自己原先瞎折腾的floor3d-card好看多了
优点是替换模型方便 缺点是缝合怪代码 可能含有未知bug
使用方法跟普通HA插件一样 把文件夹放入 下载压缩包放入 local/community目录下解压
修改configuration.yaml文件引入main-a15cb57a.js
lovelace:
mode: yaml
# #css: /local/lovelace.css
resources:
[
{url: http://xxx.xxx.xxx.xxx:8123/local/community/tvt/assets/main-a15cb57a.js, type: module},
]
然后配置仪表盘
views:
- title: Home
cards:
- type: custom:my-element
basepath: http://xxx.xxx.x.xxx:8123/local/community/tvt
name: Home
height: 1000px
width: 80vh
ambient:
position:
- 1
- 5
- 0
intensity: 1
distance: 10
decay: 0.5
obj:
objfile: 2024room.glb
obj_position:
- -7
- 0
- -4
obj_scale: 0.013
obj_rotation:
- 0
- 0
- 0
camera_position:
- 15
- 15
- 15
camera_rotate:
x: -1.0930244719682243
'y': 0.5200808414019678
z: 0.7648717152512469
camera_target:
x: 37.36890424945437
'y': 18.64464320782064
z: -82.55051697031719
object_groups:
- object_group: RoundTable
objects:
- object_id: Round_table_1
- object_id: Round_table_2
- object_id: Round_table_3
- object_group: EntranceDoor
objects:
- object_id: Door_9
- object_id: Door_7
- object_id: Door_5
roomList:
- room:
text: 客厅
rotation:
- 1.5707963267948966
- 3.141592653589793
- -1.5707963267948966
size: 0.5
font: >-
http://192.168.0.100:8123/local/community/tvt/plugins/freeDigitalHome/fonts/FZLanTingHeiS-UL-GB_Regular.json
position:
- -3.2
- 1.2
- 2
temperature:
text: 23°C
rotation:
- 1.5707963267948966
- 3.141592653589793
- -1.5707963267948966
size: 0.5
font: >-
http://192.168.0.100:8123/local/community/tvt/plugins/freeDigitalHome/fonts/FZLanTingHeiS-UL-GB_Regular.json
position:
- -2.2
- 0.2
- 2
entity_id: climate.208907216428121_climate
attr: current_temperature
lightList:
- light: light.leishi_eps127_372b_light
model: Sphere_104_689
class: cLeft
style: bedB
color: '#ffa66b'
intensity: 10
distance: 4
decay: 2.8
name: 一楼客厅灯
position:
- 0
- 0
- 0
- light: switch.babai_202m_36b1_right_switch_service
model: Sphere_104_693
class: cRight
style: ''
color: '#D485FF'
intensity: 10
distance: 4
decay: 2.8
name: 餐厅灯
position:
- -2.2
- 1.8
- 3.3
- light: switch.babai_203m_66f2_left_switch_service
model: Sphere_104_681
class: cLeft
style: bedA
color: '#FFEE99'
intensity: 10
distance: 4
decay: 2.8
name: 玄关灯
position:
- 0
- 0
- 0
- light: switch.babai_ah4m_ee33_first_switch_service
model: Sphere_104_677
class: cRight
style: bedB
color: '#ffa66b'
intensity: 10
distance: 4
decay: 2.8
name: 厨房灯
position:
- 0
- 0
- 0
- light: light.leishi_eps127_1914_light
model: Sphere_104_669
class: cRight
style: ''
color: '#D485FF'
intensity: 10
distance: 4
decay: 2.8
name: 一楼主卧灯
position:
- 0
- 0
- 0
- light: switch.babai_201m_91e5_switch
model: Sphere_104_673
class: cLeft
style: bedA
color: '#FFEE99'
intensity: 10
distance: 4
decay: 2.8
name: 浴室柜灯
position:
- 0
- 0
- 0
- light: switch.babai_202m_36a0_left_switch_service
model: Sphere_104_697
class: cRight
style: bedB
color: '#ffa66b'
intensity: 10
distance: 4
decay: 1
name: 二楼厅灯
position:
- 0
- 0
- 0
- light: switch.babai_202m_36a0_right_switch_service
model: Sphere_104_701
class: cRight
style: ''
color: '#D485FF'
intensity: 10
distance: 4
decay: 2.8
name: 二楼过道灯
position:
- 0
- 0
- 0
- light: switch.babai_203m_66f2_middle_switch_service
model: Sphere_104_685
class: cRight
style: bedA
color: '#FFEE99'
intensity: 10
distance: 4
decay: 2.8
name: 楼梯灯
position:
- 0
- 0
- 0
- light: light.leishi_eps127_fb44_light
model: Sphere_104_705
class: cLeft
style: bedB
color: '#ffa66b'
intensity: 10
distance: 4
decay: 2.8
name: 书房灯
position:
- 0
- 0
- 0
- light: light.leishi_eps127_8ac3_light
model: Sphere_104_709
class: cRight
style: ''
color: '#D485FF'
intensity: 10
distance: 4
decay: 2.8
name: 二楼主卧灯
position:
- 0
- 0
- 0
夸克网盘分享
|