entities:
- entity: <a on/off entity>
type3d: door
object_id: <an object or object_group id representing the door>
door:
doortype: <'slide' for sliding doors/windows, 'swing' for swinging doors windows>
side: 'up', 'down', 'left' and 'right', the border of the door that is the axis of rotation
direction: 'inner' and 'outer', the direction of rotation
hinge: the object_id of the door/window hinge
pane: the object_id of the pane (main component) of the door/window
degrees: the degrees of the door opening
a door/window object/entity is rotated by the sepcified degrees (swing) or slid (slide) along the axis defined in 'side' and the direction defined in 'direction'. You can use the object group to list the moving objects of the door. If you do that you can now select the hinge object or the pane object. When you select the hinge object only the direction parameter is used as the side and axix of rotation are bound to the hinge position and shape. Time allowing I will try to do a tutorial. It is getting complex.....
Different cases here:
For a Swing door:
Type
Direction
Side
Degrees
Comment
hinge object specified
x
x
-
pane object specified
x
x
x
-
no object specified
x
x
x
the object_id is taken as a pane or the first object of the group
For a slide door (only pane object):
Type
Direction
Side
Percentage
Comment
pane object specified
x
x
x
-
no pane object specified
x
x
x
the object_id is taken as a pane or the first object of the group
Example of configuration for a window (Double French Window) exported using the ExportToHass plugin:
hinge: the object_id of the door/window hinge
pane: the object_id of the pane (main component) of the door/window
degrees: the degrees of the door opening
测试了。报错,麻烦大佬指导下
Uncaught Error
at floor3d-card.js:2356:4523
at Object.onLoad (floor3d-card.js:2231:531795)
at XMLHttpRequest.<anonymous> (floor3d-card.js:2231:435962)
Error: Object issue for Entity: <binary_sensor.lumi_lumi_sensor_magnet_aq2_opening> TypeError: Cannot read properties of undefined (reading 'objects')
TypeError: Cannot read properties of undefined (reading 'objects')